Compare commits
1 Commits
B2025-004
...
C2025-006_
Author | SHA1 | Date | |
---|---|---|---|
4fc3b89e06 |
@@ -1129,7 +1129,7 @@ namespace ctlXMLEditLib
|
|||||||
mylabel.BackColor = chlbckcolor; // PC Applic fields are shaded blue otherwise backcolor is transparent
|
mylabel.BackColor = chlbckcolor; // PC Applic fields are shaded blue otherwise backcolor is transparent
|
||||||
mylabel.Location = new Point(screenx+indent, screeny);
|
mylabel.Location = new Point(screenx+indent, screeny);
|
||||||
mylabel.Name = (pcChildIdx == 0) ? CvtUserFldToFld(element.Name) : CvtUserFldToFld(pcChildFldName);
|
mylabel.Name = (pcChildIdx == 0) ? CvtUserFldToFld(element.Name) : CvtUserFldToFld(pcChildFldName);
|
||||||
mylabel.Text = (applicLabel.Length > 0) ? applicLabel : CvtFldToUserFld(element.Name); // C2021-026 applicLabel is the P/C Child name
|
mylabel.Text = (applicLabel.Length > 0) ? applicLabel : CvtFldToUserFld(element.Name).Replace("Image_",""); // C2021-026 applicLabel is the P/C Child name
|
||||||
mylabel.AutoSize = true;
|
mylabel.AutoSize = true;
|
||||||
Controls.Add(mylabel);
|
Controls.Add(mylabel);
|
||||||
// add 3 onto screeny so that textbox is slightly below label.
|
// add 3 onto screeny so that textbox is slightly below label.
|
||||||
@@ -1696,7 +1696,7 @@ namespace ctlXMLEditLib
|
|||||||
}
|
}
|
||||||
catch (Exception ee)
|
catch (Exception ee)
|
||||||
{
|
{
|
||||||
MessageBox.Show("Invalid Height Input",ee.ToString());
|
MessageBox.Show("The Height and Width cannot be empty fields. Enter a number in either field and the other will automatically adjust to a proportional size.", "Invalid Height Input");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1713,7 +1713,7 @@ namespace ctlXMLEditLib
|
|||||||
}
|
}
|
||||||
catch (Exception ee)
|
catch (Exception ee)
|
||||||
{
|
{
|
||||||
MessageBox.Show("Invalid Width Input", ee.ToString());
|
MessageBox.Show("The Height and Width cannot be empty fields. Enter a number in either field and the other will automatically adjust to a proportional size.", "Invalid Width Input");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -8447,7 +8447,97 @@ namespace VEPROMS.CSLA.Library
|
|||||||
Dr = dr;
|
Dr = dr;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
public static DataTable GetDisplayTabs(int itemID) //, string displayTabID, string displayTabName)
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
DataTable tmp = DataPortal.Fetch<DataTable>(new DisplayTabs(itemID, "", "")); //, displayTabID, displayTabName));
|
||||||
|
//ItemInfo.AddList(tmp);
|
||||||
|
//tmp.AddEvents();
|
||||||
|
return tmp;
|
||||||
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
throw new DbCslaException("Error on ItemInfoList.GetChildren", ex);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
private DataTable dt = new DataTable();
|
||||||
|
private DataTable DataPortal_Fetch(DisplayTabs criteria)
|
||||||
|
{
|
||||||
|
|
||||||
|
using (SqlConnection cn = Database.VEPROMS_SqlConnection)
|
||||||
|
{
|
||||||
|
using (SqlCommand cm = cn.CreateCommand())
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
cm.CommandType = CommandType.StoredProcedure;
|
||||||
|
cm.CommandText = "GetDisplayTabData";
|
||||||
|
cm.CommandTimeout = Database.DefaultTimeout;
|
||||||
|
SqlDataAdapter da = new SqlDataAdapter(cm);
|
||||||
|
da.Fill(dt);
|
||||||
|
cn.Close();
|
||||||
|
da.Dispose();
|
||||||
|
return dt;
|
||||||
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
//if (_MyLog.IsErrorEnabled) _MyLog.Error("ItemExt.DataPortal_Fetch", ex);
|
||||||
|
throw new DbCslaException("ItemExt.DataPortal_Fetch", ex);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
//public static void AddDisplayTabsState(int itemID, string displayTabID, string displayTabName)
|
||||||
|
//{
|
||||||
|
// try
|
||||||
|
// {
|
||||||
|
// //DisplayTabs tmp =
|
||||||
|
// DataPortal.Fetch<DisplayTabs>(new DisplayTabs(itemID, displayTabID, displayTabName)); //, displayTabID, displayTabName));
|
||||||
|
// //ItemInfo.AddList(tmp);
|
||||||
|
// //tmp.AddEvents();
|
||||||
|
// //return tmp;
|
||||||
|
// }
|
||||||
|
// catch (Exception ex)
|
||||||
|
// {
|
||||||
|
// throw new DbCslaException("Error on ItemInfoList.GetChildren", ex);
|
||||||
|
// }
|
||||||
|
//}
|
||||||
|
//private DataTable dt = new DataTable();
|
||||||
|
//private void DataPortal_Fetch(int itemID, string displayTabID, string displayTabName)
|
||||||
|
//{
|
||||||
|
|
||||||
|
// using (SqlConnection cn = Database.VEPROMS_SqlConnection)
|
||||||
|
// {
|
||||||
|
// using (SqlCommand cm = cn.CreateCommand())
|
||||||
|
// {
|
||||||
|
// try
|
||||||
|
// {
|
||||||
|
// cm.CommandType = CommandType.StoredProcedure;
|
||||||
|
// cm.CommandText = "AddDisplayTabState";
|
||||||
|
// cm.CommandTimeout = Database.DefaultTimeout;
|
||||||
|
// cm.Parameters.AddWithValue("@ItemID", ItemID);
|
||||||
|
// cm.Parameters.AddWithValue("@displayTabID", displayTabID);
|
||||||
|
// cm.Parameters.AddWithValue("@displayTabName", displayTabName);
|
||||||
|
// cm.ExecuteNonQuery();
|
||||||
|
// //SqlDataAdapter da = new SqlDataAdapter(cm);
|
||||||
|
// //da.Fill(dt);
|
||||||
|
// //cn.Close();
|
||||||
|
// //da.Dispose();
|
||||||
|
// //return dt; // fix
|
||||||
|
// }
|
||||||
|
// catch (Exception ex)
|
||||||
|
// {
|
||||||
|
// //if (_MyLog.IsErrorEnabled) _MyLog.Error("ItemExt.DataPortal_Fetch", ex);
|
||||||
|
// throw new DbCslaException("ItemExt.DataPortal_Fetch", ex);
|
||||||
|
// }
|
||||||
|
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
|
||||||
|
//}
|
||||||
public static void AddDisplayTabsState(int itemID, string displayTabID, string displayTabName)
|
public static void AddDisplayTabsState(int itemID, string displayTabID, string displayTabName)
|
||||||
//private void DataPortal_Fetch(int itemID, string displayTabID, string displayTabName)
|
//private void DataPortal_Fetch(int itemID, string displayTabID, string displayTabName)
|
||||||
{
|
{
|
||||||
|
@@ -1195,7 +1195,12 @@ namespace VEPROMS.CSLA.Library
|
|||||||
cm.CommandText = "GetDisplayTabdata";
|
cm.CommandText = "GetDisplayTabdata";
|
||||||
cm.CommandTimeout = Database.DefaultTimeout;
|
cm.CommandTimeout = Database.DefaultTimeout;
|
||||||
cm.Parameters.AddWithValue("@UserID", UserID);
|
cm.Parameters.AddWithValue("@UserID", UserID);
|
||||||
|
//cm.ExecuteNonQuery();
|
||||||
SqlDataAdapter da = new SqlDataAdapter(cm);
|
SqlDataAdapter da = new SqlDataAdapter(cm);
|
||||||
|
//da.Fill(dt);
|
||||||
|
//cn.Close();
|
||||||
|
//da.Dispose();
|
||||||
|
//return dt; // fix
|
||||||
|
|
||||||
SqlDataReader reader = cm.ExecuteReader();
|
SqlDataReader reader = cm.ExecuteReader();
|
||||||
DataTable dt = new DataTable();
|
DataTable dt = new DataTable();
|
||||||
@@ -1205,10 +1210,8 @@ namespace VEPROMS.CSLA.Library
|
|||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
//B2025-004
|
//if (_MyLog.IsErrorEnabled) _MyLog.Error("ItemExt.DeactivateStateDisplayTabTmp", ex);
|
||||||
//if it fails loading previously open tabs, simply treat it as if no tabs were open
|
throw new DbCslaException("ItemExt.DeactivateStateDisplayTabTmp", ex);
|
||||||
//instead of crashing
|
|
||||||
return new DataTable();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user