提交说明10/9
This commit is contained in:
+144
-3
@@ -93,7 +93,7 @@ namespace GThinking.N_XLXSBJ
|
|||||||
# region 给调价因子控件设只读性
|
# region 给调价因子控件设只读性
|
||||||
if (ControlState == TControlState.ctsInsert || ControlState == TControlState.ctsCopy || ControlState == TControlState.ctsEdit)
|
if (ControlState == TControlState.ctsInsert || ControlState == TControlState.ctsCopy || ControlState == TControlState.ctsEdit)
|
||||||
{
|
{
|
||||||
for (int i = 1; i <= 10; i++)
|
for (int i = 1; i <= 20; i++)
|
||||||
{
|
{
|
||||||
gtNumTextBox txtTJYZ = (gtNumTextBox)Master.ContentFormControl.FindControl("txt" + "TJYZ" + i);
|
gtNumTextBox txtTJYZ = (gtNumTextBox)Master.ContentFormControl.FindControl("txt" + "TJYZ" + i);
|
||||||
|
|
||||||
@@ -153,6 +153,56 @@ namespace GThinking.N_XLXSBJ
|
|||||||
txtTJYZ10.DecimalPlaces = GetXSWS("JZ10");
|
txtTJYZ10.DecimalPlaces = GetXSWS("JZ10");
|
||||||
txtTJYZ10.Enabled = true;
|
txtTJYZ10.Enabled = true;
|
||||||
}
|
}
|
||||||
|
else if (sTJYZList[i].StartsWith("JZ11|"))
|
||||||
|
{
|
||||||
|
txtTJYZ11.DecimalPlaces = GetXSWS("JZ11");
|
||||||
|
txtTJYZ11.Enabled = true;
|
||||||
|
}
|
||||||
|
else if (sTJYZList[i].StartsWith("JZ12|"))
|
||||||
|
{
|
||||||
|
txtTJYZ12.DecimalPlaces = GetXSWS("JZ12");
|
||||||
|
txtTJYZ12.Enabled = true;
|
||||||
|
}
|
||||||
|
else if (sTJYZList[i].StartsWith("JZ13|"))
|
||||||
|
{
|
||||||
|
txtTJYZ13.DecimalPlaces = GetXSWS("JZ13");
|
||||||
|
txtTJYZ13.Enabled = true;
|
||||||
|
}
|
||||||
|
else if (sTJYZList[i].StartsWith("JZ14|"))
|
||||||
|
{
|
||||||
|
txtTJYZ14.DecimalPlaces = GetXSWS("JZ14");
|
||||||
|
txtTJYZ14.Enabled = true;
|
||||||
|
}
|
||||||
|
else if (sTJYZList[i].StartsWith("JZ15|"))
|
||||||
|
{
|
||||||
|
txtTJYZ15.DecimalPlaces = GetXSWS("JZ15");
|
||||||
|
txtTJYZ15.Enabled = true;
|
||||||
|
}
|
||||||
|
else if (sTJYZList[i].StartsWith("JZ16|"))
|
||||||
|
{
|
||||||
|
txtTJYZ16.DecimalPlaces = GetXSWS("JZ16");
|
||||||
|
txtTJYZ16.Enabled = true;
|
||||||
|
}
|
||||||
|
else if (sTJYZList[i].StartsWith("JZ17|"))
|
||||||
|
{
|
||||||
|
txtTJYZ17.DecimalPlaces = GetXSWS("JZ17");
|
||||||
|
txtTJYZ17.Enabled = true;
|
||||||
|
}
|
||||||
|
else if (sTJYZList[i].StartsWith("JZ18|"))
|
||||||
|
{
|
||||||
|
txtTJYZ18.DecimalPlaces = GetXSWS("JZ18");
|
||||||
|
txtTJYZ18.Enabled = true;
|
||||||
|
}
|
||||||
|
else if (sTJYZList[i].StartsWith("JZ19|"))
|
||||||
|
{
|
||||||
|
txtTJYZ19.DecimalPlaces = GetXSWS("JZ19");
|
||||||
|
txtTJYZ19.Enabled = true;
|
||||||
|
}
|
||||||
|
else if (sTJYZList[i].StartsWith("JZ20|"))
|
||||||
|
{
|
||||||
|
txtTJYZ20.DecimalPlaces = GetXSWS("JZ20");
|
||||||
|
txtTJYZ20.Enabled = true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
@@ -263,6 +313,56 @@ namespace GThinking.N_XLXSBJ
|
|||||||
txtTJYZ10.DecimalPlaces = GetXSWS(sYZID);
|
txtTJYZ10.DecimalPlaces = GetXSWS(sYZID);
|
||||||
txtTJYZ10.Value = dYZZ;
|
txtTJYZ10.Value = dYZZ;
|
||||||
}
|
}
|
||||||
|
else if (sYZID.Equals("JZ11"))
|
||||||
|
{
|
||||||
|
txtTJYZ11.DecimalPlaces = GetXSWS(sYZID);
|
||||||
|
txtTJYZ11.Value = dYZZ;
|
||||||
|
}
|
||||||
|
else if (sYZID.Equals("JZ12"))
|
||||||
|
{
|
||||||
|
txtTJYZ12.DecimalPlaces = GetXSWS(sYZID);
|
||||||
|
txtTJYZ12.Value = dYZZ;
|
||||||
|
}
|
||||||
|
else if (sYZID.Equals("JZ13"))
|
||||||
|
{
|
||||||
|
txtTJYZ13.DecimalPlaces = GetXSWS(sYZID);
|
||||||
|
txtTJYZ13.Value = dYZZ;
|
||||||
|
}
|
||||||
|
else if (sYZID.Equals("JZ14"))
|
||||||
|
{
|
||||||
|
txtTJYZ14.DecimalPlaces = GetXSWS(sYZID);
|
||||||
|
txtTJYZ14.Value = dYZZ;
|
||||||
|
}
|
||||||
|
else if (sYZID.Equals("JZ15"))
|
||||||
|
{
|
||||||
|
txtTJYZ15.DecimalPlaces = GetXSWS(sYZID);
|
||||||
|
txtTJYZ15.Value = dYZZ;
|
||||||
|
}
|
||||||
|
else if (sYZID.Equals("JZ16"))
|
||||||
|
{
|
||||||
|
txtTJYZ16.DecimalPlaces = GetXSWS(sYZID);
|
||||||
|
txtTJYZ16.Value = dYZZ;
|
||||||
|
}
|
||||||
|
else if (sYZID.Equals("JZ17"))
|
||||||
|
{
|
||||||
|
txtTJYZ17.DecimalPlaces = GetXSWS(sYZID);
|
||||||
|
txtTJYZ17.Value = dYZZ;
|
||||||
|
}
|
||||||
|
else if (sYZID.Equals("JZ18"))
|
||||||
|
{
|
||||||
|
txtTJYZ18.DecimalPlaces = GetXSWS(sYZID);
|
||||||
|
txtTJYZ18.Value = dYZZ;
|
||||||
|
}
|
||||||
|
else if (sYZID.Equals("JZ19"))
|
||||||
|
{
|
||||||
|
txtTJYZ19.DecimalPlaces = GetXSWS(sYZID);
|
||||||
|
txtTJYZ19.Value = dYZZ;
|
||||||
|
}
|
||||||
|
else if (sYZID.Equals("JZ20"))
|
||||||
|
{
|
||||||
|
txtTJYZ20.DecimalPlaces = GetXSWS(sYZID);
|
||||||
|
txtTJYZ20.Value = dYZZ;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
@@ -538,6 +638,47 @@ namespace GThinking.N_XLXSBJ
|
|||||||
{
|
{
|
||||||
lblTJYZ10.Text = sTJYZList[i].Replace("JZ10|", "") + ":";
|
lblTJYZ10.Text = sTJYZList[i].Replace("JZ10|", "") + ":";
|
||||||
}
|
}
|
||||||
|
else if (sTJYZList[i].StartsWith("JZ11|"))
|
||||||
|
{
|
||||||
|
lblTJYZ11.Text = sTJYZList[i].Replace("JZ11|", "") + ":";
|
||||||
|
}
|
||||||
|
else if (sTJYZList[i].StartsWith("JZ12|"))
|
||||||
|
{
|
||||||
|
lblTJYZ12.Text = sTJYZList[i].Replace("JZ12|", "") + ":";
|
||||||
|
}
|
||||||
|
else if (sTJYZList[i].StartsWith("JZ13|"))
|
||||||
|
{
|
||||||
|
lblTJYZ13.Text = sTJYZList[i].Replace("JZ13|", "") + ":";
|
||||||
|
}
|
||||||
|
else if (sTJYZList[i].StartsWith("JZ14|"))
|
||||||
|
{
|
||||||
|
lblTJYZ14.Text = sTJYZList[i].Replace("JZ14|", "") + ":";
|
||||||
|
}
|
||||||
|
else if (sTJYZList[i].StartsWith("JZ15|"))
|
||||||
|
{
|
||||||
|
lblTJYZ15.Text = sTJYZList[i].Replace("JZ15|", "") + ":";
|
||||||
|
}
|
||||||
|
else if (sTJYZList[i].StartsWith("JZ16|"))
|
||||||
|
{
|
||||||
|
lblTJYZ16.Text = sTJYZList[i].Replace("JZ16|", "") + ":";
|
||||||
|
}
|
||||||
|
else if (sTJYZList[i].StartsWith("JZ17|"))
|
||||||
|
{
|
||||||
|
lblTJYZ17.Text = sTJYZList[i].Replace("JZ17|", "") + ":";
|
||||||
|
}
|
||||||
|
else if (sTJYZList[i].StartsWith("JZ18|"))
|
||||||
|
{
|
||||||
|
lblTJYZ18.Text = sTJYZList[i].Replace("JZ18|", "") + ":";
|
||||||
|
}
|
||||||
|
else if (sTJYZList[i].StartsWith("JZ19|"))
|
||||||
|
{
|
||||||
|
lblTJYZ19.Text = sTJYZList[i].Replace("JZ19|", "") + ":";
|
||||||
|
}
|
||||||
|
else if (sTJYZList[i].StartsWith("JZ20|"))
|
||||||
|
{
|
||||||
|
lblTJYZ20.Text = sTJYZList[i].Replace("JZ20|", "") + ":";
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -659,7 +800,7 @@ namespace GThinking.N_XLXSBJ
|
|||||||
txt2.DecimalPlaces = 5;
|
txt2.DecimalPlaces = 5;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
txt2.DecimalPlaces = 2;
|
txt2.DecimalPlaces = 5;
|
||||||
//if (bNeedMRZ)
|
//if (bNeedMRZ)
|
||||||
// txt2.Value = dMRZ2;
|
// txt2.Value = dMRZ2;
|
||||||
txt2.Attributes.Add("NAME", sYZID2);
|
txt2.Attributes.Add("NAME", sYZID2);
|
||||||
@@ -713,7 +854,7 @@ namespace GThinking.N_XLXSBJ
|
|||||||
txt.DecimalPlaces = 5;
|
txt.DecimalPlaces = 5;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
txt.DecimalPlaces = 2;
|
txt.DecimalPlaces = 5;
|
||||||
//if (bNeedMRZ)
|
//if (bNeedMRZ)
|
||||||
// txt.Value = dMRZ;
|
// txt.Value = dMRZ;
|
||||||
txt.Attributes.Add("NAME", sYZID);
|
txt.Attributes.Add("NAME", sYZID);
|
||||||
|
|||||||
@@ -6,15 +6,15 @@
|
|||||||
<gtc:gtGridView ID="ContentGrid" runat="server" AutoGenerateColumns="False" EnableViewState="false">
|
<gtc:gtGridView ID="ContentGrid" runat="server" AutoGenerateColumns="False" EnableViewState="false">
|
||||||
<FixRowCol TableHeight="100%" TableWidth="100%" />
|
<FixRowCol TableHeight="100%" TableWidth="100%" />
|
||||||
<Columns>
|
<Columns>
|
||||||
<asp:BoundField DataField="外径" HeaderText="外径">
|
<asp:BoundField DataField="线径" HeaderText="线径(mm)">
|
||||||
<itemstyle width="120px" />
|
<itemstyle width="120px" />
|
||||||
<headerstyle width="120px" />
|
<headerstyle width="120px" />
|
||||||
</asp:BoundField>
|
</asp:BoundField>
|
||||||
<asp:BoundField DataField="普通线盘金额" HeaderText="普通线盘金额">
|
<asp:BoundField DataField="普通线盘金额" HeaderText="普通线盘金额(元/M)">
|
||||||
<itemstyle width="160px" />
|
<itemstyle width="160px" />
|
||||||
<headerstyle width="160px" />
|
<headerstyle width="160px" />
|
||||||
</asp:BoundField>
|
</asp:BoundField>
|
||||||
<asp:BoundField DataField="大芯线盘金额" HeaderText="大芯线盘金额">
|
<asp:BoundField DataField="大芯线盘金额" HeaderText="大芯线盘金额(元/M)">
|
||||||
<itemstyle width="160px" />
|
<itemstyle width="160px" />
|
||||||
<headerstyle width="160px" />
|
<headerstyle width="160px" />
|
||||||
</asp:BoundField>
|
</asp:BoundField>
|
||||||
|
|||||||
+5
-47
@@ -243,60 +243,18 @@ namespace GThinking.N_XLXSBJ
|
|||||||
if (!ds.Tables[0].Columns[5].ColumnName.Trim().Equals("调价代号"))
|
if (!ds.Tables[0].Columns[5].ColumnName.Trim().Equals("调价代号"))
|
||||||
throw new Exception("导入文件的内容格式不正确,Excel栏目依次为:型号、规格、标准、电压等级、" + cbxYZID.SelectedItem.Text.Trim() + "、调价代号!");
|
throw new Exception("导入文件的内容格式不正确,Excel栏目依次为:型号、规格、标准、电压等级、" + cbxYZID.SelectedItem.Text.Trim() + "、调价代号!");
|
||||||
}
|
}
|
||||||
List<string> lstXLXHID = new List<string>();
|
|
||||||
List<string> lstXLBZID = new List<string>();
|
|
||||||
List<string> lstDYDJID = new List<string>();
|
|
||||||
TDatabase dberp = TContextDatabases.GetDatabase("DBERP");
|
|
||||||
TSQL SQL = new TSQL(dberp);
|
|
||||||
SQL.Clear();
|
|
||||||
SQL.Add(" select XLXHB_XLXHID from XLXHB where isnull(XLXHB_TYBZ,'N')<>'Y' order by XLXHB_XLXHID ");
|
|
||||||
DataSet dsTmp = dberp.OpenDataSet(SQL);
|
|
||||||
if (dsTmp.Tables[0].Rows.Count > 0)
|
|
||||||
{
|
|
||||||
lstXLXHID.Clear();
|
|
||||||
for (int i = 0; i < dsTmp.Tables[0].Rows.Count; i++)
|
|
||||||
{
|
|
||||||
if (!lstXLXHID.Contains(dsTmp.Tables[0].Rows[i][0].ToString().Trim().ToUpper()))
|
|
||||||
lstXLXHID.Add(dsTmp.Tables[0].Rows[i][0].ToString().Trim().ToUpper());
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Dictionary<string, string> dicDRMXBZ = new Dictionary<string, string>();
|
|
||||||
dicDRMXBZ.Clear();
|
|
||||||
SQL.Clear();
|
|
||||||
SQL.Add("select XLBZ_XLBZID,XLBZ_XLBZLXMC from XLBZ where 1 = 1 ");
|
|
||||||
DataSet dsXLBZ = dberp.OpenDataSet(SQL);
|
|
||||||
if (dsXLBZ.Tables[0].Rows.Count > 0)
|
|
||||||
{
|
|
||||||
for (int i = 0; i < dsXLBZ.Tables[0].Rows.Count; i++)
|
|
||||||
{
|
|
||||||
dicDRMXBZ.Add(dsXLBZ.Tables[0].Rows[i]["XLBZ_XLBZID"].ToString().Trim(), dsXLBZ.Tables[0].Rows[i]["XLBZ_XLBZLXMC"].ToString().Trim());
|
|
||||||
if (!lstXLBZID.Contains(dsXLBZ.Tables[0].Rows[i]["XLBZ_XLBZID"].ToString().Trim()))
|
|
||||||
lstXLBZID.Add(dsXLBZ.Tables[0].Rows[i]["XLBZ_XLBZID"].ToString().Trim());
|
|
||||||
}
|
|
||||||
}
|
|
||||||
SQL.Clear();
|
|
||||||
SQL.Add(" select XLDYDJB_DYDJID from XLDYDJB where isnull(XLDYDJB_TYBZ,' ')<>'Y' order by XLDYDJB_XH ");
|
|
||||||
dsTmp = dberp.OpenDataSet(SQL);
|
|
||||||
if (dsTmp.Tables[0].Rows.Count > 0)
|
|
||||||
{
|
|
||||||
lstDYDJID.Clear();
|
|
||||||
for (int i = 0; i < dsTmp.Tables[0].Rows.Count; i++)
|
|
||||||
{
|
|
||||||
if (!lstDYDJID.Contains(dsTmp.Tables[0].Rows[i][0].ToString().Trim().ToUpper()))
|
|
||||||
lstDYDJID.Add(dsTmp.Tables[0].Rows[i][0].ToString().Trim().ToUpper());
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
string sDefaultXLBZID = XLBJDUtils.GetDefaultXLBZID();
|
string sDefaultXLBZID = XLBJDUtils.GetDefaultXLBZID();
|
||||||
for (int i = 0; i < ds.Tables[0].Rows.Count; i++)
|
for (int i = 0; i < ds.Tables[0].Rows.Count; i++)
|
||||||
{
|
{
|
||||||
if (!lstXLXHID.Contains(ds.Tables[0].Rows[i][0].ToString().Trim().ToUpper()))
|
if (string.IsNullOrEmpty(ds.Tables[0].Rows[i][0].ToString().Trim().ToUpper()))
|
||||||
{
|
{
|
||||||
throw new Exception("第" + (i + 2).ToString() + "行型号为空或不存在或已停用,不允许导入!");
|
throw new Exception("第" + (i + 2).ToString() + "行型号为空,不允许导入!");
|
||||||
}
|
}
|
||||||
if (!lstDYDJID.Contains(ds.Tables[0].Rows[i][3].ToString().Trim().ToUpper()))
|
if (string.IsNullOrEmpty(ds.Tables[0].Rows[i][3].ToString().Trim().ToUpper()))
|
||||||
{
|
{
|
||||||
throw new Exception("第" + (i + 2).ToString() + "行电压等级为空或不存在或已停用,不允许导入!");
|
throw new Exception("第" + (i + 2).ToString() + "行电压等级为空,不允许导入!");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+13
-6
@@ -131,12 +131,19 @@
|
|||||||
AutoPostBack="true" OnSelectedIndexChanged="cbxBJLY_SelectedIndexChanged">
|
AutoPostBack="true" OnSelectedIndexChanged="cbxBJLY_SelectedIndexChanged">
|
||||||
</gtc:gtComboBox>
|
</gtc:gtComboBox>
|
||||||
</td>
|
</td>
|
||||||
<%--<td align="right">
|
</tr>
|
||||||
<gtc:gtLabel ID="GtLabel10" runat="server">基价价格表:</gtc:gtLabel>
|
<tr style="height: 5px">
|
||||||
</td>
|
</tr>
|
||||||
<td align="left">
|
<tr>
|
||||||
<gtc:gtCheckedDropDownList ID="cbxJGCIDS" runat="server" Width="142px"></gtc:gtCheckedDropDownList>
|
<td align="right">
|
||||||
</td>--%>
|
<gtc:gtLabel ID="GtLabel11" runat="server">厂价核算:</gtc:gtLabel>
|
||||||
|
</td>
|
||||||
|
<td align="left" colspan="3">
|
||||||
|
|
||||||
|
<gtc:gtTextBox ID="txtJGGS" runat="server" Width="300px" Height="19px">
|
||||||
|
</gtc:gtTextBox>
|
||||||
|
</td>
|
||||||
|
|
||||||
</tr>
|
</tr>
|
||||||
<tr style="height: 5px">
|
<tr style="height: 5px">
|
||||||
</tr>
|
</tr>
|
||||||
|
|||||||
+85
-3
@@ -79,7 +79,6 @@ namespace GThinking.N_XLXSBJ
|
|||||||
protected override void SetControlState()
|
protected override void SetControlState()
|
||||||
{
|
{
|
||||||
base.SetControlState();
|
base.SetControlState();
|
||||||
|
|
||||||
txtJGBID.Enabled = false;
|
txtJGBID.Enabled = false;
|
||||||
datWHSJ.Enabled = false;
|
datWHSJ.Enabled = false;
|
||||||
txtWHR.Enabled = false;
|
txtWHR.Enabled = false;
|
||||||
@@ -278,7 +277,7 @@ namespace GThinking.N_XLXSBJ
|
|||||||
entity.Param.Add("XLXSJGB_JGBID", txtJGBID.Text.Trim());
|
entity.Param.Add("XLXSJGB_JGBID", txtJGBID.Text.Trim());
|
||||||
}
|
}
|
||||||
base.LoadRecord();
|
base.LoadRecord();
|
||||||
|
InitJSGS();
|
||||||
txtOLDTJYS.Value = cbxTJYS.SelectedValue.Trim().Equals("") ? " " : cbxTJYS.SelectedValue.Trim();
|
txtOLDTJYS.Value = cbxTJYS.SelectedValue.Trim().Equals("") ? " " : cbxTJYS.SelectedValue.Trim();
|
||||||
txtOLDJGBMC.Value = txtJGBMC.Text.Trim();
|
txtOLDJGBMC.Value = txtJGBMC.Text.Trim();
|
||||||
txtOLDBJLY.Value = cbxBJLY.SelectedValue.Trim();
|
txtOLDBJLY.Value = cbxBJLY.SelectedValue.Trim();
|
||||||
@@ -623,7 +622,7 @@ namespace GThinking.N_XLXSBJ
|
|||||||
txtOLDJGBMC.Value = txtJGBMC.Text.Trim();
|
txtOLDJGBMC.Value = txtJGBMC.Text.Trim();
|
||||||
txtOLDTJYS.Value = cbxTJYS.SelectedValue.Trim().Equals("") ? " " : cbxTJYS.SelectedValue.Trim();
|
txtOLDTJYS.Value = cbxTJYS.SelectedValue.Trim().Equals("") ? " " : cbxTJYS.SelectedValue.Trim();
|
||||||
txtOLDBJLY.Value = cbxBJLY.SelectedValue.Trim();
|
txtOLDBJLY.Value = cbxBJLY.SelectedValue.Trim();
|
||||||
|
btnGXGS_Click(null, null);
|
||||||
TDatabase dberp = TContextDatabases.GetDatabase("DBERP");
|
TDatabase dberp = TContextDatabases.GetDatabase("DBERP");
|
||||||
TSQL SQL = new TSQL(dberp);
|
TSQL SQL = new TSQL(dberp);
|
||||||
string sJGBID = txtJGBID.Text.Trim();
|
string sJGBID = txtJGBID.Text.Trim();
|
||||||
@@ -2092,6 +2091,89 @@ namespace GThinking.N_XLXSBJ
|
|||||||
OpenDialog(param);
|
OpenDialog(param);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void InitJSGS()
|
||||||
|
{
|
||||||
|
TDatabase dberp = TContextDatabases.GetDatabase("DBERP");
|
||||||
|
TSQL SQL = new TSQL(dberp);
|
||||||
|
SQL.Clear();
|
||||||
|
SQL.Add("select CJGS from dbo.JGBCJGS where JGBID=:JGBID ");
|
||||||
|
SQL.ParamByName("JGBID").Value = txtJGBID.Text.Trim();
|
||||||
|
DataSet ds = dberp.OpenDataSet(SQL);
|
||||||
|
if (ds.Tables[0].Rows.Count > 0)
|
||||||
|
txtJGGS.Text = ConvertCodeToName(ds.Tables[0].Rows[0]["CJGS"].ToString().Trim());
|
||||||
|
}
|
||||||
|
|
||||||
|
protected void btnGXGS_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
string sJGBID = txtJGBID.Text.Trim();
|
||||||
|
string sCodeFormula = ConvertNameToCode(txtJGGS.Text.Trim());
|
||||||
|
TDatabase dberp = TContextDatabases.GetDatabase("DBERP");
|
||||||
|
TSQL SQL = new TSQL(dberp);
|
||||||
|
SQL.Clear();
|
||||||
|
SQL.Add("delete from dbo.JGBCJGS where JGBID=:JGBID ");
|
||||||
|
SQL.ParamByName("JGBID").Value = sJGBID;
|
||||||
|
dberp.ExecSQL(SQL);
|
||||||
|
|
||||||
|
SQL.Clear();
|
||||||
|
SQL.Add("INSERT INTO dbo.JGBCJGS (JGBID, CJGS) VALUES(:pJGBID,:pJSGS) ");
|
||||||
|
SQL.ParamByName("pJSGS").Value = sCodeFormula;
|
||||||
|
SQL.ParamByName("pJGBID").Value = sJGBID;
|
||||||
|
dberp.ExecSQL(SQL);
|
||||||
|
txtJGGS.Text = ConvertCodeToName(sCodeFormula);
|
||||||
|
//ShowMessage("公式已更新!");
|
||||||
|
}
|
||||||
|
|
||||||
|
private string ConvertCodeToName(string sFormula)
|
||||||
|
{
|
||||||
|
if (string.IsNullOrEmpty(sFormula))
|
||||||
|
return sFormula;
|
||||||
|
string sResult = sFormula.Replace("CLCB", "成本").Replace("WSCB", "无税成本");
|
||||||
|
Dictionary<string, string> dicYZ = GetYZIDNameMap();
|
||||||
|
foreach (KeyValuePair<string, string> kvp in dicYZ)
|
||||||
|
{
|
||||||
|
sResult = sResult.Replace(kvp.Key, kvp.Value);
|
||||||
|
}
|
||||||
|
return sResult;
|
||||||
|
}
|
||||||
|
|
||||||
|
private string ConvertNameToCode(string sFormula)
|
||||||
|
{
|
||||||
|
if (string.IsNullOrEmpty(sFormula))
|
||||||
|
return sFormula;
|
||||||
|
string sResult = sFormula.Replace("无税成本", "WSCB").Replace("成本", "CLCB");
|
||||||
|
Dictionary<string, string> dicYZ = GetYZIDNameMap();
|
||||||
|
//按名称长度降序替换,避免短名称被长名称包含时误替换
|
||||||
|
List<KeyValuePair<string, string>> lstYZ = new List<KeyValuePair<string, string>>(dicYZ);
|
||||||
|
lstYZ.Sort(delegate(KeyValuePair<string, string> a, KeyValuePair<string, string> b)
|
||||||
|
{
|
||||||
|
return b.Value.Length.CompareTo(a.Value.Length);
|
||||||
|
});
|
||||||
|
foreach (KeyValuePair<string, string> kvp in lstYZ)
|
||||||
|
{
|
||||||
|
sResult = sResult.Replace(kvp.Value, kvp.Key);
|
||||||
|
}
|
||||||
|
return sResult;
|
||||||
|
}
|
||||||
|
|
||||||
|
private Dictionary<string, string> GetYZIDNameMap()
|
||||||
|
{
|
||||||
|
Dictionary<string, string> dic = new Dictionary<string, string>();
|
||||||
|
TDatabase dberp = TContextDatabases.GetDatabase("DBERP");
|
||||||
|
TSQL SQL = new TSQL(dberp);
|
||||||
|
SQL.Clear();
|
||||||
|
SQL.Add("select XLXSTZYZ_YZID from XLXSTZYZ where XLXSTZYZ_MXBH='JZJ' ");
|
||||||
|
DataSet ds = dberp.OpenDataSet(SQL);
|
||||||
|
for (int i = 0; i < ds.Tables[0].Rows.Count; i++)
|
||||||
|
{
|
||||||
|
string sYZID = ds.Tables[0].Rows[i]["XLXSTZYZ_YZID"].ToString().Trim();
|
||||||
|
TZYZXX yzxx = XLBJDUtils.GetYZXXByYZID(sYZID);
|
||||||
|
string sYZMC = yzxx.XLXSTZYZ_YZMC.Trim();
|
||||||
|
if (!dic.ContainsKey(sYZID))
|
||||||
|
dic.Add(sYZID, sYZMC);
|
||||||
|
}
|
||||||
|
return dic;
|
||||||
|
}
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Generated
+18
@@ -298,6 +298,24 @@ namespace GThinking.N_XLXSBJ {
|
|||||||
/// </remarks>
|
/// </remarks>
|
||||||
protected global::GThinking.N_CONTROL.gtComboBox cbxBJLY;
|
protected global::GThinking.N_CONTROL.gtComboBox cbxBJLY;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// GtLabel11 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtLabel GtLabel11;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtJGGS 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtTextBox txtJGGS;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// GtLabel7 控件。
|
/// GtLabel7 控件。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|||||||
@@ -204,6 +204,7 @@ namespace GThinking.N_XLXSBJ
|
|||||||
AddModuleInfo(100860166, 0, "按产品特性调表价", "F", "TZYZJJCList.aspx");
|
AddModuleInfo(100860166, 0, "按产品特性调表价", "F", "TZYZJJCList.aspx");
|
||||||
//AddModuleInfo(100860167, 0, "线缆型号附加属性维护", "F", "XLXHCPTXWHList.aspx");
|
//AddModuleInfo(100860167, 0, "线缆型号附加属性维护", "F", "XLXHCPTXWHList.aspx");
|
||||||
AddModuleInfo(100860173, 0, "按运距铜铝价区间维护运费比例", "F", "BJYF_TLJQJList.aspx");
|
AddModuleInfo(100860173, 0, "按运距铜铝价区间维护运费比例", "F", "BJYF_TLJQJList.aspx");
|
||||||
|
AddModuleInfo(100860178, 0, "按型号规格电压等级报价数量区间调报价", "F", "TZYZBJMList.aspx");
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -363,6 +363,10 @@
|
|||||||
<Content Include="TZYZBJE_BSY1List.aspx" />
|
<Content Include="TZYZBJE_BSY1List.aspx" />
|
||||||
<Content Include="TZYZBJE_BSY2Info.aspx" />
|
<Content Include="TZYZBJE_BSY2Info.aspx" />
|
||||||
<Content Include="TZYZBJE_BSY2List.aspx" />
|
<Content Include="TZYZBJE_BSY2List.aspx" />
|
||||||
|
<Content Include="TZYZBJMInfo.aspx" />
|
||||||
|
<Content Include="TZYZBJMList.aspx" />
|
||||||
|
<Content Include="TZYZBJMQuery.aspx" />
|
||||||
|
<Content Include="TZYZBJMDRInfo.aspx" />
|
||||||
<Content Include="TZYZBJFInfo.aspx" />
|
<Content Include="TZYZBJFInfo.aspx" />
|
||||||
<Content Include="TZYZBJFList.aspx" />
|
<Content Include="TZYZBJFList.aspx" />
|
||||||
<Content Include="TZYZBJFQuery.aspx" />
|
<Content Include="TZYZBJFQuery.aspx" />
|
||||||
@@ -2626,6 +2630,36 @@
|
|||||||
<DependentUpon>TZYZBJE_BSY2List.aspx</DependentUpon>
|
<DependentUpon>TZYZBJE_BSY2List.aspx</DependentUpon>
|
||||||
</Compile>
|
</Compile>
|
||||||
<Compile Include="TZYZBJE_M.cs" />
|
<Compile Include="TZYZBJE_M.cs" />
|
||||||
|
<Compile Include="TZYZBJM.cs" />
|
||||||
|
<Compile Include="TZYZBJM_M.cs" />
|
||||||
|
<Compile Include="TZYZBJMDRInfo.aspx.cs">
|
||||||
|
<SubType>ASPXCodeBehind</SubType>
|
||||||
|
<DependentUpon>TZYZBJMDRInfo.aspx</DependentUpon>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="TZYZBJMDRInfo.aspx.designer.cs">
|
||||||
|
<DependentUpon>TZYZBJMDRInfo.aspx</DependentUpon>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="TZYZBJMInfo.aspx.cs">
|
||||||
|
<SubType>ASPXCodeBehind</SubType>
|
||||||
|
<DependentUpon>TZYZBJMInfo.aspx</DependentUpon>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="TZYZBJMInfo.aspx.designer.cs">
|
||||||
|
<DependentUpon>TZYZBJMInfo.aspx</DependentUpon>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="TZYZBJMList.aspx.cs">
|
||||||
|
<SubType>ASPXCodeBehind</SubType>
|
||||||
|
<DependentUpon>TZYZBJMList.aspx</DependentUpon>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="TZYZBJMList.aspx.designer.cs">
|
||||||
|
<DependentUpon>TZYZBJMList.aspx</DependentUpon>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="TZYZBJMQuery.aspx.cs">
|
||||||
|
<SubType>ASPXCodeBehind</SubType>
|
||||||
|
<DependentUpon>TZYZBJMQuery.aspx</DependentUpon>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="TZYZBJMQuery.aspx.designer.cs">
|
||||||
|
<DependentUpon>TZYZBJMQuery.aspx</DependentUpon>
|
||||||
|
</Compile>
|
||||||
<Compile Include="TZYZBJF.cs" />
|
<Compile Include="TZYZBJF.cs" />
|
||||||
<Compile Include="TZYZBJFInfo.aspx.cs">
|
<Compile Include="TZYZBJFInfo.aspx.cs">
|
||||||
<DependentUpon>TZYZBJFInfo.aspx</DependentUpon>
|
<DependentUpon>TZYZBJFInfo.aspx</DependentUpon>
|
||||||
|
|||||||
@@ -0,0 +1,64 @@
|
|||||||
|
|
||||||
|
Microsoft Visual Studio Solution File, Format Version 9.00
|
||||||
|
# Visual Studio 2005
|
||||||
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "N_XLXSBJA", "N_XLXSBJA.csproj", "{E54A5D97-D580-4357-8FA6-A02670E31399}"
|
||||||
|
ProjectSection(WebsiteProperties) = preProject
|
||||||
|
Debug.AspNetCompiler.Debug = "True"
|
||||||
|
Release.AspNetCompiler.Debug = "False"
|
||||||
|
EndProjectSection
|
||||||
|
EndProject
|
||||||
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "N_MISPROA", "..\..\N_MISPRO\N_MISPROA.csproj", "{47544950-5338-4E45-5420-4E5F4D495350}"
|
||||||
|
ProjectSection(WebsiteProperties) = preProject
|
||||||
|
Debug.AspNetCompiler.Debug = "True"
|
||||||
|
Release.AspNetCompiler.Debug = "False"
|
||||||
|
EndProjectSection
|
||||||
|
EndProject
|
||||||
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "U20261363_N_XLXSBJA", "..\U20261363_N_XLXSBJ\U20261363_N_XLXSBJA.csproj", "{A368F4C2-1ACE-4B7B-A39D-B9090DF99945}"
|
||||||
|
ProjectSection(WebsiteProperties) = preProject
|
||||||
|
Debug.AspNetCompiler.Debug = "True"
|
||||||
|
Release.AspNetCompiler.Debug = "False"
|
||||||
|
EndProjectSection
|
||||||
|
EndProject
|
||||||
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "N_XLJCA", "..\N_XLJC\N_XLJCA.csproj", "{71B42024-9214-4B15-BF25-BA2055D88172}"
|
||||||
|
ProjectSection(WebsiteProperties) = preProject
|
||||||
|
Debug.AspNetCompiler.Debug = "True"
|
||||||
|
Release.AspNetCompiler.Debug = "False"
|
||||||
|
EndProjectSection
|
||||||
|
EndProject
|
||||||
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "N_MODELA", "..\..\N_MODEL\N_MODELA.csproj", "{47544950-5338-4E45-5420-4E5F4D4F4445}"
|
||||||
|
ProjectSection(WebsiteProperties) = preProject
|
||||||
|
Debug.AspNetCompiler.Debug = "True"
|
||||||
|
Release.AspNetCompiler.Debug = "False"
|
||||||
|
EndProjectSection
|
||||||
|
EndProject
|
||||||
|
Global
|
||||||
|
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||||
|
Debug|Any CPU = Debug|Any CPU
|
||||||
|
Release|Any CPU = Release|Any CPU
|
||||||
|
EndGlobalSection
|
||||||
|
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||||
|
{E54A5D97-D580-4357-8FA6-A02670E31399}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||||
|
{E54A5D97-D580-4357-8FA6-A02670E31399}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||||
|
{E54A5D97-D580-4357-8FA6-A02670E31399}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||||
|
{E54A5D97-D580-4357-8FA6-A02670E31399}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||||
|
{47544950-5338-4E45-5420-4E5F4D495350}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||||
|
{47544950-5338-4E45-5420-4E5F4D495350}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||||
|
{47544950-5338-4E45-5420-4E5F4D495350}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||||
|
{47544950-5338-4E45-5420-4E5F4D495350}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||||
|
{A368F4C2-1ACE-4B7B-A39D-B9090DF99945}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||||
|
{A368F4C2-1ACE-4B7B-A39D-B9090DF99945}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||||
|
{A368F4C2-1ACE-4B7B-A39D-B9090DF99945}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||||
|
{A368F4C2-1ACE-4B7B-A39D-B9090DF99945}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||||
|
{71B42024-9214-4B15-BF25-BA2055D88172}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||||
|
{71B42024-9214-4B15-BF25-BA2055D88172}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||||
|
{71B42024-9214-4B15-BF25-BA2055D88172}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||||
|
{71B42024-9214-4B15-BF25-BA2055D88172}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||||
|
{47544950-5338-4E45-5420-4E5F4D4F4445}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||||
|
{47544950-5338-4E45-5420-4E5F4D4F4445}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||||
|
{47544950-5338-4E45-5420-4E5F4D4F4445}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||||
|
{47544950-5338-4E45-5420-4E5F4D4F4445}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||||
|
EndGlobalSection
|
||||||
|
GlobalSection(SolutionProperties) = preSolution
|
||||||
|
HideSolutionNode = FALSE
|
||||||
|
EndGlobalSection
|
||||||
|
EndGlobal
|
||||||
Binary file not shown.
@@ -49,6 +49,7 @@ namespace GThinking.N_XLXSBJ
|
|||||||
else
|
else
|
||||||
CurQueryEntity.FieldByName("JGBID").Value = GetDefaultJGBID();
|
CurQueryEntity.FieldByName("JGBID").Value = GetDefaultJGBID();
|
||||||
CurQueryEntity.FieldByName("YZZWSZ").Value = "False";
|
CurQueryEntity.FieldByName("YZZWSZ").Value = "False";
|
||||||
|
CurQueryEntity.FieldByName("YZZYSZ").Value = "False";
|
||||||
CurQueryEntity.FieldByName("RDT").Value = "False";
|
CurQueryEntity.FieldByName("RDT").Value = "False";
|
||||||
CurQueryEntity.FieldByName("XLXHIDJQPP").Value = "True";
|
CurQueryEntity.FieldByName("XLXHIDJQPP").Value = "True";
|
||||||
if (!PageParam.GetRTrimString("YCLQDCXWSZ").Equals(""))
|
if (!PageParam.GetRTrimString("YCLQDCXWSZ").Equals(""))
|
||||||
@@ -415,6 +416,23 @@ namespace GThinking.N_XLXSBJ
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (CurQueryEntity.FieldByName("YZZYSZ").Value.Trim().ToUpper().Equals("TRUE"))
|
||||||
|
{
|
||||||
|
if (dsTJYS1.Tables[0].Rows.Count > 0)
|
||||||
|
{
|
||||||
|
sSQL.AppendLine(" and (");
|
||||||
|
for (int i = 0; i < dsTJYS1.Tables[0].Rows.Count; i++)
|
||||||
|
{
|
||||||
|
if (i == 0)
|
||||||
|
sSQL.AppendLine(string.Format(" (YZZA.XLXSBJDYZZA_YZID='{0}' and YZZA.XLXSBJDYZZA_YZZ<>0) ", dsTJYS1.Tables[0].Rows[i][0].ToString().Trim()));
|
||||||
|
else
|
||||||
|
sSQL.AppendLine(string.Format(" or (YZZA.XLXSBJDYZZA_YZID='{0}' and YZZA.XLXSBJDYZZA_YZZ<>0) ", dsTJYS1.Tables[0].Rows[i][0].ToString().Trim()));
|
||||||
|
}
|
||||||
|
|
||||||
|
sSQL.AppendLine(" )");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
sSQL.AppendLine(" group by YZZA.XLXSBJDYZZA_XLXHID, YZZA.XLXSBJDYZZA_XLGGID, YZZA.XLXSBJDYZZA_XLBZID,YZZA.XLXSBJDYZZA_DYDJID,XLXSBJDYZZA_TJDH,AA.XLXSBJTJXHML_CPMLID,BB.XLXSBJTJXHML_CPMLID ");
|
sSQL.AppendLine(" group by YZZA.XLXSBJDYZZA_XLXHID, YZZA.XLXSBJDYZZA_XLGGID, YZZA.XLXSBJDYZZA_XLBZID,YZZA.XLXSBJDYZZA_DYDJID,XLXSBJDYZZA_TJDH,AA.XLXSBJTJXHML_CPMLID,BB.XLXSBJTJXHML_CPMLID ");
|
||||||
if (CurQueryEntity.FieldByName("YCLQDCXWSZ").Value.Trim().ToUpper().Equals("TRUE"))
|
if (CurQueryEntity.FieldByName("YCLQDCXWSZ").Value.Trim().ToUpper().Equals("TRUE"))
|
||||||
sSQL.AppendLine(" ,YZZA.XLXSCLQD_XH ");
|
sSQL.AppendLine(" ,YZZA.XLXSCLQD_XH ");
|
||||||
@@ -1130,6 +1148,10 @@ namespace GThinking.N_XLXSBJ
|
|||||||
{
|
{
|
||||||
sSQL.Add(string.Format(" and (XLXSBJDYZZA_YZID='{0}' and XLXSBJDYZZA_YZZ=0) ", sYZValue[k].Split('|')[0].Trim()));
|
sSQL.Add(string.Format(" and (XLXSBJDYZZA_YZID='{0}' and XLXSBJDYZZA_YZZ=0) ", sYZValue[k].Split('|')[0].Trim()));
|
||||||
}
|
}
|
||||||
|
if (CurQueryEntity.FieldByName("YZZYSZ").Value.Trim().ToUpper().Equals("TRUE"))
|
||||||
|
{
|
||||||
|
sSQL.Add(string.Format(" and (XLXSBJDYZZA_YZID='{0}' and XLXSBJDYZZA_YZZ<>0) ", sYZValue[k].Split('|')[0].Trim()));
|
||||||
|
}
|
||||||
if (!CurQueryEntity.FieldByName("CPMLID").Value.Equals(""))
|
if (!CurQueryEntity.FieldByName("CPMLID").Value.Equals(""))
|
||||||
{
|
{
|
||||||
if (CurQueryEntity.FieldByName("CPMLID").Value.Equals("空"))
|
if (CurQueryEntity.FieldByName("CPMLID").Value.Equals("空"))
|
||||||
|
|||||||
@@ -196,5 +196,13 @@
|
|||||||
<gtc:gtCheckBox ID="chkYZZWSZ" runat="server" Text="因子值未设置" DataField="YZZWSZ" />
|
<gtc:gtCheckBox ID="chkYZZWSZ" runat="server" Text="因子值未设置" DataField="YZZWSZ" />
|
||||||
</asp:TableCell>
|
</asp:TableCell>
|
||||||
</asp:TableRow>
|
</asp:TableRow>
|
||||||
|
<asp:TableRow>
|
||||||
|
<asp:TableCell></asp:TableCell>
|
||||||
|
<asp:TableCell HorizontalAlign="Right" Height="23px">
|
||||||
|
</asp:TableCell>
|
||||||
|
<asp:TableCell Height="23px">
|
||||||
|
<gtc:gtCheckBox ID="chkYZZYSZ" runat="server" Text="因子值已设置" DataField="YZZYSZ" />
|
||||||
|
</asp:TableCell>
|
||||||
|
</asp:TableRow>
|
||||||
</asp:Table>
|
</asp:Table>
|
||||||
</asp:Content>
|
</asp:Content>
|
||||||
|
|||||||
Generated
+10
-1
@@ -1,7 +1,7 @@
|
|||||||
//------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------
|
||||||
// <auto-generated>
|
// <auto-generated>
|
||||||
// 此代码由工具生成。
|
// 此代码由工具生成。
|
||||||
// 运行时版本:2.0.50727.9174
|
// 运行时版本:2.0.50727.9179
|
||||||
//
|
//
|
||||||
// 对此文件的更改可能会导致不正确的行为,并且如果
|
// 对此文件的更改可能会导致不正确的行为,并且如果
|
||||||
// 重新生成代码,这些更改将会丢失。
|
// 重新生成代码,这些更改将会丢失。
|
||||||
@@ -361,6 +361,15 @@ namespace GThinking.N_XLXSBJ {
|
|||||||
/// </remarks>
|
/// </remarks>
|
||||||
protected global::GThinking.N_CONTROL.gtCheckBox chkYZZWSZ;
|
protected global::GThinking.N_CONTROL.gtCheckBox chkYZZWSZ;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// chkYZZYSZ 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtCheckBox chkYZZYSZ;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Master 属性。
|
/// Master 属性。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|||||||
@@ -29,6 +29,7 @@ namespace GThinking.N_XLXSBJ
|
|||||||
AddFieldDefs("ZJMS", "主芯截面范围始");
|
AddFieldDefs("ZJMS", "主芯截面范围始");
|
||||||
AddFieldDefs("ZJMZ", "主芯截面范围止");
|
AddFieldDefs("ZJMZ", "主芯截面范围止");
|
||||||
AddFieldDefs("YZZWSZ", "因子值未设置");
|
AddFieldDefs("YZZWSZ", "因子值未设置");
|
||||||
|
AddFieldDefs("YZZYSZ", "因子值已设置");
|
||||||
AddFieldDefs("CZCL", "铠装材料");
|
AddFieldDefs("CZCL", "铠装材料");
|
||||||
AddFieldDefs("XLGG", "线缆规格");
|
AddFieldDefs("XLGG", "线缆规格");
|
||||||
AddFieldDefs("XLBZID", "线缆标准");
|
AddFieldDefs("XLBZID", "线缆标准");
|
||||||
|
|||||||
+5
-1
@@ -131,7 +131,7 @@ namespace GThinking.N_XLXSBJ
|
|||||||
txtZDYZZ.DecimalPlaces = 2;
|
txtZDYZZ.DecimalPlaces = 2;
|
||||||
txtZXYZZ.DecimalPlaces = 2;
|
txtZXYZZ.DecimalPlaces = 2;
|
||||||
}
|
}
|
||||||
if (!cbxTJYS.SelectedValue.Trim().Equals("7") && !cbxTJYS.SelectedValue.Trim().Equals("E") && !cbxTJYS.SelectedValue.Trim().Equals("A"))
|
if (!cbxTJYS.SelectedValue.Trim().Equals("7") && !cbxTJYS.SelectedValue.Trim().Equals("E") && !cbxTJYS.SelectedValue.Trim().Equals("M") && !cbxTJYS.SelectedValue.Trim().Equals("A"))
|
||||||
cbxMRTBYZ.Enabled = false;
|
cbxMRTBYZ.Enabled = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -574,6 +574,8 @@ namespace GThinking.N_XLXSBJ
|
|||||||
sJGBMC = "报价单调价因子价格表-线缆特征类型&特征";
|
sJGBMC = "报价单调价因子价格表-线缆特征类型&特征";
|
||||||
else if (cbxTJYS.SelectedValue.Trim().Equals("K"))
|
else if (cbxTJYS.SelectedValue.Trim().Equals("K"))
|
||||||
sJGBMC = "报价单调价因子价格表-导体类型&电压等级/材料重量";
|
sJGBMC = "报价单调价因子价格表-导体类型&电压等级/材料重量";
|
||||||
|
else if (cbxTJYS.SelectedValue.Trim().Equals("M"))
|
||||||
|
sJGBMC = "报价单调价因子价格表-型号&电压&规格&报价数量区间";
|
||||||
else if (cbxTJYS.SelectedValue.Trim().Equals(""))
|
else if (cbxTJYS.SelectedValue.Trim().Equals(""))
|
||||||
sJGBMC = "报价单调价因子价格表";
|
sJGBMC = "报价单调价因子价格表";
|
||||||
else
|
else
|
||||||
@@ -837,6 +839,8 @@ namespace GThinking.N_XLXSBJ
|
|||||||
cbxTJYS.Items.Add(new ListItem("J|线缆特征类型&特征", "J"));
|
cbxTJYS.Items.Add(new ListItem("J|线缆特征类型&特征", "J"));
|
||||||
if (DSActiveModule.IsActiveModule(100860152))
|
if (DSActiveModule.IsActiveModule(100860152))
|
||||||
cbxTJYS.Items.Add(new ListItem("K|导体类型&电压等级/材料重量", "K"));
|
cbxTJYS.Items.Add(new ListItem("K|导体类型&电压等级/材料重量", "K"));
|
||||||
|
if (DSActiveModule.IsActiveModule(100860178))
|
||||||
|
cbxTJYS.Items.Add(new ListItem("M|型号&电压&规格&报价数量区间", "M"));
|
||||||
cbxTJYS.ShowValue = false;
|
cbxTJYS.ShowValue = false;
|
||||||
|
|
||||||
//TComboBox.SetComboBox("DBERP", cbxTJYZID, "select XLXSTZYZ_YZID as ID,XLXSTZYZ_YZID as Name from XLXSTZYZ where XLXSTZYZ_MXBH='BJD' and XLXSTZYZ_TJLX='1' order by XLXSTZYZ_XSXH,ID", false);
|
//TComboBox.SetComboBox("DBERP", cbxTJYZID, "select XLXSTZYZ_YZID as ID,XLXSTZYZ_YZID as Name from XLXSTZYZ where XLXSTZYZ_MXBH='BJD' and XLXSTZYZ_TJLX='1' order by XLXSTZYZ_XSXH,ID", false);
|
||||||
|
|||||||
@@ -139,6 +139,7 @@
|
|||||||
<asp:ListItem Value="I">工艺分类&导体类型&电压等级&主芯截面范围</asp:ListItem>
|
<asp:ListItem Value="I">工艺分类&导体类型&电压等级&主芯截面范围</asp:ListItem>
|
||||||
<asp:ListItem Value="J">线缆特征类型&特征</asp:ListItem>
|
<asp:ListItem Value="J">线缆特征类型&特征</asp:ListItem>
|
||||||
<asp:ListItem Value="K">导体类型&电压等级/材料重量</asp:ListItem>
|
<asp:ListItem Value="K">导体类型&电压等级/材料重量</asp:ListItem>
|
||||||
|
<asp:ListItem Value="M">型号&电压等级&规格&报价数量区间</asp:ListItem>
|
||||||
</DropDownItems>
|
</DropDownItems>
|
||||||
</gtc:gtGridView_Column>
|
</gtc:gtGridView_Column>
|
||||||
<gtc:gtGridView_Column DataField="XLXSTZYZ_JGBID" ShowHint="True">
|
<gtc:gtGridView_Column DataField="XLXSTZYZ_JGBID" ShowHint="True">
|
||||||
|
|||||||
@@ -446,6 +446,13 @@ namespace GThinking.N_XLXSBJ
|
|||||||
tpp.AddString("JGBID", sJGBID);
|
tpp.AddString("JGBID", sJGBID);
|
||||||
OpenFuncModuleDialog(100860152, tpp);
|
OpenFuncModuleDialog(100860152, tpp);
|
||||||
}
|
}
|
||||||
|
else if (sTJYS.Equals("M"))
|
||||||
|
{
|
||||||
|
TPageParams tpp = new TPageParams();
|
||||||
|
tpp.UrlPath = "TZYZBJMList.aspx";
|
||||||
|
tpp.AddString("JGBID", sJGBID);
|
||||||
|
OpenFuncModuleDialog(100860178, tpp);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
@@ -577,6 +584,10 @@ namespace GThinking.N_XLXSBJ
|
|||||||
{
|
{
|
||||||
sTJYSMC = "导体类型&电压等级/材料重量";
|
sTJYSMC = "导体类型&电压等级/材料重量";
|
||||||
}
|
}
|
||||||
|
else if (sTJYS.Trim().Equals("M"))
|
||||||
|
{
|
||||||
|
sTJYSMC = "型号&电压等级&规格&报价数量区间";
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|||||||
+217
@@ -0,0 +1,217 @@
|
|||||||
|
using System;
|
||||||
|
using System.Data;
|
||||||
|
using System.Configuration;
|
||||||
|
using System.Web;
|
||||||
|
using System.Web.Security;
|
||||||
|
using System.Web.UI;
|
||||||
|
using System.Web.UI.WebControls;
|
||||||
|
using System.Web.UI.WebControls.WebParts;
|
||||||
|
using System.Web.UI.HtmlControls;
|
||||||
|
using GThinking.N_MODEL.Page;
|
||||||
|
|
||||||
|
namespace GThinking.N_XLXSBJ
|
||||||
|
{
|
||||||
|
[TableMap(DB = "DBERP", DbTableName = "XLXSBJDYZZM", Umid = 100860178, IsWorkFlow = false, IsAttach = false, UseWhr = false,
|
||||||
|
|
||||||
|
QuerySelSql = "select XLXSBJDYZZM_JGBID, XLXSBJDYZZM_XLXHID, XLXSBJDYZZM_XLGGID, XLXSBJDYZZM_DYDJID, XLXSBJDYZZM_BJSLSX, XLXSBJDYZZM_BJSLXX, " + "\r\n"
|
||||||
|
+ " XLXSBJDYZZM_YZID, XLXSBJDYZZM_YZZ, XLXSBJDYZZM_WHR, XLXSBJDYZZM_WHRID, XLXSBJDYZZM_WHSJ " + "\r\n"
|
||||||
|
+ " from XLXSBJDYZZM " + "\r\n"
|
||||||
|
+ " where 1=1 ",
|
||||||
|
|
||||||
|
EntitySelSql = " select XLXSBJDYZZM_JGBID, XLXSBJDYZZM_YZID, XLXSTZYZ_JJFS, "
|
||||||
|
+ " XLXSBJDYZZM_XLXHID, XLXSBJDYZZM_XLGGID, XLXSBJDYZZM_DYDJID, XLXSBJDYZZM_BJSLSX, XLXSBJDYZZM_BJSLXX, "
|
||||||
|
+ " XLXSBJDYZZM_YZZ, XLXSBJDYZZM_WHR, XLXSBJDYZZM_WHRID, XLXSBJDYZZM_WHSJ "
|
||||||
|
+ " from XLXSBJDYZZM left join XLXSTZYZ on XLXSTZYZ_YZID=XLXSBJDYZZM_YZID and XLXSTZYZ_MXBH='BJD' "
|
||||||
|
+ " where XLXSBJDYZZM_JGBID =:XLXSBJDYZZM_JGBID and XLXSBJDYZZM_YZID =:XLXSBJDYZZM_YZID "
|
||||||
|
+ " and XLXSBJDYZZM_XLXHID =:XLXSBJDYZZM_XLXHID and XLXSBJDYZZM_XLGGID=:XLXSBJDYZZM_XLGGID "
|
||||||
|
+ " and XLXSBJDYZZM_DYDJID=:XLXSBJDYZZM_DYDJID "
|
||||||
|
+ " and XLXSBJDYZZM_BJSLSX=:XLXSBJDYZZM_BJSLSX and XLXSBJDYZZM_BJSLXX=:XLXSBJDYZZM_BJSLXX",
|
||||||
|
|
||||||
|
UpdateSql = " update XLXSBJDYZZM "
|
||||||
|
+ " set XLXSBJDYZZM_JGBID = :XLXSBJDYZZM_JGBID, "
|
||||||
|
+ " XLXSBJDYZZM_XLXHID=:XLXSBJDYZZM_XLXHID, XLXSBJDYZZM_XLGGID=isnull(:XLXSBJDYZZM_XLGGID,' '), XLXSBJDYZZM_DYDJID=isnull(:XLXSBJDYZZM_DYDJID,' '), "
|
||||||
|
+ " XLXSBJDYZZM_BJSLSX=isnull(:XLXSBJDYZZM_BJSLSX,0), XLXSBJDYZZM_BJSLXX=isnull(:XLXSBJDYZZM_BJSLXX,0),XLXSBJDYZZM_YZZ=isnull(:XLXSBJDYZZM_YZZ,0), "
|
||||||
|
+ " XLXSBJDYZZM_WHR=:XLXSBJDYZZM_WHR, XLXSBJDYZZM_WHRID=:XLXSBJDYZZM_WHRID, XLXSBJDYZZM_WHSJ=:XLXSBJDYZZM_WHSJ "
|
||||||
|
+ " where XLXSBJDYZZM_JGBID =:XLXSBJDYZZM_JGBID "
|
||||||
|
+ " and XLXSBJDYZZM_XLXHID =:OLD_XLXSBJDYZZM_XLXHID and XLXSBJDYZZM_XLGGID=:OLD_XLXSBJDYZZM_XLGGID and XLXSBJDYZZM_DYDJID=:OLD_XLXSBJDYZZM_DYDJID "
|
||||||
|
+ "and XLXSBJDYZZM_BJSLSX=:OLD_XLXSBJDYZZM_BJSLSX and XLXSBJDYZZM_BJSLXX=:OLD_XLXSBJDYZZM_BJSLXX",
|
||||||
|
|
||||||
|
|
||||||
|
InsertSql = " select XLXSBJDYZZM_JGBID from XLXSBJDYZZM where 1 <> 1 ",
|
||||||
|
DeleteSql = " delete from XLXSBJDYZZM where XLXSBJDYZZM_JGBID =:XLXSBJDYZZM_JGBID "
|
||||||
|
+ " and XLXSBJDYZZM_XLXHID=:XLXSBJDYZZM_XLXHID and XLXSBJDYZZM_XLGGID=isnull(:XLXSBJDYZZM_XLGGID,' ') and XLXSBJDYZZM_DYDJID=isnull(:XLXSBJDYZZM_DYDJID,' ')"
|
||||||
|
+ " and XLXSBJDYZZM_BJSLSX=:XLXSBJDYZZM_BJSLSX and XLXSBJDYZZM_BJSLXX=:XLXSBJDYZZM_BJSLXX")]
|
||||||
|
|
||||||
|
public class TZYZBJ_YZZM : EntityManager
|
||||||
|
{
|
||||||
|
private string _XLXSBJDYZZM_JGBID;
|
||||||
|
[ColumnMap(DbField = "XLXSBJDYZZM_JGBID", CtrlName = "txtJGBID", DbTitle = "调价表编号", Type = FieldType.HiddenField, DefaultValue = "",
|
||||||
|
IsAllowNull = false, IsKey = true, Length = 8)]
|
||||||
|
public string XLXSBJDYZZM_JGBID
|
||||||
|
{
|
||||||
|
get { return _XLXSBJDYZZM_JGBID; }
|
||||||
|
set { _XLXSBJDYZZM_JGBID = value; }
|
||||||
|
}
|
||||||
|
|
||||||
|
private string _XLXSBJDYZZM_XLXHID;
|
||||||
|
[ColumnMap(DbField = "XLXSBJDYZZM_XLXHID", CtrlName = "cbxXLXHID", DbTitle = "型号", Type = FieldType.CBX, DefaultValue = "",
|
||||||
|
IsAllowNull = true, IsKey = true, Length = 40)]
|
||||||
|
public string XLXSBJDYZZM_XLXHID
|
||||||
|
{
|
||||||
|
get { return _XLXSBJDYZZM_XLXHID; }
|
||||||
|
set { _XLXSBJDYZZM_XLXHID = value; }
|
||||||
|
}
|
||||||
|
|
||||||
|
private string _OLD_XLXSBJDYZZM_XLXHID;
|
||||||
|
[ColumnMap(DbField = "OLD_XLXSBJDYZZM_XLXHID", CtrlName = "txtOLD_XLXHID", DbTitle = "原型号", Type = FieldType.HiddenField, DefaultValue = "",
|
||||||
|
IsAllowNull = true, IsKey = false, Length = 40, PrintVisible = false)]
|
||||||
|
public string OLD_XLXSBJDYZZM_XLXHID
|
||||||
|
{
|
||||||
|
get { return _OLD_XLXSBJDYZZM_XLXHID; }
|
||||||
|
set { _OLD_XLXSBJDYZZM_XLXHID = value; }
|
||||||
|
}
|
||||||
|
|
||||||
|
private string _XLXSBJDYZZM_XLGGID;
|
||||||
|
[ColumnMap(DbField = "XLXSBJDYZZM_XLGGID", CtrlName = "txtXLGGID", DbTitle = "规格", Type = FieldType.C, DefaultValue = "",
|
||||||
|
IsAllowNull = true, IsKey = true, Length = 60)]
|
||||||
|
public string XLXSBJDYZZM_XLGGID
|
||||||
|
{
|
||||||
|
get { return _XLXSBJDYZZM_XLGGID; }
|
||||||
|
set { _XLXSBJDYZZM_XLGGID = value; }
|
||||||
|
}
|
||||||
|
|
||||||
|
private string _OLD_XLXSBJDYZZM_XLGGID;
|
||||||
|
[ColumnMap(DbField = "OLD_XLXSBJDYZZM_XLGGID", CtrlName = "txtOLD_XLGGID", DbTitle = "原规格", Type = FieldType.HiddenField, DefaultValue = "",
|
||||||
|
IsAllowNull = true, IsKey = false, Length = 60, PrintVisible = false)]
|
||||||
|
public string OLD_XLXSBJDYZZM_XLGGID
|
||||||
|
{
|
||||||
|
get { return _OLD_XLXSBJDYZZM_XLGGID; }
|
||||||
|
set { _OLD_XLXSBJDYZZM_XLGGID = value; }
|
||||||
|
}
|
||||||
|
|
||||||
|
private string _XLXSBJDYZZM_DYDJID;
|
||||||
|
[ColumnMap(DbField = "XLXSBJDYZZM_DYDJID", CtrlName = "cbxDYDJID", DbTitle = "电压等级", Type = FieldType.CBX, DefaultValue = "",
|
||||||
|
IsAllowNull = true, IsKey = false, Length = 20)]
|
||||||
|
public string XLXSBJDYZZM_DYDJID
|
||||||
|
{
|
||||||
|
get { return _XLXSBJDYZZM_DYDJID; }
|
||||||
|
set { _XLXSBJDYZZM_DYDJID = value; }
|
||||||
|
}
|
||||||
|
|
||||||
|
private string _OLD_XLXSBJDYZZM_DYDJID;
|
||||||
|
[ColumnMap(DbField = "OLD_XLXSBJDYZZM_DYDJID", CtrlName = "txtOLD_DYDJID", DbTitle = "原电压等级", Type = FieldType.HiddenField, DefaultValue = "",
|
||||||
|
IsAllowNull = true, IsKey = false, Length = 20, PrintVisible = false)]
|
||||||
|
public string OLD_XLXSBJDYZZM_DYDJID
|
||||||
|
{
|
||||||
|
get { return _OLD_XLXSBJDYZZM_DYDJID; }
|
||||||
|
set { _OLD_XLXSBJDYZZM_DYDJID = value; }
|
||||||
|
}
|
||||||
|
|
||||||
|
private string _XLXSBJDYZZM_BJSLSX;
|
||||||
|
[ColumnMap(DbField = "XLXSBJDYZZM_BJSLSX", CtrlName = "txtBJSLSX", DbTitle = "报价数量上限", Type = FieldType.F, DefaultValue = "0",
|
||||||
|
IsAllowNull = false, IsKey = true, Length = 0)]
|
||||||
|
public string XLXSBJDYZZM_BJSLSX
|
||||||
|
{
|
||||||
|
get { return _XLXSBJDYZZM_BJSLSX; }
|
||||||
|
set { _XLXSBJDYZZM_BJSLSX = value; }
|
||||||
|
}
|
||||||
|
|
||||||
|
private string _OLD_XLXSBJDYZZM_BJSLSX;
|
||||||
|
[ColumnMap(DbField = "OLD_XLXSBJDYZZM_BJSLSX", CtrlName = "txtOLD_BJSLSX", DbTitle = "原报价数量上限", Type = FieldType.HiddenField, DefaultValue = "0",
|
||||||
|
IsAllowNull = true, IsKey = false, Length = 0)]
|
||||||
|
public string OLD_XLXSBJDYZZM_BJSLSX
|
||||||
|
{
|
||||||
|
get { return _OLD_XLXSBJDYZZM_BJSLSX; }
|
||||||
|
set { _OLD_XLXSBJDYZZM_BJSLSX = value; }
|
||||||
|
}
|
||||||
|
|
||||||
|
private string _XLXSBJDYZZM_BJSLXX;
|
||||||
|
[ColumnMap(DbField = "XLXSBJDYZZM_BJSLXX", CtrlName = "txtBJSLXX", DbTitle = "报价数量下限", Type = FieldType.F, DefaultValue = "0",
|
||||||
|
IsAllowNull = false, IsKey = true, Length = 0)]
|
||||||
|
public string XLXSBJDYZZM_BJSLXX
|
||||||
|
{
|
||||||
|
get { return _XLXSBJDYZZM_BJSLXX; }
|
||||||
|
set { _XLXSBJDYZZM_BJSLXX = value; }
|
||||||
|
}
|
||||||
|
|
||||||
|
private string _OLD_XLXSBJDYZZM_BJSLXX;
|
||||||
|
[ColumnMap(DbField = "OLD_XLXSBJDYZZM_BJSLXX", CtrlName = "txtOLD_BJSLXX", DbTitle = "原报价数量下限", Type = FieldType.HiddenField, DefaultValue = "0",
|
||||||
|
IsAllowNull = true, IsKey = false, Length = 0)]
|
||||||
|
public string OLD_XLXSBJDYZZM_BJSLXX
|
||||||
|
{
|
||||||
|
get { return _OLD_XLXSBJDYZZM_BJSLXX; }
|
||||||
|
set { _OLD_XLXSBJDYZZM_BJSLXX = value; }
|
||||||
|
}
|
||||||
|
|
||||||
|
private string _XLXSBJDYZZM_YZID;
|
||||||
|
[ColumnMap(DbField = "XLXSBJDYZZM_YZID", CtrlName = "cbxYZID", DbTitle = "调价因子编码", Type = FieldType.CBX, DefaultValue = "",
|
||||||
|
IsAllowNull = true, IsKey = false, Length = 10)]
|
||||||
|
public string XLXSBJDYZZM_YZID
|
||||||
|
{
|
||||||
|
get { return _XLXSBJDYZZM_YZID; }
|
||||||
|
set { _XLXSBJDYZZM_YZID = value; }
|
||||||
|
}
|
||||||
|
|
||||||
|
private string _OLD_XLXSBJDYZZM_YZID;
|
||||||
|
[ColumnMap(DbField = "OLD_XLXSBJDYZZM_YZID", CtrlName = "txtOLD_YZID", DbTitle = "原调价因子编码", Type = FieldType.HiddenField, DefaultValue = "",
|
||||||
|
IsAllowNull = true, IsKey = false, Length = 10)]
|
||||||
|
public string OLD_XLXSBJDYZZM_YZID
|
||||||
|
{
|
||||||
|
get { return _OLD_XLXSBJDYZZM_YZID; }
|
||||||
|
set { _OLD_XLXSBJDYZZM_YZID = value; }
|
||||||
|
}
|
||||||
|
|
||||||
|
private string _XLXSTZYZ_JJFS;
|
||||||
|
[ColumnMap(DbField = "XLXSTZYZ_JJFS", CtrlName = "cbxJJFS", DbTitle = "调价方式", Type = FieldType.CBX, DefaultValue = "",
|
||||||
|
IsAllowNull = true, IsKey = false, Length = 2)]
|
||||||
|
public string XLXSTZYZ_JJFS
|
||||||
|
{
|
||||||
|
get { return _XLXSTZYZ_JJFS; }
|
||||||
|
set { _XLXSTZYZ_JJFS = value; }
|
||||||
|
}
|
||||||
|
|
||||||
|
private string _XLXSBJDYZZM_YZZ;
|
||||||
|
[ColumnMap(DbField = "XLXSBJDYZZM_YZZ", CtrlName = "txtYZZ", Type = FieldType.F, DbTitle = "因子值", DefaultValue = "0",
|
||||||
|
IsAllowNull = true, IsKey = false, Length = 0)]
|
||||||
|
public string XLXSBJDYZZM_YZZ
|
||||||
|
{
|
||||||
|
get { return _XLXSBJDYZZM_YZZ; }
|
||||||
|
set { _XLXSBJDYZZM_YZZ = value; }
|
||||||
|
}
|
||||||
|
|
||||||
|
private string _XLXSBJDYZZM_WHR;
|
||||||
|
[ColumnMap(DbField = "XLXSBJDYZZM_WHR", CtrlName = "txtWHR", DbTitle = "维护人", Type = FieldType.C, DefaultValue = "",
|
||||||
|
IsAllowNull = true, IsKey = false, Length = 30)]
|
||||||
|
public string XLXSBJDYZZM_WHR
|
||||||
|
{
|
||||||
|
get { return _XLXSBJDYZZM_WHR; }
|
||||||
|
set { _XLXSBJDYZZM_WHR = value; }
|
||||||
|
}
|
||||||
|
|
||||||
|
private string _XLXSBJDYZZM_WHRID;
|
||||||
|
[ColumnMap(DbField = "XLXSBJDYZZM_WHRID", CtrlName = "txtWHRID", DbTitle = "维护人工号", Type = FieldType.HiddenField, DefaultValue = "",
|
||||||
|
IsAllowNull = true, IsKey = false, Length = 10)]
|
||||||
|
public string XLXSBJDYZZM_WHRID
|
||||||
|
{
|
||||||
|
get { return _XLXSBJDYZZM_WHRID; }
|
||||||
|
set { _XLXSBJDYZZM_WHRID = value; }
|
||||||
|
}
|
||||||
|
|
||||||
|
private string _XLXSBJDYZZM_WHSJ;
|
||||||
|
[ColumnMap(DbField = "XLXSBJDYZZM_WHSJ", CtrlName = "datWHSJ", DbTitle = "维护时间", Type = FieldType.DT, DefaultValue = "",
|
||||||
|
IsAllowNull = true, IsKey = false, Length = 10)]
|
||||||
|
public string XLXSBJDYZZM_WHSJ
|
||||||
|
{
|
||||||
|
get { return _XLXSBJDYZZM_WHSJ; }
|
||||||
|
set { _XLXSBJDYZZM_WHSJ = value; }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 导入Excel文件页面使用的空实体
|
||||||
|
/// </summary>
|
||||||
|
[TableMap(DB = "DBERP", DbTableName = "XLXSBJDYZZM", Umid = 100860178, IsWorkFlow = false, UseWhr = false)]
|
||||||
|
public class TZYZBJM_DR : EntityManager
|
||||||
|
{
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,67 @@
|
|||||||
|
<%@ Page Language="C#" MasterPageFile="~/N_MODEL/Page/MasterSingleCard.Master" AutoEventWireup="true"
|
||||||
|
CodeBehind="TZYZBJMDRInfo.aspx.cs" Inherits="GThinking.N_XLXSBJ.TZYZBJMDRInfo" Title="导入Excel文件"%>
|
||||||
|
|
||||||
|
<%@ MasterType VirtualPath="~/N_MODEL/Page/MasterSingleCard.Master " %>
|
||||||
|
<asp:Content ID="ContentButton" ContentPlaceHolderID="cphUserToolbar" runat="server">
|
||||||
|
<asp:Table CellPadding="0" CellSpacing="0" runat="server" ID="tbl1">
|
||||||
|
<asp:TableRow>
|
||||||
|
<asp:TableCell>
|
||||||
|
<gtc:gtToolButton ID="btnQD" runat="server" Caption="确 定" ShowCaption="true" OnClick="btnQD_Click"
|
||||||
|
Width="58px" Height="19px" />
|
||||||
|
</asp:TableCell>
|
||||||
|
<asp:TableCell>
|
||||||
|
<gtc:gtToolButton ID="btnQX" runat="server" Caption="取 消" ShowCaption="true" OnClick="btnQX_Click"
|
||||||
|
Width="58px" Height="19px" />
|
||||||
|
</asp:TableCell>
|
||||||
|
</asp:TableRow>
|
||||||
|
</asp:Table>
|
||||||
|
</asp:Content>
|
||||||
|
<asp:Content ID="ContentForm" ContentPlaceHolderID="CPHForm" runat="server">
|
||||||
|
<center>
|
||||||
|
<table cellpadding="0" cellspacing="0">
|
||||||
|
<tr style="height:10px;">
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td align="right">
|
||||||
|
<gtc:gtLabel ID="GtLabel2" runat="server" Text="调价因子:"></gtc:gtLabel>
|
||||||
|
</td>
|
||||||
|
<td align="left">
|
||||||
|
<gtc:gtComboBox ID="cbxYZID" runat="server" Width="142px" Tag="Star"></gtc:gtComboBox>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr style="height:10px;">
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td align="right">
|
||||||
|
<gtc:gtLabel ID="lblWJ" runat="server" Text="导入Excel文件:"></gtc:gtLabel>
|
||||||
|
</td>
|
||||||
|
<td align="left">
|
||||||
|
<gtc:gtAsyncFileUpload ID="fupdPost" runat="server" Width="300px" />
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr style="height:10px;">
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td align="right">
|
||||||
|
</td>
|
||||||
|
<td align="left">
|
||||||
|
<gtc:gtCheckBox ID="chkIns" runat="server" Text="不存在的记录自动插入" />
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr style="height:10px;">
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td valign="middle" colspan="2">
|
||||||
|
<gtc:gtLabel ID="GtLabel1" runat="server" Text="">Excel栏目依次为:型号、规格、电压等级、报价数量下限、报价数量上限、调价因子</gtc:gtLabel>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td valign="middle" colspan="2">
|
||||||
|
<asp:Label ID="lblTitle" runat="server" Text=""></asp:Label></td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</center>
|
||||||
|
</asp:Content>
|
||||||
|
<asp:Content ID="ContentHidden" ContentPlaceHolderID="cphBrand" runat="server">
|
||||||
|
<asp:HiddenField ID="txtJGBID" runat="server" />
|
||||||
|
</asp:Content>
|
||||||
@@ -0,0 +1,300 @@
|
|||||||
|
using System;
|
||||||
|
using System.Data;
|
||||||
|
using System.Configuration;
|
||||||
|
using System.Collections;
|
||||||
|
using System.Web;
|
||||||
|
using System.Web.Security;
|
||||||
|
using System.Web.UI;
|
||||||
|
using System.Web.UI.WebControls;
|
||||||
|
using System.Web.UI.WebControls.WebParts;
|
||||||
|
using System.Web.UI.HtmlControls;
|
||||||
|
using GThinking.N_MODEL.Page;
|
||||||
|
using GThinking.N_MISPRO.Data;
|
||||||
|
using GThinking.N_MISPRO.Utility;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using GThinking.N_CONTROL;
|
||||||
|
using GThinking.N_MISPROAS;
|
||||||
|
|
||||||
|
namespace GThinking.N_XLXSBJ
|
||||||
|
{
|
||||||
|
public partial class TZYZBJMDRInfo : SingleCardBase
|
||||||
|
{
|
||||||
|
TZYZBJM_DR entity = new TZYZBJM_DR();
|
||||||
|
|
||||||
|
protected void Page_Load(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
this.UMID = 100860178;
|
||||||
|
this.UMName = "按型号规格电压等级报价数量区间调报价";
|
||||||
|
base.CurMaster = Master;
|
||||||
|
base.CurEntity = entity;
|
||||||
|
this.PageHeight = 210;
|
||||||
|
this.PageWidth = 420;
|
||||||
|
Master.EnableAttachBtn = false;
|
||||||
|
Master.EnableCancelBtn = false;
|
||||||
|
Master.EnableCopyBtn = false;
|
||||||
|
Master.EnableDeleteBtn = false;
|
||||||
|
Master.EnableEditBtn = false;
|
||||||
|
Master.EnableInsertBtn = false;
|
||||||
|
Master.EnablePrintBtn = false;
|
||||||
|
Master.EnableRefreshBtn = false;
|
||||||
|
Master.EnableSaveBtn = false;
|
||||||
|
fupdPost.FileSaveType = gtAsyncFileUpload.DFileSaveType.SaveToPath;
|
||||||
|
fupdPost.Filter = "XLS,XLSX";
|
||||||
|
this.Page.Title = "导入Excel文件";
|
||||||
|
base.InitPage();
|
||||||
|
|
||||||
|
if (!IsPostBack)
|
||||||
|
{
|
||||||
|
GtLabel1.Text = "Excel栏目依次为:型号、规格、电压等级、报价数量下限、报价数量上限、调价因子";
|
||||||
|
txtJGBID.Value = PageParam.GetRTrimString("JGBID");
|
||||||
|
chkIns.Value = "Y";
|
||||||
|
|
||||||
|
TDatabase dberp = TContextDatabases.GetDatabase("DBERP");
|
||||||
|
TSQL SQL = new TSQL(dberp);
|
||||||
|
SQL.Clear();
|
||||||
|
SQL.Add("select XLXSTZYZ_YZID, XLXSTZYZ_YZMC, XLXSTZYZ_JJFS ");
|
||||||
|
SQL.Add(" from XLXSTZYZ");
|
||||||
|
SQL.Add(" where XLXSTZYZ_MXBH = 'BJD' and XLXSTZYZ_TJYS='M' ");
|
||||||
|
SQL.Add(" and XLXSTZYZ_JGBID = :pJGBID");
|
||||||
|
SQL.Add("order by XLXSTZYZ_YZID,XLXSTZYZ_XSXH");
|
||||||
|
SQL.ParamByName("pJGBID").Value = txtJGBID.Value;
|
||||||
|
DataSet ds = dberp.OpenDataSet(SQL);
|
||||||
|
cbxYZID.ClearItems();
|
||||||
|
for (int i = 0; i < ds.Tables[0].Rows.Count; i++)
|
||||||
|
{
|
||||||
|
string sJJFSMC = "";
|
||||||
|
if (ds.Tables[0].Rows[i]["XLXSTZYZ_JJFS"].ToString().Trim().Equals("JJ"))
|
||||||
|
{
|
||||||
|
sJJFSMC = "(元)";
|
||||||
|
}
|
||||||
|
else if (ds.Tables[0].Rows[i]["XLXSTZYZ_JJFS"].ToString().Trim().Equals("MX") || ds.Tables[0].Rows[i]["XLXSTZYZ_JJFS"].ToString().Trim().Equals("DX"))
|
||||||
|
{
|
||||||
|
sJJFSMC = "(X)";
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
sJJFSMC = "(%)";
|
||||||
|
}
|
||||||
|
cbxYZID.Items.Add(new ListItem(ds.Tables[0].Rows[i]["XLXSTZYZ_YZMC"].ToString().Trim() + sJJFSMC, ds.Tables[0].Rows[i]["XLXSTZYZ_YZID"].ToString().Trim()));
|
||||||
|
}
|
||||||
|
if (ds.Tables[0].Rows.Count == 1)
|
||||||
|
{
|
||||||
|
cbxYZID.SelectedValue = ds.Tables[0].Rows[0]["XLXSTZYZ_YZID"].ToString().Trim();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
#region 控件事件
|
||||||
|
|
||||||
|
protected void btnQD_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
if (cbxYZID.SelectedValue.Trim().Equals(""))
|
||||||
|
{
|
||||||
|
ShowMessage("请选择待设置的调价因子!");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if (fupdPost.FilePath.Equals(""))
|
||||||
|
{
|
||||||
|
ShowMessage("请选择需要导入的文件!");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
TDatabase dberp = TContextDatabases.GetDatabase("DBERP");
|
||||||
|
TSQL sSQL = new TSQL(dberp);
|
||||||
|
try
|
||||||
|
{
|
||||||
|
lblTitle.Text = "正在导入数据,请稍后...";
|
||||||
|
dberp.BeginTrans();
|
||||||
|
DataSet aDataExcel = new DataSet();
|
||||||
|
if (AppRuntime.BitType == AppBitType.Bit32)
|
||||||
|
{
|
||||||
|
aDataExcel = XLBJDUtils.ReadFromExcelFile(fupdPost.FilePath, 0, "");
|
||||||
|
}
|
||||||
|
else // AppBitType.Bit64
|
||||||
|
{
|
||||||
|
ReadWJ(fupdPost.FilePath, ref aDataExcel);
|
||||||
|
}
|
||||||
|
ExcelColumnValid(aDataExcel);
|
||||||
|
InsertYZZM(dberp, sSQL, aDataExcel);
|
||||||
|
dberp.CommitTrans();
|
||||||
|
ShowMessage("导入成功!");
|
||||||
|
|
||||||
|
//执行完毕后刷新父页面并关闭当前页面
|
||||||
|
DialogOperationScript dos = new DialogOperationScript(this);
|
||||||
|
dos.ClickOwnerButton(PageParam.GetRTrimString("btnRefreshCID"));
|
||||||
|
dos.CloseSelf();
|
||||||
|
dos.Execute();
|
||||||
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
lblTitle.Text = "";
|
||||||
|
dberp.RollbackTrans();
|
||||||
|
ShowMessage(ex.Message);
|
||||||
|
}
|
||||||
|
finally
|
||||||
|
{
|
||||||
|
if (!fupdPost.FilePath.Trim().Equals("") && System.IO.File.Exists(fupdPost.FilePath.Trim()))
|
||||||
|
System.IO.File.Delete(fupdPost.FilePath.Trim());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
protected void btnQX_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
CloseWindow();
|
||||||
|
}
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
#region 自定义函数
|
||||||
|
|
||||||
|
private void InsertYZZM(TDatabase dberp, TSQL sSQL, DataSet ds)
|
||||||
|
{
|
||||||
|
int rrrorNUM = 2;
|
||||||
|
foreach (DataRow Row in ds.Tables[0].Rows)
|
||||||
|
{
|
||||||
|
string sXLXHID = sGetCellTest(Row, 0).Trim();
|
||||||
|
string sXLGGID = sGetCellTest(Row, 1).Trim();
|
||||||
|
string sDYDJID = sGetCellTest(Row, 2).Trim();
|
||||||
|
double dBJSLXX = CMISproConvert.StrToFloat(sGetCellTest(Row, 3), 0);
|
||||||
|
double dBJSLSX = CMISproConvert.StrToFloat(sGetCellTest(Row, 4), 0);
|
||||||
|
double dYZZ = CMISproConvert.StrToFloat(sGetCellTest(Row, 5), 0);
|
||||||
|
if (sXLXHID.Trim().Equals(""))
|
||||||
|
{
|
||||||
|
throw new Exception("第" + rrrorNUM + "行型号为空!");
|
||||||
|
}
|
||||||
|
if (!CMISproDataBase.ExistsRecord("DBERP", string.Format("select 1 from XLXHB where XLXHB_XLXHID='{0}' and ISNULL(XLXHB_TYBZ,'N') <> 'Y' ", sXLXHID)))
|
||||||
|
{
|
||||||
|
throw new Exception("第" + rrrorNUM + "行型号[" + sXLXHID + "]不存在或已停用!");
|
||||||
|
}
|
||||||
|
if (sXLGGID.Trim().Equals(""))
|
||||||
|
{
|
||||||
|
throw new Exception("第" + rrrorNUM + "行规格为空!");
|
||||||
|
}
|
||||||
|
if (sXLGGID.Trim().Length > 60)
|
||||||
|
{
|
||||||
|
throw new Exception("第" + rrrorNUM + "行规格[" + sXLGGID + "]长度超过60个字符!");
|
||||||
|
}
|
||||||
|
if (!sDYDJID.Trim().Equals("") && !CMISproDataBase.ExistsRecord("DBERP", string.Format("select 1 from XLDYDJB where XLDYDJB_DYDJID='{0}' and ISNULL(XLDYDJB_TYBZ,'N') <> 'Y' ", sDYDJID)))
|
||||||
|
{
|
||||||
|
throw new Exception("第" + rrrorNUM + "行电压等级[" + sDYDJID + "]不存在或已停用!");
|
||||||
|
}
|
||||||
|
if (dBJSLXX < 0)
|
||||||
|
{
|
||||||
|
throw new Exception("第" + rrrorNUM + "行报价数量下限[" + dBJSLXX + "]不合法!");
|
||||||
|
}
|
||||||
|
if (dBJSLSX < 0 || (dBJSLSX != 0 && dBJSLXX > dBJSLSX))
|
||||||
|
{
|
||||||
|
throw new Exception("第" + rrrorNUM + "行报价数量上限[" + dBJSLSX + "]不合法,上限为0表示不限制,否则必须大于等于下限!");
|
||||||
|
}
|
||||||
|
if (ExistsBJSLQJ(dBJSLXX, dBJSLSX, sXLXHID, sXLGGID, sDYDJID))
|
||||||
|
{
|
||||||
|
throw new Exception("第" + rrrorNUM + "行报价数量区间[" + dBJSLXX + "~" + (dBJSLSX == 0 ? "--" : dBJSLSX.ToString()) + "]与已有记录有交集,不允许导入!");
|
||||||
|
}
|
||||||
|
|
||||||
|
//已存在相同区间记录时更新,否则依选择决定是否插入
|
||||||
|
if (CMISproDataBase.ExistsRecord("DBERP", GetExistsSQL(dBJSLXX, dBJSLSX, sXLXHID, sXLGGID, sDYDJID)))
|
||||||
|
{
|
||||||
|
sSQL.Clear();
|
||||||
|
sSQL.Add("update XLXSBJDYZZM set XLXSBJDYZZM_YZZ = :pYZZ,XLXSBJDYZZM_WHR = :pWHR,XLXSBJDYZZM_WHRID =:pWHRID,XLXSBJDYZZM_WHSJ =:pWHSJ ");
|
||||||
|
sSQL.Add(" where XLXSBJDYZZM_JGBID=:pJGBID");
|
||||||
|
sSQL.Add(" and XLXSBJDYZZM_XLXHID=:pXLXHID");
|
||||||
|
sSQL.Add(" and XLXSBJDYZZM_XLGGID=:pXLGGID");
|
||||||
|
sSQL.Add(" and XLXSBJDYZZM_DYDJID=:pDYDJID");
|
||||||
|
sSQL.Add(" and XLXSBJDYZZM_BJSLSX=:pBJSLSX");
|
||||||
|
sSQL.Add(" and XLXSBJDYZZM_BJSLXX=:pBJSLXX");
|
||||||
|
sSQL.Add(" and XLXSBJDYZZM_YZID=:pYZID");
|
||||||
|
FillKeyParams(sSQL, dBJSLXX, dBJSLSX, sXLXHID, sXLGGID, sDYDJID);
|
||||||
|
sSQL.ParamByName("pYZZ").Value = dYZZ;
|
||||||
|
sSQL.ParamByName("pWHR").Value = tSession.UserName;
|
||||||
|
sSQL.ParamByName("pWHRID").Value = tSession.UserId;
|
||||||
|
sSQL.ParamByName("pWHSJ").Value = DateTime.Now;
|
||||||
|
dberp.ExecSQL(sSQL);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
if (chkIns.Checked)//不存在的记录自动插入
|
||||||
|
{
|
||||||
|
sSQL.Clear();
|
||||||
|
sSQL.Add("insert into XLXSBJDYZZM(XLXSBJDYZZM_JGBID,XLXSBJDYZZM_XLXHID,XLXSBJDYZZM_XLGGID,XLXSBJDYZZM_DYDJID,XLXSBJDYZZM_BJSLSX,XLXSBJDYZZM_BJSLXX,XLXSBJDYZZM_YZID,XLXSBJDYZZM_YZZ,XLXSBJDYZZM_WHR,XLXSBJDYZZM_WHRID,XLXSBJDYZZM_WHSJ)");
|
||||||
|
sSQL.Add(" values(:pJGBID,:pXLXHID,:pXLGGID,:pDYDJID,:pBJSLSX,:pBJSLXX,:pYZID,:pYZZ,:pWHR,:pWHRID,:pWHSJ)");
|
||||||
|
FillKeyParams(sSQL, dBJSLXX, dBJSLSX, sXLXHID, sXLGGID, sDYDJID);
|
||||||
|
sSQL.ParamByName("pYZZ").Value = dYZZ;
|
||||||
|
sSQL.ParamByName("pWHR").Value = tSession.UserName;
|
||||||
|
sSQL.ParamByName("pWHRID").Value = tSession.UserId;
|
||||||
|
sSQL.ParamByName("pWHSJ").Value = DateTime.Now;
|
||||||
|
dberp.ExecSQL(sSQL);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
rrrorNUM++;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void FillKeyParams(TSQL sSQL, double dBJSLXX, double dBJSLSX, string sXLXHID, string sXLGGID, string sDYDJID)
|
||||||
|
{
|
||||||
|
sSQL.ParamByName("pJGBID").Value = txtJGBID.Value.Trim();
|
||||||
|
sSQL.ParamByName("pXLXHID").Value = sXLXHID;
|
||||||
|
sSQL.ParamByName("pXLGGID").Value = sXLGGID.Trim().Equals("") ? " " : sXLGGID;
|
||||||
|
sSQL.ParamByName("pDYDJID").Value = sDYDJID.Trim().Equals("") ? " " : sDYDJID;
|
||||||
|
sSQL.ParamByName("pBJSLSX").Value = dBJSLSX;
|
||||||
|
sSQL.ParamByName("pBJSLXX").Value = dBJSLXX;
|
||||||
|
sSQL.ParamByName("pYZID").Value = cbxYZID.SelectedValue.Trim();
|
||||||
|
}
|
||||||
|
|
||||||
|
private string GetExistsSQL(double dBJSLXX, double dBJSLSX, string sXLXHID, string sXLGGID, string sDYDJID)
|
||||||
|
{
|
||||||
|
string sXLGGID_DB = sXLGGID.Trim().Equals("") ? " " : sXLGGID.Replace("'", "''");
|
||||||
|
string sDYDJID_DB = sDYDJID.Trim().Equals("") ? " " : sDYDJID.Replace("'", "''");
|
||||||
|
return string.Format("select 1 from XLXSBJDYZZM where XLXSBJDYZZM_JGBID='{0}' and XLXSBJDYZZM_YZID='{1}' and XLXSBJDYZZM_XLXHID='{2}'"
|
||||||
|
+ " and XLXSBJDYZZM_XLGGID='{3}' and XLXSBJDYZZM_DYDJID='{4}' and XLXSBJDYZZM_BJSLXX={5} and XLXSBJDYZZM_BJSLSX={6}",
|
||||||
|
txtJGBID.Value.Trim(), cbxYZID.SelectedValue.Trim(), sXLXHID, sXLGGID_DB, sDYDJID_DB, dBJSLXX, dBJSLSX);
|
||||||
|
}
|
||||||
|
|
||||||
|
//判断同一型号+规格+电压等级+因子的报价数量区间是否与已有记录(非完全相同区间)有交集
|
||||||
|
private bool ExistsBJSLQJ(double dBJSLXX, double dBJSLSX, string sXLXHID, string sXLGGID, string sDYDJID)
|
||||||
|
{
|
||||||
|
string sXLGGID_DB = sXLGGID.Trim().Equals("") ? " " : sXLGGID.Replace("'", "''");
|
||||||
|
string sDYDJID_DB = sDYDJID.Trim().Equals("") ? " " : sDYDJID.Replace("'", "''");
|
||||||
|
string sSQL_QJ = string.Format("select 1 from XLXSBJDYZZM where XLXSBJDYZZM_JGBID='{0}' and XLXSBJDYZZM_YZID='{1}' and XLXSBJDYZZM_XLXHID='{2}'"
|
||||||
|
+ " and XLXSBJDYZZM_XLGGID='{3}' and XLXSBJDYZZM_DYDJID='{4}'"
|
||||||
|
+ " and not (XLXSBJDYZZM_BJSLXX={5} and XLXSBJDYZZM_BJSLSX={6})"
|
||||||
|
+ " and (({7} = 0) or XLXSBJDYZZM_BJSLXX < {8})"
|
||||||
|
+ " and ((XLXSBJDYZZM_BJSLSX = 0) or {9} < XLXSBJDYZZM_BJSLSX)",
|
||||||
|
txtJGBID.Value.Trim(), cbxYZID.SelectedValue.Trim(), sXLXHID, sXLGGID_DB, sDYDJID_DB, dBJSLXX, dBJSLSX, dBJSLSX, dBJSLSX, dBJSLXX);
|
||||||
|
return CMISproDataBase.ExistsRecord("DBERP", sSQL_QJ);
|
||||||
|
}
|
||||||
|
|
||||||
|
private void ExcelColumnValid(DataSet ds)
|
||||||
|
{
|
||||||
|
Dictionary<string, string> ColumnNames = new Dictionary<string, string>();
|
||||||
|
ColumnNames.Add("0", "型号");
|
||||||
|
ColumnNames.Add("1", "规格");
|
||||||
|
ColumnNames.Add("2", "电压等级");
|
||||||
|
ColumnNames.Add("3", "报价数量下限");
|
||||||
|
ColumnNames.Add("4", "报价数量上限");
|
||||||
|
ColumnNames.Add("5", cbxYZID.SelectedItem.Text.Trim());
|
||||||
|
for (int i = 0; i < 6; i++)
|
||||||
|
{
|
||||||
|
if (!ds.Tables[0].Columns[i].ColumnName.Trim().Equals(ColumnNames[i.ToString()].Trim()))
|
||||||
|
{
|
||||||
|
throw new Exception("导入文件的内容格式不正确,Excel栏目依次为:型号、规格、电压等级、报价数量下限、报价数量上限、" + cbxYZID.SelectedItem.Text.Trim() + "!");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void ReadWJ(string sPath, ref DataSet aDataExcel)
|
||||||
|
{
|
||||||
|
string sMessage = "";
|
||||||
|
aDataExcel = TExcelData.ReadExcel(sPath.Trim(), "", "", false, ref sMessage);
|
||||||
|
if (!sMessage.Trim().Equals(""))
|
||||||
|
{
|
||||||
|
throw new Exception("文件读取失败!具体原因:" + sMessage);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private string sGetCellTest(DataRow Row, int ColumnIndex)
|
||||||
|
{
|
||||||
|
return Row[ColumnIndex].ToString().Trim().Replace("\r\n", "").Replace("\n", "");
|
||||||
|
}
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
}
|
||||||
|
}
|
||||||
Generated
+133
@@ -0,0 +1,133 @@
|
|||||||
|
//------------------------------------------------------------------------------
|
||||||
|
// <auto-generated>
|
||||||
|
// 此代码由工具生成。
|
||||||
|
// 运行时版本:2.0.50727.9179
|
||||||
|
//
|
||||||
|
// 对此文件的更改可能会导致不正确的行为,并且如果
|
||||||
|
// 重新生成代码,这些更改将会丢失。
|
||||||
|
// </auto-generated>
|
||||||
|
//------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
namespace GThinking.N_XLXSBJ {
|
||||||
|
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// TZYZBJMDRInfo 类。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的类。
|
||||||
|
/// </remarks>
|
||||||
|
public partial class TZYZBJMDRInfo {
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// tbl1 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::System.Web.UI.WebControls.Table tbl1;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// btnQD 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtToolButton btnQD;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// btnQX 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtToolButton btnQX;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// GtLabel2 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtLabel GtLabel2;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// cbxYZID 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtComboBox cbxYZID;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// lblWJ 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtLabel lblWJ;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// fupdPost 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtAsyncFileUpload fupdPost;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// chkIns 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtCheckBox chkIns;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// GtLabel1 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtLabel GtLabel1;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// lblTitle 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::System.Web.UI.WebControls.Label lblTitle;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtJGBID 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::System.Web.UI.WebControls.HiddenField txtJGBID;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Master 属性。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的属性。
|
||||||
|
/// </remarks>
|
||||||
|
public new GThinking.N_MODEL.Page.MasterSingleCard Master {
|
||||||
|
get {
|
||||||
|
return ((GThinking.N_MODEL.Page.MasterSingleCard)(base.Master));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,231 @@
|
|||||||
|
<%@ Page Language="C#" MasterPageFile="~/N_MODEL/Page/MasterSingleCard.Master" AutoEventWireup="true"
|
||||||
|
Codebehind="TZYZBJMInfo.aspx.cs" Inherits="GThinking.N_XLXSBJ.TZYZBJMInfo" Title="按型号规格电压等级报价数量区间调报价" %>
|
||||||
|
|
||||||
|
<%@ MasterType VirtualPath="~/N_MODEL/Page/MasterSingleCard.Master" %>
|
||||||
|
<asp:Content ID="cntTool" ContentPlaceHolderID="cphUserToolbar" runat="server">
|
||||||
|
</asp:Content>
|
||||||
|
<asp:Content ID="cntForm" ContentPlaceHolderID="cphForm" runat="server">
|
||||||
|
<table style="margin-right: 5px" cellpadding="0" cellspacing="0">
|
||||||
|
<tr style="height:2px;"></tr>
|
||||||
|
<tr>
|
||||||
|
<td align="right">
|
||||||
|
<gtc:gtLabel ID="GtLabel7" runat="server">型号:</gtc:gtLabel>
|
||||||
|
</td>
|
||||||
|
<td align="left">
|
||||||
|
<gtc:gtComboBox ID="cbxXLXHID" runat="server" Width="120px" ShowValue="false">
|
||||||
|
</gtc:gtComboBox>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr style="height:2px;"></tr>
|
||||||
|
<tr>
|
||||||
|
<td align="right">
|
||||||
|
<gtc:gtLabel ID="GtLabel8" runat="server">规格:</gtc:gtLabel>
|
||||||
|
</td>
|
||||||
|
<td align="left">
|
||||||
|
<gtc:gtTextBox ID="txtXLGGID" runat="server" Width="120px" MaxLength="60"></gtc:gtTextBox>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr style="height:2px;"></tr>
|
||||||
|
<tr>
|
||||||
|
<td align="right">
|
||||||
|
<gtc:gtLabel ID="GtLabel9" runat="server">电压等级:</gtc:gtLabel>
|
||||||
|
</td>
|
||||||
|
<td align="left">
|
||||||
|
<gtc:gtComboBox ID="cbxDYDJID" runat="Server" Width="120px" ShowValue="false">
|
||||||
|
</gtc:gtComboBox>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr style="height:2px;"></tr>
|
||||||
|
<tr>
|
||||||
|
<td align="right">
|
||||||
|
<gtc:gtLabel ID="GtLabel4" runat="server">报价数量区间:</gtc:gtLabel>
|
||||||
|
</td>
|
||||||
|
<td align="left" colspan="4">
|
||||||
|
<gtc:gtNumTextBox ID="txtBJSLXX" runat="server" Width="80px" DecimalPlaces="3" IsQuantity="true" ShowZero="true"></gtc:gtNumTextBox>
|
||||||
|
<gtc:gtLabel ID="GtLabel2" runat="server"> <= 报价数量 < </gtc:gtLabel>
|
||||||
|
<gtc:gtNumTextBox ID="txtBJSLSX" runat="server" Width="80px" DecimalPlaces="3" IsQuantity="true"></gtc:gtNumTextBox>
|
||||||
|
<gtc:gtLabel ID="lblBJSLDW" runat="server"></gtc:gtLabel>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr style="height:2px;"></tr>
|
||||||
|
<tr>
|
||||||
|
<td align="right">
|
||||||
|
<gtc:gtLabel ID="lblTJYZ1" runat="server">调价因子01:</gtc:gtLabel>
|
||||||
|
</td>
|
||||||
|
<td align="left">
|
||||||
|
<gtc:gtNumTextBox ID="txtTJYZ1" runat="server" Width="80px" ShowZero="false"></gtc:gtNumTextBox>
|
||||||
|
</td>
|
||||||
|
<td align="right">
|
||||||
|
<gtc:gtLabel ID="lblTJYZ11" runat="server">调价因子11:</gtc:gtLabel>
|
||||||
|
</td>
|
||||||
|
<td align="left">
|
||||||
|
<gtc:gtNumTextBox ID="txtTJYZ11" runat="server" Width="80px" ShowZero="false"></gtc:gtNumTextBox>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr style="height:2px;"></tr>
|
||||||
|
<tr>
|
||||||
|
<td align="right">
|
||||||
|
<gtc:gtLabel ID="lblTJYZ2" runat="server">调价因子02:</gtc:gtLabel>
|
||||||
|
</td>
|
||||||
|
<td align="left">
|
||||||
|
<gtc:gtNumTextBox ID="txtTJYZ2" runat="server" Width="80px" ShowZero="false"></gtc:gtNumTextBox>
|
||||||
|
</td>
|
||||||
|
<td align="right">
|
||||||
|
<gtc:gtLabel ID="lblTJYZ12" runat="server">调价因子12:</gtc:gtLabel>
|
||||||
|
</td>
|
||||||
|
<td align="left">
|
||||||
|
<gtc:gtNumTextBox ID="txtTJYZ12" runat="server" Width="80px" ShowZero="false"></gtc:gtNumTextBox>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr style="height:2px;"></tr>
|
||||||
|
<tr>
|
||||||
|
<td align="right">
|
||||||
|
<gtc:gtLabel ID="lblTJYZ3" runat="server">调价因子03:</gtc:gtLabel>
|
||||||
|
</td>
|
||||||
|
<td align="left">
|
||||||
|
<gtc:gtNumTextBox ID="txtTJYZ3" runat="server" Width="80px" ShowZero="false"></gtc:gtNumTextBox>
|
||||||
|
</td>
|
||||||
|
<td align="right">
|
||||||
|
<gtc:gtLabel ID="lblTJYZ13" runat="server">调价因子13:</gtc:gtLabel>
|
||||||
|
</td>
|
||||||
|
<td align="left">
|
||||||
|
<gtc:gtNumTextBox ID="txtTJYZ13" runat="server" Width="80px" ShowZero="false"></gtc:gtNumTextBox>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr style="height:2px;"></tr>
|
||||||
|
<tr>
|
||||||
|
<td align="right">
|
||||||
|
<gtc:gtLabel ID="lblTJYZ4" runat="server">调价因子04:</gtc:gtLabel>
|
||||||
|
</td>
|
||||||
|
<td align="left">
|
||||||
|
<gtc:gtNumTextBox ID="txtTJYZ4" runat="server" Width="80px" ShowZero="false"></gtc:gtNumTextBox>
|
||||||
|
</td>
|
||||||
|
<td align="right">
|
||||||
|
<gtc:gtLabel ID="lblTJYZ14" runat="server">调价因子14:</gtc:gtLabel>
|
||||||
|
</td>
|
||||||
|
<td align="left">
|
||||||
|
<gtc:gtNumTextBox ID="txtTJYZ14" runat="server" Width="80px" ShowZero="false"></gtc:gtNumTextBox>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr style="height:2px;"></tr>
|
||||||
|
<tr>
|
||||||
|
<td align="right">
|
||||||
|
<gtc:gtLabel ID="lblTJYZ5" runat="server">调价因子05:</gtc:gtLabel>
|
||||||
|
</td>
|
||||||
|
<td align="left">
|
||||||
|
<gtc:gtNumTextBox ID="txtTJYZ5" runat="server" Width="80px" ShowZero="false"></gtc:gtNumTextBox>
|
||||||
|
</td>
|
||||||
|
<td align="right">
|
||||||
|
<gtc:gtLabel ID="lblTJYZ15" runat="server">调价因子15:</gtc:gtLabel>
|
||||||
|
</td>
|
||||||
|
<td align="left">
|
||||||
|
<gtc:gtNumTextBox ID="txtTJYZ15" runat="server" Width="80px" ShowZero="false"></gtc:gtNumTextBox>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr style="height:2px;"></tr>
|
||||||
|
<tr>
|
||||||
|
<td align="right">
|
||||||
|
<gtc:gtLabel ID="lblTJYZ6" runat="server">调价因子06:</gtc:gtLabel>
|
||||||
|
</td>
|
||||||
|
<td align="left">
|
||||||
|
<gtc:gtNumTextBox ID="txtTJYZ6" runat="server" Width="80px" ShowZero="false"></gtc:gtNumTextBox>
|
||||||
|
</td>
|
||||||
|
<td align="right">
|
||||||
|
<gtc:gtLabel ID="lblTJYZ16" runat="server">调价因子16:</gtc:gtLabel>
|
||||||
|
</td>
|
||||||
|
<td align="left">
|
||||||
|
<gtc:gtNumTextBox ID="txtTJYZ16" runat="server" Width="80px" ShowZero="false"></gtc:gtNumTextBox>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr style="height:2px;"></tr>
|
||||||
|
<tr>
|
||||||
|
<td align="right">
|
||||||
|
<gtc:gtLabel ID="lblTJYZ7" runat="server">调价因子07:</gtc:gtLabel>
|
||||||
|
</td>
|
||||||
|
<td align="left">
|
||||||
|
<gtc:gtNumTextBox ID="txtTJYZ7" runat="server" Width="80px" ShowZero="false"></gtc:gtNumTextBox>
|
||||||
|
</td>
|
||||||
|
<td align="right">
|
||||||
|
<gtc:gtLabel ID="lblTJYZ17" runat="server">调价因子17:</gtc:gtLabel>
|
||||||
|
</td>
|
||||||
|
<td align="left">
|
||||||
|
<gtc:gtNumTextBox ID="txtTJYZ17" runat="server" Width="80px" ShowZero="false"></gtc:gtNumTextBox>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr style="height:2px;"></tr>
|
||||||
|
<tr>
|
||||||
|
<td align="right">
|
||||||
|
<gtc:gtLabel ID="lblTJYZ8" runat="server">调价因子08:</gtc:gtLabel>
|
||||||
|
</td>
|
||||||
|
<td align="left">
|
||||||
|
<gtc:gtNumTextBox ID="txtTJYZ8" runat="server" Width="80px" ShowZero="false"></gtc:gtNumTextBox>
|
||||||
|
</td>
|
||||||
|
<td align="right">
|
||||||
|
<gtc:gtLabel ID="lblTJYZ18" runat="server">调价因子18:</gtc:gtLabel>
|
||||||
|
</td>
|
||||||
|
<td align="left">
|
||||||
|
<gtc:gtNumTextBox ID="txtTJYZ18" runat="server" Width="80px" ShowZero="false"></gtc:gtNumTextBox>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr style="height:2px;"></tr>
|
||||||
|
<tr>
|
||||||
|
<td align="right">
|
||||||
|
<gtc:gtLabel ID="lblTJYZ9" runat="server">调价因子09:</gtc:gtLabel>
|
||||||
|
</td>
|
||||||
|
<td align="left">
|
||||||
|
<gtc:gtNumTextBox ID="txtTJYZ9" runat="server" Width="80px" ShowZero="false"></gtc:gtNumTextBox>
|
||||||
|
</td>
|
||||||
|
<td align="right">
|
||||||
|
<gtc:gtLabel ID="lblTJYZ19" runat="server">调价因子19:</gtc:gtLabel>
|
||||||
|
</td>
|
||||||
|
<td align="left">
|
||||||
|
<gtc:gtNumTextBox ID="txtTJYZ19" runat="server" Width="80px" ShowZero="false"></gtc:gtNumTextBox>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr style="height:2px;"></tr>
|
||||||
|
<tr>
|
||||||
|
<td align="right">
|
||||||
|
<gtc:gtLabel ID="lblTJYZ10" runat="server">调价因子10:</gtc:gtLabel>
|
||||||
|
</td>
|
||||||
|
<td align="left">
|
||||||
|
<gtc:gtNumTextBox ID="txtTJYZ10" runat="server" Width="80px" ShowZero="false"></gtc:gtNumTextBox>
|
||||||
|
</td>
|
||||||
|
<td align="right">
|
||||||
|
<gtc:gtLabel ID="lblTJYZ20" runat="server">调价因子20:</gtc:gtLabel>
|
||||||
|
</td>
|
||||||
|
<td align="left">
|
||||||
|
<gtc:gtNumTextBox ID="txtTJYZ20" runat="server" Width="80px" ShowZero="false"></gtc:gtNumTextBox>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr style="height:2px;"></tr>
|
||||||
|
<tr>
|
||||||
|
<td align="right">
|
||||||
|
<gtc:gtLabel ID="GtLabel5" runat="server">维护人:</gtc:gtLabel>
|
||||||
|
</td>
|
||||||
|
<td align="left">
|
||||||
|
<gtc:gtTextBox ID="txtWHR" runat="server" Width="72px"></gtc:gtTextBox>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr style="height:2px;"></tr>
|
||||||
|
<tr>
|
||||||
|
<td align="right">
|
||||||
|
<gtc:gtLabel ID="GtLabel6" runat="server">维护时间:</gtc:gtLabel>
|
||||||
|
</td>
|
||||||
|
<td align="left">
|
||||||
|
<gtc:gtDateTime ID="datWHSJ" runat="server" Width="142px">
|
||||||
|
</gtc:gtDateTime>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
<asp:HiddenField ID="txtWHRID" runat="server" />
|
||||||
|
<asp:HiddenField ID="txtJGBID" runat="server" />
|
||||||
|
<asp:HiddenField ID="txtYZID" runat="server" />
|
||||||
|
<asp:HiddenField ID="txtOLD_YZID" runat="server" />
|
||||||
|
<asp:HiddenField ID="txtOLD_XLXHID" runat="server" />
|
||||||
|
<asp:HiddenField ID="txtOLD_XLGGID" runat="server" />
|
||||||
|
<asp:HiddenField ID="txtOLD_DYDJID" runat="server" />
|
||||||
|
<asp:HiddenField ID="txtOLD_BJSLXX" runat="server" />
|
||||||
|
<asp:HiddenField ID="txtOLD_BJSLSX" runat="server" />
|
||||||
|
</asp:Content>
|
||||||
|
<asp:Content ID="cntHiFZRen" ContentPlaceHolderID="cphBrand" runat="server">
|
||||||
|
</asp:Content>
|
||||||
@@ -0,0 +1,494 @@
|
|||||||
|
using System;
|
||||||
|
using System.Data;
|
||||||
|
using System.Configuration;
|
||||||
|
using System.Collections;
|
||||||
|
using System.Web;
|
||||||
|
using System.Web.Security;
|
||||||
|
using System.Web.UI;
|
||||||
|
using System.Web.UI.WebControls;
|
||||||
|
using System.Web.UI.WebControls.WebParts;
|
||||||
|
using System.Web.UI.HtmlControls;
|
||||||
|
using GThinking.N_MISPRO;
|
||||||
|
using GThinking.N_MISPRO.Data;
|
||||||
|
using GThinking.N_MODEL.Page;
|
||||||
|
using GThinking.N_MISPRO.Utility;
|
||||||
|
using GThinking.N_PUBLIC;
|
||||||
|
using GThinking.N_MODEL.Dialog;
|
||||||
|
using GThinking.N_CONTROL;
|
||||||
|
|
||||||
|
namespace GThinking.N_XLXSBJ
|
||||||
|
{
|
||||||
|
public partial class TZYZBJMInfo : SingleCardBase
|
||||||
|
{
|
||||||
|
TZYZBJ_YZZM entity = new TZYZBJ_YZZM();
|
||||||
|
|
||||||
|
#region 页面初始化
|
||||||
|
|
||||||
|
protected void Page_Load(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
this.UMID = 100860178;
|
||||||
|
this.UMName = "按型号规格电压等级报价数量区间调报价";
|
||||||
|
this.CurMaster = Master;
|
||||||
|
this.CurEntity = entity;
|
||||||
|
this.PageHeight = 450;
|
||||||
|
this.PageWidth = 500;
|
||||||
|
|
||||||
|
if (XLBJDUtils.GetDefaultBJU003(GetOption(100860000, "BJU003")).Equals("M"))
|
||||||
|
{
|
||||||
|
lblBJSLDW.Text = "M";
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
lblBJSLDW.Text = "Km";
|
||||||
|
}
|
||||||
|
|
||||||
|
SetTJYZLable();
|
||||||
|
|
||||||
|
if (!this.IsPostBack)
|
||||||
|
{
|
||||||
|
InitControls();
|
||||||
|
}
|
||||||
|
|
||||||
|
base.InitPage();
|
||||||
|
}
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
#region 模板事件继承
|
||||||
|
|
||||||
|
protected override void ReportDataSetAdd()
|
||||||
|
{
|
||||||
|
TDatabase db = TContextDatabases.GetDatabase("DBERP");
|
||||||
|
TSQL sql = new TSQL(db);
|
||||||
|
sql.Add("select XLXSTZYZ_YZID, XLXSTZYZ_YZMC from XLXSTZYZ where XLXSTZYZ_MXBH='BJD' and XLXSTZYZ_TJYS='M' order by XLXSTZYZ_XSXH,XLXSTZYZ_YZID ");
|
||||||
|
DataSet ds = db.OpenDataSet(sql);
|
||||||
|
for (int i = 0; i < ds.Tables[0].Rows.Count; i++)
|
||||||
|
{
|
||||||
|
string sYZID = "TZYZ_" + ds.Tables[0].Rows[i]["XLXSTZYZ_YZID"].ToString().Trim();
|
||||||
|
string sYZMC = ds.Tables[0].Rows[i]["XLXSTZYZ_YZMC"].ToString().Trim();
|
||||||
|
AddUserReportField("XLXSBJDYZZM", sYZID, sYZMC, "N");
|
||||||
|
}
|
||||||
|
|
||||||
|
base.ReportDataSetAdd();
|
||||||
|
}
|
||||||
|
|
||||||
|
protected override void ReportRecordSetAdd()
|
||||||
|
{
|
||||||
|
TDatabase dberp = TContextDatabases.GetDatabase("DBERP");
|
||||||
|
|
||||||
|
TSQL sSQL = new TSQL(dberp);
|
||||||
|
TSQL SQL = new TSQL(dberp);
|
||||||
|
SQL.Clear();
|
||||||
|
SQL.Add("select XLXSTZYZ_YZID, XLXSTZYZ_YZMC ");
|
||||||
|
SQL.Add(" from XLXSTZYZ");
|
||||||
|
SQL.Add(" where XLXSTZYZ_MXBH = 'BJD' and XLXSTZYZ_TJYS='M' order by XLXSTZYZ_XSXH,XLXSTZYZ_YZID ");
|
||||||
|
DataSet ds = dberp.OpenDataSet(SQL);
|
||||||
|
for (int i = 0; i < ds.Tables[0].Rows.Count; i++)
|
||||||
|
{
|
||||||
|
sSQL.Add(string.Format(",sum(decode(XLXSBJDYZZM_YZID, '{0}', XLXSBJDYZZM_YZZ, 0)) as TZYZ_{0}", ds.Tables[0].Rows[i][0].ToString().Trim()));
|
||||||
|
}
|
||||||
|
string sXLXHID = cbxXLXHID.SelectedValue.Trim().Equals("") ? " " : cbxXLXHID.SelectedValue.Trim();
|
||||||
|
string sXLGGID = txtXLGGID.Text.Trim().Equals("") ? " " : txtXLGGID.Text.Trim().Replace("'", "''");
|
||||||
|
string sDYDJID = cbxDYDJID.SelectedValue.Trim().Equals("") ? " " : cbxDYDJID.SelectedValue.Trim();
|
||||||
|
sSQL.Text = "select 1" + sSQL.Text + " from XLXSBJDYZZM where XLXSBJDYZZM_JGBID='" + txtJGBID.Value.Trim()
|
||||||
|
+ "' and XLXSBJDYZZM_XLXHID = '" + sXLXHID
|
||||||
|
+ "' and XLXSBJDYZZM_XLGGID = '" + sXLGGID
|
||||||
|
+ "' and XLXSBJDYZZM_DYDJID = '" + sDYDJID
|
||||||
|
+ "' and XLXSBJDYZZM_BJSLSX= " + txtBJSLSX.Value + " and XLXSBJDYZZM_BJSLXX= " + txtBJSLXX.Value + "";
|
||||||
|
AddUserReportSQL("XLXSBJDYZZM", sSQL);
|
||||||
|
base.ReportRecordSetAdd();
|
||||||
|
}
|
||||||
|
|
||||||
|
protected override void SetControlState()
|
||||||
|
{
|
||||||
|
base.SetControlState();
|
||||||
|
|
||||||
|
txtWHR.Enabled = false;
|
||||||
|
datWHSJ.Enabled = false;
|
||||||
|
|
||||||
|
# region 给调价因子控件设只读性
|
||||||
|
if (ControlState == TControlState.ctsInsert || ControlState == TControlState.ctsCopy || ControlState == TControlState.ctsEdit)
|
||||||
|
{
|
||||||
|
for (int i = 1; i <= 20; i++)
|
||||||
|
{
|
||||||
|
gtNumTextBox txtTJYZ = (gtNumTextBox)Master.ContentFormControl.FindControl("txt" + "TJYZ" + i);
|
||||||
|
txtTJYZ.Enabled = false;
|
||||||
|
}
|
||||||
|
|
||||||
|
string[] sTJYZList = PageParam.GetRTrimString("TJYZList").Split(',');
|
||||||
|
for (int i = 0; i < sTJYZList.Length; i++)
|
||||||
|
{
|
||||||
|
for (int j = 1; j <= 20; j++)
|
||||||
|
{
|
||||||
|
string sTZYZID = "BJ" + j.ToString().PadLeft(2, '0') + "|";
|
||||||
|
gtNumTextBox txtTJYZ = (gtNumTextBox)Master.ContentFormControl.FindControl("txt" + "TJYZ" + j.ToString().Trim());
|
||||||
|
if (sTJYZList[i].StartsWith(sTZYZID))
|
||||||
|
{
|
||||||
|
txtTJYZ.Enabled = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endregion
|
||||||
|
}
|
||||||
|
|
||||||
|
protected override void LoadRecord()
|
||||||
|
{
|
||||||
|
if (!IsPostBack)
|
||||||
|
{
|
||||||
|
entity.Param.Add("XLXSBJDYZZM_JGBID", PageParam.GetRTrimString("XLXSBJDYZZM_JGBID"));
|
||||||
|
entity.Param.Add("XLXSBJDYZZM_XLXHID", PageParam.GetRTrimString("XLXSBJDYZZM_XLXHID").Equals("") ? " " : PageParam.GetRTrimString("XLXSBJDYZZM_XLXHID"));
|
||||||
|
entity.Param.Add("XLXSBJDYZZM_XLGGID", PageParam.GetRTrimString("XLXSBJDYZZM_XLGGID").Equals("") ? " " : PageParam.GetRTrimString("XLXSBJDYZZM_XLGGID"));
|
||||||
|
entity.Param.Add("XLXSBJDYZZM_DYDJID", PageParam.GetRTrimString("XLXSBJDYZZM_DYDJID").Equals("") ? " " : PageParam.GetRTrimString("XLXSBJDYZZM_DYDJID"));
|
||||||
|
entity.Param.Add("XLXSBJDYZZM_BJSLSX", PageParam.GetRTrimString("XLXSBJDYZZM_BJSLSX"));
|
||||||
|
entity.Param.Add("XLXSBJDYZZM_BJSLXX", PageParam.GetRTrimString("XLXSBJDYZZM_BJSLXX"));
|
||||||
|
entity.Param.Add("XLXSBJDYZZM_YZID", PageParam.GetRTrimString("XLXSBJDYZZM_YZID"));
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
entity.Param.Add("XLXSBJDYZZM_JGBID", txtJGBID.Value.Trim());
|
||||||
|
entity.Param.Add("XLXSBJDYZZM_XLXHID", txtOLD_XLXHID.Value.Trim().Equals("") ? " " : txtOLD_XLXHID.Value.Trim());
|
||||||
|
entity.Param.Add("XLXSBJDYZZM_XLGGID", txtOLD_XLGGID.Value.Trim().Equals("") ? " " : txtOLD_XLGGID.Value.Trim());
|
||||||
|
entity.Param.Add("XLXSBJDYZZM_DYDJID", txtOLD_DYDJID.Value.Trim().Equals("") ? " " : txtOLD_DYDJID.Value.Trim());
|
||||||
|
entity.Param.Add("XLXSBJDYZZM_BJSLSX", txtOLD_BJSLSX.Value);
|
||||||
|
entity.Param.Add("XLXSBJDYZZM_BJSLXX", txtOLD_BJSLXX.Value);
|
||||||
|
entity.Param.Add("XLXSBJDYZZM_YZID", txtYZID.Value.Trim());
|
||||||
|
}
|
||||||
|
base.LoadRecord();
|
||||||
|
|
||||||
|
|
||||||
|
txtOLD_XLXHID.Value = cbxXLXHID.SelectedValue.Trim().Equals("") ? " " : cbxXLXHID.SelectedValue.Trim();
|
||||||
|
txtOLD_XLGGID.Value = txtXLGGID.Text.Trim().Equals("") ? " " : txtXLGGID.Text.Trim();
|
||||||
|
txtOLD_DYDJID.Value = cbxDYDJID.SelectedValue.Trim().Equals("") ? " " : cbxDYDJID.SelectedValue.Trim();
|
||||||
|
txtOLD_BJSLSX.Value = txtBJSLSX.Value.ToString().Trim();
|
||||||
|
txtOLD_BJSLXX.Value = txtBJSLXX.Value.ToString().Trim();
|
||||||
|
|
||||||
|
# region 给调价因子控件赋值
|
||||||
|
TDatabase dberp = TContextDatabases.GetDatabase("DBERP");
|
||||||
|
TSQL sql = new TSQL(dberp);
|
||||||
|
sql.Clear();
|
||||||
|
sql.Add(" select XLXSBJDYZZM_YZID, XLXSBJDYZZM_YZZ from XLXSBJDYZZM ");
|
||||||
|
sql.Add(" where XLXSBJDYZZM_JGBID=:pJGBID and XLXSBJDYZZM_XLXHID=:pXLXHID ");
|
||||||
|
sql.Add(" and XLXSBJDYZZM_XLGGID=:pXLGGID and XLXSBJDYZZM_DYDJID=:pDYDJID ");
|
||||||
|
sql.Add(" and XLXSBJDYZZM_BJSLXX=:pBJSLXX and XLXSBJDYZZM_BJSLSX=:pBJSLSX ");
|
||||||
|
sql.Add(" order by XLXSBJDYZZM_YZID");
|
||||||
|
sql.ParamByName("pJGBID").Value = txtJGBID.Value.Trim();
|
||||||
|
sql.ParamByName("pXLXHID").Value = cbxXLXHID.SelectedValue.Trim().Equals("") ? " " : cbxXLXHID.SelectedValue.Trim();
|
||||||
|
sql.ParamByName("pXLGGID").Value = txtXLGGID.Text.Trim().Equals("") ? " " : txtXLGGID.Text.Trim();
|
||||||
|
sql.ParamByName("pDYDJID").Value = cbxDYDJID.SelectedValue.Trim().Equals("") ? " " : cbxDYDJID.SelectedValue.Trim();
|
||||||
|
sql.ParamByName("pBJSLSX").Value = txtBJSLSX.Value;
|
||||||
|
sql.ParamByName("pBJSLXX").Value = txtBJSLXX.Value;
|
||||||
|
DataSet ds = dberp.OpenDataSet(sql);
|
||||||
|
for (int i = 0; i < ds.Tables[0].Rows.Count; i++)
|
||||||
|
{
|
||||||
|
string sYZID = ds.Tables[0].Rows[i][0].ToString().Trim();
|
||||||
|
double dYZZ = CMISproConvert.StrToFloat(ds.Tables[0].Rows[i][1].ToString().Trim());
|
||||||
|
if (PageParam.GetRTrimString("TJYZList").Contains(sYZID + "|"))
|
||||||
|
{
|
||||||
|
for (int j = 1; j <= 20; j++)
|
||||||
|
{
|
||||||
|
string sTZYZID = "BJ" + j.ToString().PadLeft(2, '0');
|
||||||
|
gtNumTextBox txtTJYZ = (gtNumTextBox)Master.ContentFormControl.FindControl("txt" + "TJYZ" + j.ToString().Trim());
|
||||||
|
if (sYZID.Equals(sTZYZID))
|
||||||
|
txtTJYZ.Value = dYZZ;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endregion
|
||||||
|
}
|
||||||
|
|
||||||
|
protected override void OnNewRecorder()
|
||||||
|
{
|
||||||
|
base.OnNewRecorder();
|
||||||
|
txtJGBID.Value = PageParam.GetRTrimString("XLXSBJDYZZM_JGBID");
|
||||||
|
txtWHR.Text = tSession.UserName;
|
||||||
|
txtWHRID.Value = tSession.UserId;
|
||||||
|
datWHSJ.Text = CMISproConvert.ConvertTime(System.DateTime.Now);
|
||||||
|
if (!string.IsNullOrEmpty(PageParam.GetRTrimString("XLXHID")))
|
||||||
|
{
|
||||||
|
cbxXLXHID.SelectedValue = PageParam.GetRTrimString("XLXHID");
|
||||||
|
}
|
||||||
|
if (!string.IsNullOrEmpty(PageParam.GetRTrimString("XLGGID")))
|
||||||
|
{
|
||||||
|
txtXLGGID.Text = PageParam.GetRTrimString("XLGGID");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
protected override void OnCopyRecorder()
|
||||||
|
{
|
||||||
|
base.OnCopyRecorder();
|
||||||
|
txtJGBID.Value = PageParam.GetRTrimString("XLXSBJDYZZM_JGBID");
|
||||||
|
txtWHR.Text = tSession.UserName;
|
||||||
|
txtWHRID.Value = tSession.UserId;
|
||||||
|
datWHSJ.Text = CMISproConvert.ConvertTime(System.DateTime.Now);
|
||||||
|
}
|
||||||
|
|
||||||
|
protected override bool DataLogicValid()
|
||||||
|
{
|
||||||
|
if (!base.DataLogicValid()) return false;
|
||||||
|
if (cbxXLXHID.SelectedValue.Trim().Equals(""))
|
||||||
|
{
|
||||||
|
if (!txtXLGGID.Text.Trim().Equals("") || !cbxDYDJID.SelectedValue.Trim().Equals(""))
|
||||||
|
{
|
||||||
|
ShowMessage("型号为空时规格和电压等级必须为空!");
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (txtXLGGID.Text.Trim().Length > 60)
|
||||||
|
{
|
||||||
|
ShowMessage("规格长度不允许超过60个字符!");
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (txtBJSLXX.Value < 0)
|
||||||
|
{
|
||||||
|
ShowMessage("报价数量下限--不允许为负数!");
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
if (txtBJSLSX.Value < 0)
|
||||||
|
{
|
||||||
|
ShowMessage("报价数量上限--不允许为负数!");
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
if (txtBJSLSX.Value != 0)
|
||||||
|
{
|
||||||
|
if (txtBJSLXX.Value > txtBJSLSX.Value)
|
||||||
|
{
|
||||||
|
ShowMessage("报价数量下限不允许超过报价数量上限!");
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
TDatabase dberp = TContextDatabases.GetDatabase("DBERP");
|
||||||
|
TSQL sql = new TSQL(dberp);
|
||||||
|
string[] sTJYZList = PageParam.GetRTrimString("TJYZList").Split(',');
|
||||||
|
for (int i = 0; i < sTJYZList.Length; i++)
|
||||||
|
{
|
||||||
|
if (ControlState == TControlState.ctsInsert || ControlState == TControlState.ctsCopy)
|
||||||
|
{
|
||||||
|
sql.Clear();
|
||||||
|
sql.Add("select XLXSBJDYZZM_XLXHID, XLXSBJDYZZM_XLGGID, XLXSBJDYZZM_DYDJID, XLXSBJDYZZM_BJSLXX, XLXSBJDYZZM_BJSLSX ");
|
||||||
|
sql.Add("from XLXSBJDYZZM ");
|
||||||
|
sql.Add("where XLXSBJDYZZM_JGBID=:pJGBID and XLXSBJDYZZM_YZID=:pYZID ");
|
||||||
|
sql.Add(" and XLXSBJDYZZM_XLXHID=:pXLXHID and XLXSBJDYZZM_XLGGID=:pXLGGID and XLXSBJDYZZM_DYDJID=:pDYDJID ");
|
||||||
|
sql.Add(" and ((:pBJSLSX = 0) or XLXSBJDYZZM_BJSLXX < :pBJSLSX) ");
|
||||||
|
sql.Add(" and ((XLXSBJDYZZM_BJSLSX = 0) or :pBJSLXX < XLXSBJDYZZM_BJSLSX) ");
|
||||||
|
|
||||||
|
sql.ParamByName("pJGBID").Value = txtJGBID.Value.Trim();
|
||||||
|
sql.ParamByName("pYZID").Value = sTJYZList[i].Split('|')[0];
|
||||||
|
sql.ParamByName("pXLXHID").Value = cbxXLXHID.SelectedValue.Trim().Equals("") ? " " : cbxXLXHID.SelectedValue.Trim();
|
||||||
|
sql.ParamByName("pXLGGID").Value = txtXLGGID.Text.Trim().Equals("") ? " " : txtXLGGID.Text.Trim();
|
||||||
|
sql.ParamByName("pDYDJID").Value = cbxDYDJID.SelectedValue.Trim().Equals("") ? " " : cbxDYDJID.SelectedValue.Trim();
|
||||||
|
sql.ParamByName("pBJSLXX").Value = txtBJSLXX.Value;
|
||||||
|
sql.ParamByName("pBJSLSX").Value = txtBJSLSX.Value;
|
||||||
|
DataSet ds = dberp.OpenDataSet(sql);
|
||||||
|
if (ds.Tables[0].Rows.Count > 0)
|
||||||
|
{
|
||||||
|
string sBJSLQJ = "";
|
||||||
|
string sResult = "(型号:" + ds.Tables[0].Rows[0]["XLXSBJDYZZM_XLXHID"].ToString().Trim()
|
||||||
|
+ ",规格:" + ds.Tables[0].Rows[0]["XLXSBJDYZZM_XLGGID"].ToString().Trim()
|
||||||
|
+ ",电压等级:" + ds.Tables[0].Rows[0]["XLXSBJDYZZM_DYDJID"].ToString().Trim()
|
||||||
|
+ ")";
|
||||||
|
if (CMISproConvert.StrToFloat(ds.Tables[0].Rows[0]["XLXSBJDYZZM_BJSLSX"].ToString()) != 0)
|
||||||
|
sBJSLQJ = ds.Tables[0].Rows[0]["XLXSBJDYZZM_BJSLXX"].ToString().Trim() + "~" + ds.Tables[0].Rows[0]["XLXSBJDYZZM_BJSLSX"].ToString().Trim() + lblBJSLDW.Text.Trim();
|
||||||
|
else
|
||||||
|
sBJSLQJ = ds.Tables[0].Rows[0]["XLXSBJDYZZM_BJSLXX"].ToString().Trim() + "~" + "--" + lblBJSLDW.Text.Trim();
|
||||||
|
|
||||||
|
ShowMessage(string.Format("因子{1}与已有报价数量区间【{0}】{2}的记录有交集,不允许保存!", sBJSLQJ, sTJYZList[i].Replace("(X)", ""), sResult));
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
sql.Clear();
|
||||||
|
sql.Add("select XLXSBJDYZZM_XLXHID, XLXSBJDYZZM_XLGGID, XLXSBJDYZZM_DYDJID, XLXSBJDYZZM_BJSLXX, XLXSBJDYZZM_BJSLSX ");
|
||||||
|
sql.Add("from XLXSBJDYZZM ");
|
||||||
|
sql.Add("where XLXSBJDYZZM_JGBID=:pJGBID and XLXSBJDYZZM_YZID=:pYZID ");
|
||||||
|
sql.Add(" and not (XLXSBJDYZZM_XLXHID=:pOLDXLXHID and XLXSBJDYZZM_XLGGID=:pOLDXLGGID and XLXSBJDYZZM_DYDJID=:pOLDDYDJID ");
|
||||||
|
sql.Add(" and XLXSBJDYZZM_BJSLXX=:pOLDBJSLXX and XLXSBJDYZZM_BJSLSX=:pOLDBJSLSX) ");
|
||||||
|
sql.Add(" and XLXSBJDYZZM_XLXHID=:pXLXHID and XLXSBJDYZZM_XLGGID=:pXLGGID and XLXSBJDYZZM_DYDJID=:pDYDJID ");
|
||||||
|
sql.Add(" and ((:pBJSLSX = 0) or XLXSBJDYZZM_BJSLXX < :pBJSLSX) ");
|
||||||
|
sql.Add(" and ((XLXSBJDYZZM_BJSLSX = 0) or :pBJSLXX < XLXSBJDYZZM_BJSLSX) ");
|
||||||
|
|
||||||
|
sql.ParamByName("pJGBID").Value = txtJGBID.Value.Trim();
|
||||||
|
sql.ParamByName("pYZID").Value = sTJYZList[i].Split('|')[0];
|
||||||
|
sql.ParamByName("pOLDXLXHID").Value = txtOLD_XLXHID.Value.Trim().Equals("") ? " " : txtOLD_XLXHID.Value.Trim();
|
||||||
|
sql.ParamByName("pOLDXLGGID").Value = txtOLD_XLGGID.Value.Trim().Equals("") ? " " : txtOLD_XLGGID.Value.Trim();
|
||||||
|
sql.ParamByName("pOLDDYDJID").Value = txtOLD_DYDJID.Value.Trim().Equals("") ? " " : txtOLD_DYDJID.Value.Trim();
|
||||||
|
sql.ParamByName("pOLDBJSLXX").Value = txtOLD_BJSLXX.Value;
|
||||||
|
sql.ParamByName("pOLDBJSLSX").Value = txtOLD_BJSLSX.Value;
|
||||||
|
sql.ParamByName("pXLXHID").Value = cbxXLXHID.SelectedValue.Trim().Equals("") ? " " : cbxXLXHID.SelectedValue.Trim();
|
||||||
|
sql.ParamByName("pXLGGID").Value = txtXLGGID.Text.Trim().Equals("") ? " " : txtXLGGID.Text.Trim();
|
||||||
|
sql.ParamByName("pDYDJID").Value = cbxDYDJID.SelectedValue.Trim().Equals("") ? " " : cbxDYDJID.SelectedValue.Trim();
|
||||||
|
sql.ParamByName("pBJSLXX").Value = txtBJSLXX.Value;
|
||||||
|
sql.ParamByName("pBJSLSX").Value = txtBJSLSX.Value;
|
||||||
|
DataSet ds = dberp.OpenDataSet(sql);
|
||||||
|
if (ds.Tables[0].Rows.Count > 0)
|
||||||
|
{
|
||||||
|
string sBJSLQJ = "";
|
||||||
|
string sResult = "(型号:" + ds.Tables[0].Rows[0]["XLXSBJDYZZM_XLXHID"].ToString().Trim()
|
||||||
|
+ ",规格:" + ds.Tables[0].Rows[0]["XLXSBJDYZZM_XLGGID"].ToString().Trim()
|
||||||
|
+ ",电压等级:" + ds.Tables[0].Rows[0]["XLXSBJDYZZM_DYDJID"].ToString().Trim()
|
||||||
|
+ ")";
|
||||||
|
if (CMISproConvert.StrToFloat(ds.Tables[0].Rows[0]["XLXSBJDYZZM_BJSLSX"].ToString()) != 0)
|
||||||
|
sBJSLQJ = ds.Tables[0].Rows[0]["XLXSBJDYZZM_BJSLXX"].ToString().Trim() + "~" + ds.Tables[0].Rows[0]["XLXSBJDYZZM_BJSLSX"].ToString().Trim() + lblBJSLDW.Text.Trim();
|
||||||
|
else
|
||||||
|
sBJSLQJ = ds.Tables[0].Rows[0]["XLXSBJDYZZM_BJSLXX"].ToString().Trim() + "~" + "--" + lblBJSLDW.Text.Trim();
|
||||||
|
|
||||||
|
ShowMessage(string.Format("因子{1}与已有报价数量区间【{0}】{2}的记录有交集,不允许保存!", sBJSLQJ, sTJYZList[i].Replace("(X)", ""), sResult));
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
protected override bool Master_BeforeDeleteAction(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
string sYZIDlist = TZYZBJAInfo.GetYZIDList(PageParam.GetRTrimString("TJYZList"));
|
||||||
|
entity.EntityTable.DeleteSql = " delete from XLXSBJDYZZM where XLXSBJDYZZM_JGBID =:XLXSBJDYZZM_JGBID "
|
||||||
|
+ " and XLXSBJDYZZM_XLXHID=:XLXSBJDYZZM_XLXHID and XLXSBJDYZZM_XLGGID=isnull(:XLXSBJDYZZM_XLGGID,' ') and XLXSBJDYZZM_DYDJID=isnull(:XLXSBJDYZZM_DYDJID,' ')"
|
||||||
|
+ " and XLXSBJDYZZM_BJSLSX=:XLXSBJDYZZM_BJSLSX and XLXSBJDYZZM_BJSLXX=:XLXSBJDYZZM_BJSLXX and "
|
||||||
|
+ CMISproDataBase.GetWhereEqual("XLXSBJDYZZM_YZID", sYZIDlist);
|
||||||
|
return base.Master_BeforeDeleteAction(sender, e);
|
||||||
|
}
|
||||||
|
|
||||||
|
protected override bool Master_BeforeSaveAction(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
if (!base.Master_BeforeSaveAction(sender, e)) return false;
|
||||||
|
|
||||||
|
string sYZIDlist = TZYZBJAInfo.GetYZIDList(PageParam.GetRTrimString("TJYZList"));
|
||||||
|
entity.EntityTable.UpdateSql = " update XLXSBJDYZZM "
|
||||||
|
+ " set XLXSBJDYZZM_JGBID = :XLXSBJDYZZM_JGBID, "
|
||||||
|
+ " XLXSBJDYZZM_XLXHID=:XLXSBJDYZZM_XLXHID, XLXSBJDYZZM_XLGGID=isnull(:XLXSBJDYZZM_XLGGID,' '), XLXSBJDYZZM_DYDJID=isnull(:XLXSBJDYZZM_DYDJID,' '), "
|
||||||
|
+ " XLXSBJDYZZM_BJSLSX=isnull(:XLXSBJDYZZM_BJSLSX,0), XLXSBJDYZZM_BJSLXX=isnull(:XLXSBJDYZZM_BJSLXX,0),XLXSBJDYZZM_YZZ=isnull(:XLXSBJDYZZM_YZZ,0), "
|
||||||
|
+ " XLXSBJDYZZM_WHR=:XLXSBJDYZZM_WHR, XLXSBJDYZZM_WHRID=:XLXSBJDYZZM_WHRID, XLXSBJDYZZM_WHSJ=:XLXSBJDYZZM_WHSJ "
|
||||||
|
+ " where XLXSBJDYZZM_JGBID =:XLXSBJDYZZM_JGBID "
|
||||||
|
+ " and XLXSBJDYZZM_XLXHID =:OLD_XLXSBJDYZZM_XLXHID and XLXSBJDYZZM_XLGGID=:OLD_XLXSBJDYZZM_XLGGID and XLXSBJDYZZM_DYDJID=:OLD_XLXSBJDYZZM_DYDJID "
|
||||||
|
+ "and XLXSBJDYZZM_BJSLSX=:OLD_XLXSBJDYZZM_BJSLSX and XLXSBJDYZZM_BJSLXX=:OLD_XLXSBJDYZZM_BJSLXX and " + CMISproDataBase.GetWhereEqual("XLXSBJDYZZM_YZID", sYZIDlist);
|
||||||
|
txtWHR.Text = tSession.UserName;
|
||||||
|
txtWHRID.Value = tSession.UserId;
|
||||||
|
datWHSJ.Text = CMISproConvert.ConvertTime(System.DateTime.Now);
|
||||||
|
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
protected override bool Master_AfterSaveAction(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
txtOLD_XLXHID.Value = cbxXLXHID.SelectedValue.Trim().Equals("") ? " " : cbxXLXHID.SelectedValue.Trim();
|
||||||
|
txtOLD_XLGGID.Value = txtXLGGID.Text.Trim().Equals("") ? " " : txtXLGGID.Text.Trim();
|
||||||
|
txtOLD_DYDJID.Value = cbxDYDJID.SelectedValue.Trim().Equals("") ? " " : cbxDYDJID.SelectedValue.Trim();
|
||||||
|
|
||||||
|
txtOLD_BJSLXX.Value = txtBJSLXX.Value.ToString().Trim();
|
||||||
|
txtOLD_BJSLSX.Value = txtBJSLSX.Value.ToString().Trim();
|
||||||
|
|
||||||
|
|
||||||
|
txtYZID.Value = PageParam.GetRTrimString("FirstYZID");
|
||||||
|
|
||||||
|
string sJGBID = txtJGBID.Value.Trim();
|
||||||
|
string sXLXHID = cbxXLXHID.SelectedValue.Trim().Equals("") ? " " : cbxXLXHID.SelectedValue.Trim();
|
||||||
|
string sXLGGID = txtXLGGID.Text.Trim().Equals("") ? " " : txtXLGGID.Text.Trim();
|
||||||
|
string sDYDJID = cbxDYDJID.SelectedValue.Trim().Equals("") ? " " : cbxDYDJID.SelectedValue.Trim();
|
||||||
|
|
||||||
|
|
||||||
|
# region 将调价因子控件值更新至数据库中
|
||||||
|
TDatabase dberp = TContextDatabases.GetDatabase("DBERP");
|
||||||
|
TSQL sql = new TSQL(dberp);
|
||||||
|
sql.Clear();
|
||||||
|
string sYZIDlist = TZYZBJAInfo.GetYZIDList(PageParam.GetRTrimString("TJYZList"));
|
||||||
|
sql.Add("delete from XLXSBJDYZZM");
|
||||||
|
sql.Add(" where XLXSBJDYZZM_JGBID=:pJGBID and XLXSBJDYZZM_XLXHID=:pXLXHID and XLXSBJDYZZM_XLGGID=:pXLGGID ");
|
||||||
|
sql.Add(" and XLXSBJDYZZM_DYDJID=:pDYDJID and XLXSBJDYZZM_BJSLSX=:pBJSLSX and XLXSBJDYZZM_BJSLXX=:pBJSLXX ");
|
||||||
|
sql.Add(" and " + CMISproDataBase.GetWhereEqual("XLXSBJDYZZM_YZID", sYZIDlist));
|
||||||
|
sql.ParamByName("pJGBID").Value = sJGBID;
|
||||||
|
sql.ParamByName("pXLXHID").Value = sXLXHID;
|
||||||
|
sql.ParamByName("pXLGGID").Value = sXLGGID;
|
||||||
|
sql.ParamByName("pDYDJID").Value = sDYDJID;
|
||||||
|
sql.ParamByName("pBJSLSX").Value = txtBJSLSX.Value.ToString().Trim();
|
||||||
|
sql.ParamByName("pBJSLXX").Value = txtBJSLXX.Value.ToString().Trim();
|
||||||
|
dberp.ExecSQL(sql);
|
||||||
|
|
||||||
|
string[] sTJYZList = PageParam.GetRTrimString("TJYZList").Split(',');
|
||||||
|
DateTime tNow = DateTime.Now;
|
||||||
|
for (int i = 0; i < sTJYZList.Length; i++)
|
||||||
|
{
|
||||||
|
sql.Clear();
|
||||||
|
sql.Add("insert into XLXSBJDYZZM(XLXSBJDYZZM_JGBID, XLXSBJDYZZM_XLXHID, XLXSBJDYZZM_XLGGID, XLXSBJDYZZM_DYDJID, XLXSBJDYZZM_BJSLSX, XLXSBJDYZZM_BJSLXX, ");
|
||||||
|
sql.Add(" XLXSBJDYZZM_YZID, XLXSBJDYZZM_YZZ, XLXSBJDYZZM_WHR, XLXSBJDYZZM_WHRID, XLXSBJDYZZM_WHSJ)");
|
||||||
|
sql.Add(" values(:pJGBID, :pXLXHID, :pXLGGID, :pDYDJID, :pBJSLSX, :pBJSLXX, :pYZID, :pYZZ, :pWHR, :pWHRID, :pWHSJ)");
|
||||||
|
sql.ParamByName("pJGBID").Value = sJGBID;
|
||||||
|
sql.ParamByName("pXLXHID").Value = sXLXHID;
|
||||||
|
sql.ParamByName("pXLGGID").Value = sXLGGID;
|
||||||
|
sql.ParamByName("pDYDJID").Value = sDYDJID;
|
||||||
|
sql.ParamByName("pBJSLSX").Value = txtBJSLSX.Value.ToString().Trim();
|
||||||
|
sql.ParamByName("pBJSLXX").Value = txtBJSLXX.Value.ToString().Trim();
|
||||||
|
sql.ParamByName("pWHR").Value = tSession.UserName;
|
||||||
|
sql.ParamByName("pWHRID").Value = tSession.UserId;
|
||||||
|
sql.ParamByName("pWHSJ").Value = tNow;
|
||||||
|
|
||||||
|
for (int j = 1; j <= 20; j++)
|
||||||
|
{
|
||||||
|
string sTZYZID = "BJ" + j.ToString().PadLeft(2, '0') + "|";
|
||||||
|
gtNumTextBox txtTJYZ = (gtNumTextBox)Master.ContentFormControl.FindControl("txt" + "TJYZ" + j.ToString().Trim());
|
||||||
|
if (sTJYZList[i].StartsWith(sTZYZID))
|
||||||
|
{
|
||||||
|
sql.ParamByName("pYZID").Value = sTZYZID.TrimEnd('|');
|
||||||
|
sql.ParamByName("pYZZ").Value = txtTJYZ.Value;
|
||||||
|
dberp.ExecSQL(sql);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endregion
|
||||||
|
return base.Master_AfterSaveAction(sender, e);
|
||||||
|
}
|
||||||
|
|
||||||
|
protected override void SetComboxItems()
|
||||||
|
{
|
||||||
|
TComboBox.SetComboBox("DBERP", cbxXLXHID, "select XLXHB_XLXHID as ID,XLXHB_XLXHID as Name from XLXHB where isnull(XLXHB_TYBZ,'N')<>'Y' order by ID ", false);
|
||||||
|
TComboBox.SetComboBox("DBERP", cbxDYDJID, "select XLDYDJB_DYDJID as ID,XLDYDJB_DYDJID as Name from XLDYDJB where isnull(XLDYDJB_TYBZ,'N')<>'Y' order by XLDYDJB_XH ", true);
|
||||||
|
base.SetComboxItems();
|
||||||
|
}
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
#region 自定义函数
|
||||||
|
|
||||||
|
private void InitControls()
|
||||||
|
{
|
||||||
|
txtYZID.Value = PageParam.GetRTrimString("FirstYZID");
|
||||||
|
}
|
||||||
|
|
||||||
|
private void SetTJYZLable()
|
||||||
|
{
|
||||||
|
string[] sTJYZList = PageParam.GetRTrimString("TJYZList").Split(',');
|
||||||
|
for (int i = 0; i < sTJYZList.Length; i++)
|
||||||
|
{
|
||||||
|
|
||||||
|
for (int j = 1; j <= 20; j++)
|
||||||
|
{
|
||||||
|
string sTZYZID = "BJ" + j.ToString().PadLeft(2, '0') + "|";
|
||||||
|
gtNumTextBox txtTJYZ = (gtNumTextBox)Master.ContentFormControl.FindControl("txt" + "TJYZ" + j.ToString().Trim());
|
||||||
|
gtLabel lblTJYZ = (gtLabel)Master.ContentFormControl.FindControl("lbl" + "TJYZ" + j.ToString().Trim());
|
||||||
|
if (sTJYZList[i].StartsWith(sTZYZID))
|
||||||
|
{
|
||||||
|
string s = sTJYZList[i].Replace(sTZYZID, "").Replace("(X)", "") + ":";
|
||||||
|
lblTJYZ.Text = s;
|
||||||
|
if (sTJYZList[i].EndsWith("(%)") || sTJYZList[i].EndsWith("(元)"))
|
||||||
|
{
|
||||||
|
txtTJYZ.DecimalPlaces = 2;
|
||||||
|
}
|
||||||
|
else if (sTJYZList[i].EndsWith("(X)"))
|
||||||
|
{
|
||||||
|
txtTJYZ.DecimalPlaces = 4;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
}
|
||||||
|
}
|
||||||
Generated
+610
@@ -0,0 +1,610 @@
|
|||||||
|
//------------------------------------------------------------------------------
|
||||||
|
// <auto-generated>
|
||||||
|
// 此代码由工具生成。
|
||||||
|
// 运行时版本:2.0.50727.9179
|
||||||
|
//
|
||||||
|
// 对此文件的更改可能会导致不正确的行为,并且如果
|
||||||
|
// 重新生成代码,这些更改将会丢失。
|
||||||
|
// </auto-generated>
|
||||||
|
//------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
namespace GThinking.N_XLXSBJ {
|
||||||
|
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// TZYZBJMInfo 类。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的类。
|
||||||
|
/// </remarks>
|
||||||
|
public partial class TZYZBJMInfo {
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// GtLabel7 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtLabel GtLabel7;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// cbxXLXHID 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtComboBox cbxXLXHID;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// GtLabel8 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtLabel GtLabel8;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtXLGGID 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtTextBox txtXLGGID;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// GtLabel9 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtLabel GtLabel9;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// cbxDYDJID 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtComboBox cbxDYDJID;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// GtLabel4 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtLabel GtLabel4;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtBJSLXX 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtNumTextBox txtBJSLXX;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// GtLabel2 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtLabel GtLabel2;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtBJSLSX 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtNumTextBox txtBJSLSX;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// lblBJSLDW 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtLabel lblBJSLDW;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// lblTJYZ1 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtLabel lblTJYZ1;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtTJYZ1 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtNumTextBox txtTJYZ1;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// lblTJYZ11 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtLabel lblTJYZ11;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtTJYZ11 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtNumTextBox txtTJYZ11;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// lblTJYZ2 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtLabel lblTJYZ2;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtTJYZ2 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtNumTextBox txtTJYZ2;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// lblTJYZ12 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtLabel lblTJYZ12;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtTJYZ12 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtNumTextBox txtTJYZ12;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// lblTJYZ3 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtLabel lblTJYZ3;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtTJYZ3 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtNumTextBox txtTJYZ3;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// lblTJYZ13 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtLabel lblTJYZ13;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtTJYZ13 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtNumTextBox txtTJYZ13;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// lblTJYZ4 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtLabel lblTJYZ4;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtTJYZ4 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtNumTextBox txtTJYZ4;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// lblTJYZ14 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtLabel lblTJYZ14;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtTJYZ14 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtNumTextBox txtTJYZ14;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// lblTJYZ5 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtLabel lblTJYZ5;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtTJYZ5 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtNumTextBox txtTJYZ5;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// lblTJYZ15 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtLabel lblTJYZ15;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtTJYZ15 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtNumTextBox txtTJYZ15;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// lblTJYZ6 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtLabel lblTJYZ6;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtTJYZ6 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtNumTextBox txtTJYZ6;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// lblTJYZ16 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtLabel lblTJYZ16;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtTJYZ16 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtNumTextBox txtTJYZ16;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// lblTJYZ7 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtLabel lblTJYZ7;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtTJYZ7 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtNumTextBox txtTJYZ7;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// lblTJYZ17 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtLabel lblTJYZ17;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtTJYZ17 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtNumTextBox txtTJYZ17;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// lblTJYZ8 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtLabel lblTJYZ8;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtTJYZ8 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtNumTextBox txtTJYZ8;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// lblTJYZ18 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtLabel lblTJYZ18;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtTJYZ18 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtNumTextBox txtTJYZ18;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// lblTJYZ9 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtLabel lblTJYZ9;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtTJYZ9 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtNumTextBox txtTJYZ9;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// lblTJYZ19 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtLabel lblTJYZ19;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtTJYZ19 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtNumTextBox txtTJYZ19;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// lblTJYZ10 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtLabel lblTJYZ10;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtTJYZ10 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtNumTextBox txtTJYZ10;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// lblTJYZ20 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtLabel lblTJYZ20;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtTJYZ20 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtNumTextBox txtTJYZ20;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// GtLabel5 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtLabel GtLabel5;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtWHR 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtTextBox txtWHR;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// GtLabel6 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtLabel GtLabel6;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// datWHSJ 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtDateTime datWHSJ;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtWHRID 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::System.Web.UI.WebControls.HiddenField txtWHRID;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtJGBID 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::System.Web.UI.WebControls.HiddenField txtJGBID;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtYZID 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::System.Web.UI.WebControls.HiddenField txtYZID;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtOLD_YZID 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::System.Web.UI.WebControls.HiddenField txtOLD_YZID;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtOLD_XLXHID 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::System.Web.UI.WebControls.HiddenField txtOLD_XLXHID;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtOLD_XLGGID 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::System.Web.UI.WebControls.HiddenField txtOLD_XLGGID;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtOLD_DYDJID 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::System.Web.UI.WebControls.HiddenField txtOLD_DYDJID;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtOLD_BJSLXX 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::System.Web.UI.WebControls.HiddenField txtOLD_BJSLXX;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtOLD_BJSLSX 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::System.Web.UI.WebControls.HiddenField txtOLD_BJSLSX;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Master 属性。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的属性。
|
||||||
|
/// </remarks>
|
||||||
|
public new GThinking.N_MODEL.Page.MasterSingleCard Master {
|
||||||
|
get {
|
||||||
|
return ((GThinking.N_MODEL.Page.MasterSingleCard)(base.Master));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,82 @@
|
|||||||
|
<%@ Page Language="C#" MasterPageFile="~/N_MODEL/Page/MasterSingleGrid.Master" AutoEventWireup="true"
|
||||||
|
Codebehind="TZYZBJMList.aspx.cs" Inherits="GThinking.N_XLXSBJ.TZYZBJMList" Title="按型号规格电压等级报价数量区间调报价" %>
|
||||||
|
|
||||||
|
<%@ MasterType VirtualPath="~/N_MODEL/Page/MasterSingleGrid.Master" %>
|
||||||
|
<asp:Content ID="ContentButton" ContentPlaceHolderID="CPHButton" runat="server">
|
||||||
|
<asp:Table ID="Table1" CellPadding="0" CellSpacing="0" runat="server">
|
||||||
|
<asp:TableRow>
|
||||||
|
<asp:TableCell>
|
||||||
|
<gtc:gtButton Style="display: none" ID="btnRefresh1" OnClick="btnRefreshDRJGBMX_Click"
|
||||||
|
runat="server" Visible="true" EnableTheming="false" SkinID="hidden"></gtc:gtButton>
|
||||||
|
</asp:TableCell>
|
||||||
|
<asp:TableCell>
|
||||||
|
<gtc:gtToolButton ID="GtToolButton1" Caption="删除所查" ShowCaption="true" runat="server" Height="19px"
|
||||||
|
Width="72px" ButtonType="Button" OnClick="btnSCSC_Click">
|
||||||
|
</gtc:gtToolButton>
|
||||||
|
</asp:TableCell>
|
||||||
|
<asp:TableCell HorizontalAlign="Left" BorderWidth="0px" BorderStyle="notset">
|
||||||
|
<gtc:gtToolButton ID="btnDR" runat="server" Caption="导 入" OnClick="btnDR_Click"
|
||||||
|
ShowCaption="True" Width="52px" Height="19px">
|
||||||
|
</gtc:gtToolButton>
|
||||||
|
</asp:TableCell>
|
||||||
|
</asp:TableRow>
|
||||||
|
</asp:Table>
|
||||||
|
</asp:Content>
|
||||||
|
<asp:Content ID="ContentForm" ContentPlaceHolderID="cphForm" runat="server">
|
||||||
|
<gtc:gtGridView ID="grdContentGrid" runat="server" AutoGenerateColumns="False" CellPadding="2"
|
||||||
|
CellSpacing="2" AllowSorting="True" EnableViewState="False" OnRowDoubleClick="ContentGrid_RowDoubleClick">
|
||||||
|
<Columns>
|
||||||
|
<asp:BoundField DataField="XLXSBJDYZZM_JGBID" HeaderText="调价表编码">
|
||||||
|
<itemstyle width="80px" />
|
||||||
|
<headerstyle width="80px" />
|
||||||
|
</asp:BoundField>
|
||||||
|
<asp:BoundField HeaderText="产品目录" DataField="CPMLMC">
|
||||||
|
<itemstyle width="120px"></itemstyle>
|
||||||
|
<headerstyle width="120px"></headerstyle>
|
||||||
|
</asp:BoundField>
|
||||||
|
<asp:BoundField DataField="XLXHID" HeaderText="型号">
|
||||||
|
<itemstyle width="100px" />
|
||||||
|
<headerstyle width="100px" />
|
||||||
|
</asp:BoundField>
|
||||||
|
<asp:BoundField DataField="XLGGID" HeaderText="规格">
|
||||||
|
<itemstyle width="120px" />
|
||||||
|
<headerstyle width="120px" />
|
||||||
|
</asp:BoundField>
|
||||||
|
<asp:BoundField DataField="DYDJID" HeaderText="电压等级">
|
||||||
|
<itemstyle width="100px" />
|
||||||
|
<headerstyle width="100px" />
|
||||||
|
</asp:BoundField>
|
||||||
|
<asp:BoundField DataField="BJSLXX" HeaderText="报价数量>=">
|
||||||
|
<itemstyle width="80px" horizontalalign="Right" />
|
||||||
|
<headerstyle width="80px" />
|
||||||
|
</asp:BoundField>
|
||||||
|
<asp:BoundField DataField="BJSLSX" HeaderText="报价数量 <">
|
||||||
|
<itemstyle width="80px" horizontalalign="Right" />
|
||||||
|
<headerstyle width="80px" />
|
||||||
|
</asp:BoundField>
|
||||||
|
</Columns>
|
||||||
|
<FixRowCol TableHeight="100%" TableWidth="100%" />
|
||||||
|
<ColumnsEx>
|
||||||
|
<gtc:gtGridView_Column DataField="XLXSBJDYZZM_JGBID" ShowHint="True">
|
||||||
|
</gtc:gtGridView_Column>
|
||||||
|
<gtc:gtGridView_Column DataField="CPMLMC" EditType="etString" ShowHint="true">
|
||||||
|
</gtc:gtGridView_Column>
|
||||||
|
<gtc:gtGridView_Column DataField="XLXHID" ShowHint="True">
|
||||||
|
</gtc:gtGridView_Column>
|
||||||
|
<gtc:gtGridView_Column DataField="XLGGID" ShowHint="True">
|
||||||
|
</gtc:gtGridView_Column>
|
||||||
|
<gtc:gtGridView_Column DataField="DYDJID" ShowHint="True">
|
||||||
|
</gtc:gtGridView_Column>
|
||||||
|
<gtc:gtGridView_Column DataField="BJSLXX" EditType="etNumber" ShowSubBit="false"
|
||||||
|
NumberDecimalPlace="3" NumberIsQuantity="true" ShowZero="true" ShowHint="True">
|
||||||
|
</gtc:gtGridView_Column>
|
||||||
|
<gtc:gtGridView_Column DataField="BJSLSX" EditType="etNumber" ShowSubBit="false"
|
||||||
|
NumberDecimalPlace="3" NumberIsQuantity="true" ShowHint="True">
|
||||||
|
</gtc:gtGridView_Column>
|
||||||
|
</ColumnsEx>
|
||||||
|
</gtc:gtGridView>
|
||||||
|
<asp:HiddenField ID="txtFirstYZID" runat="server" />
|
||||||
|
<asp:HiddenField ID="txtTJYZList" runat="server" />
|
||||||
|
</asp:Content>
|
||||||
|
<asp:Content ID="ContentSync" ContentPlaceHolderID="CPHSync" runat="server">
|
||||||
|
</asp:Content>
|
||||||
@@ -0,0 +1,577 @@
|
|||||||
|
using System;
|
||||||
|
using System.Data;
|
||||||
|
using System.Configuration;
|
||||||
|
using System.Collections;
|
||||||
|
using System.Web;
|
||||||
|
using System.Web.Security;
|
||||||
|
using System.Web.UI;
|
||||||
|
using System.Web.UI.WebControls;
|
||||||
|
using System.Web.UI.WebControls.WebParts;
|
||||||
|
using System.Web.UI.HtmlControls;
|
||||||
|
using GThinking.N_MISPRO;
|
||||||
|
using GThinking.N_MODEL.Page;
|
||||||
|
using GThinking.N_MISPRO.Data;
|
||||||
|
using GThinking.N_PUBLIC;
|
||||||
|
using GThinking.N_MISPRO.Utility;
|
||||||
|
using GThinking.N_CONTROL;
|
||||||
|
using System.Text;
|
||||||
|
using GThinking.N_MISPRO.TableCache;
|
||||||
|
|
||||||
|
namespace GThinking.N_XLXSBJ
|
||||||
|
{
|
||||||
|
public partial class TZYZBJMList : SingleGridBase
|
||||||
|
{
|
||||||
|
TZYZBJ_YZZM entity = new TZYZBJ_YZZM();
|
||||||
|
TZYZBJM_M queryentity = new TZYZBJM_M();
|
||||||
|
DataSet dsTJYS1 = new DataSet();
|
||||||
|
|
||||||
|
#region 页面初始化
|
||||||
|
|
||||||
|
protected void Page_Load(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
this.UMID = 100860178;
|
||||||
|
this.UMName = "按型号规格电压等级报价数量区间调报价";
|
||||||
|
this.CurMaster = Master;
|
||||||
|
this.ModuleGV = grdContentGrid;
|
||||||
|
this.CurEntity = entity;
|
||||||
|
this.CurQueryEntity = queryentity;
|
||||||
|
this.sURLTarget = "TZYZBJMInfo.aspx";
|
||||||
|
this.sQueryURLTarget = "TZYZBJMQuery.aspx";
|
||||||
|
this.PageHeight = 600;
|
||||||
|
this.PageWidth = 750;
|
||||||
|
|
||||||
|
base.DataKeyNames = new string[] { "XLXSBJDYZZM_JGBID", "minYZID", "XLXSBJDYZZM_XLXHID", "XLXSBJDYZZM_XLGGID", "XLXSBJDYZZM_DYDJID", "XLXSBJDYZZM_BJSLSX", "XLXSBJDYZZM_BJSLXX" };
|
||||||
|
|
||||||
|
grdContentGrid.FindColumnByFieldName("XLXSBJDYZZM_JGBID").Visible = false;
|
||||||
|
|
||||||
|
if (!IsPostBack)
|
||||||
|
{
|
||||||
|
if (!PageParam.GetRTrimString("JGBID").Equals(""))
|
||||||
|
CurQueryEntity.FieldByName("JGBID").Value = PageParam.GetRTrimString("JGBID");
|
||||||
|
else
|
||||||
|
CurQueryEntity.FieldByName("JGBID").Value = GetDefaultJGBID();
|
||||||
|
if (PageParam.ContainsKey("XLXHID"))
|
||||||
|
CurQueryEntity.FieldByName("XLXHID").Value = PageParam.GetRTrimString("XLXHID");
|
||||||
|
if (PageParam.ContainsKey("XLGGID"))
|
||||||
|
CurQueryEntity.FieldByName("XLGGID").Value = PageParam.GetRTrimString("XLGGID");
|
||||||
|
if (PageParam.ContainsKey("DYDJID"))
|
||||||
|
CurQueryEntity.FieldByName("DYDJID").Value = PageParam.GetRTrimString("DYDJID");
|
||||||
|
if (!PageParam.GetRTrimString("XLXHID").Equals(""))
|
||||||
|
CurQueryEntity.FieldByName("XLXHID").Value = PageParam.GetRTrimString("XLXHID");
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
base.InitPage();
|
||||||
|
|
||||||
|
if (!IsPostBack)
|
||||||
|
{
|
||||||
|
|
||||||
|
if (!PageParam.GetRTrimString("JGBID").Equals(""))
|
||||||
|
Master_OnStandardQuery(null, null);
|
||||||
|
else if (IsDefaultExecute)
|
||||||
|
Master_OnStandardQuery(null, null);
|
||||||
|
else
|
||||||
|
{
|
||||||
|
this.Master.StandardNewButton.OnClientClick = "alert('请先查询调价表!');";
|
||||||
|
this.Master.StandardCopyButton.OnClientClick = "alert('请先查询调价表!');";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
#region 模板事件继承
|
||||||
|
|
||||||
|
protected override void Master_OnStandardQuery(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
base.InitEntityByCondition();
|
||||||
|
entity.EntityTable.QuerySelSql = GetSQL();
|
||||||
|
base.Master_OnStandardQuery(sender, e);
|
||||||
|
entity.GridDataBind(grdContentGrid, tSession);
|
||||||
|
|
||||||
|
if (CurQueryEntity.FieldByName("JGBID").Value.Trim().Equals(""))
|
||||||
|
{
|
||||||
|
this.Master.StandardNewButton.OnClientClick = "alert('请先查询调价表!');";
|
||||||
|
this.Master.StandardCopyButton.OnClientClick = "alert('请先查询调价表!');";
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
this.Master.StandardNewButton.OnClientClick = "OpenCardForm('INSERT');return false;";
|
||||||
|
this.Master.StandardCopyButton.OnClientClick = "OpenCardForm('COPY');return false;";
|
||||||
|
}
|
||||||
|
TPageParams pageParams = new TPageParams();
|
||||||
|
pageParams.AddString("XLXSBJDYZZM_JGBID", CurQueryEntity.FieldByName("JGBID").Value.Trim());
|
||||||
|
pageParams.AddString("TJYZList", txtTJYZList.Value.Trim());
|
||||||
|
pageParams.AddString("FirstYZID", txtFirstYZID.Value.Trim());
|
||||||
|
if (!PageParam.GetRTrimString("XLXHID").Equals(""))
|
||||||
|
pageParams.AddString("XLXHID", PageParam.GetRTrimString("XLXHID").Trim());
|
||||||
|
if (!PageParam.GetRTrimString("XLGGID").Equals(""))
|
||||||
|
pageParams.AddString("XLGGID", PageParam.GetRTrimString("XLGGID").Trim());
|
||||||
|
SetNewFormParam(pageParams);
|
||||||
|
}
|
||||||
|
|
||||||
|
protected override void BeforeDelete(TDatabase db, ref bool ActionIsDone)
|
||||||
|
{
|
||||||
|
string sYZIDlist = TZYZBJAInfo.GetYZIDList(txtTJYZList.Value.Trim());
|
||||||
|
entity.EntityTable.DeleteSql = " delete from XLXSBJDYZZM where XLXSBJDYZZM_JGBID =:XLXSBJDYZZM_JGBID "
|
||||||
|
+ " and XLXSBJDYZZM_XLXHID=:XLXSBJDYZZM_XLXHID and XLXSBJDYZZM_XLGGID=isnull(:XLXSBJDYZZM_XLGGID,' ') and XLXSBJDYZZM_DYDJID=isnull(:XLXSBJDYZZM_DYDJID,' ')"
|
||||||
|
+ " and XLXSBJDYZZM_BJSLSX=:XLXSBJDYZZM_BJSLSX and XLXSBJDYZZM_BJSLXX=:XLXSBJDYZZM_BJSLXX and "
|
||||||
|
+ CMISproDataBase.GetWhereEqual("XLXSBJDYZZM_YZID", sYZIDlist);
|
||||||
|
entity.Param.Add("XLXSBJDYZZM_JGBID", this.grdContentGrid.SelectedDataKey["XLXSBJDYZZM_JGBID"].ToString().Trim());
|
||||||
|
entity.Param.Add("XLXSBJDYZZM_XLXHID", this.grdContentGrid.SelectedDataKey["XLXSBJDYZZM_XLXHID"].ToString().Trim());
|
||||||
|
entity.Param.Add("XLXSBJDYZZM_XLGGID", this.grdContentGrid.SelectedDataKey["XLXSBJDYZZM_XLGGID"].ToString().Trim().Equals("") ? " " : this.grdContentGrid.SelectedDataKey["XLXSBJDYZZM_XLGGID"].ToString().Trim());
|
||||||
|
entity.Param.Add("XLXSBJDYZZM_DYDJID", this.grdContentGrid.SelectedDataKey["XLXSBJDYZZM_DYDJID"].ToString().Trim().Equals("") ? " " : this.grdContentGrid.SelectedDataKey["XLXSBJDYZZM_DYDJID"].ToString().Trim());
|
||||||
|
entity.Param.Add("XLXSBJDYZZM_BJSLSX", this.grdContentGrid.SelectedDataKey["XLXSBJDYZZM_BJSLSX"].ToString().Trim());
|
||||||
|
entity.Param.Add("XLXSBJDYZZM_BJSLXX", this.grdContentGrid.SelectedDataKey["XLXSBJDYZZM_BJSLXX"].ToString().Trim());
|
||||||
|
base.BeforeDelete(db, ref ActionIsDone);
|
||||||
|
}
|
||||||
|
|
||||||
|
protected override bool Master_AfterDeleteAction(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
if (!base.Master_AfterDeleteAction(sender, e)) { return false; }
|
||||||
|
|
||||||
|
base.InitEntityByCondition();
|
||||||
|
entity.EntityTable.QuerySelSql = GetSQL();
|
||||||
|
entity.GridDataBind(grdContentGrid, tSession);
|
||||||
|
grdContentGrid.SelectedIndex = -1;
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
protected override void moduleGV_RowDataBound(object sender, GridViewRowEventArgs e)
|
||||||
|
{
|
||||||
|
if (e.Row.RowType == DataControlRowType.DataRow)
|
||||||
|
{
|
||||||
|
LinkPageParam.AddString("XLXSBJDYZZM_JGBID", grdContentGrid.DataKeys[e.Row.RowIndex]["XLXSBJDYZZM_JGBID"].ToString().Trim());
|
||||||
|
LinkPageParam.AddString("XLXSBJDYZZM_XLXHID", grdContentGrid.DataKeys[e.Row.RowIndex]["XLXSBJDYZZM_XLXHID"].ToString().Trim());
|
||||||
|
LinkPageParam.AddString("XLXSBJDYZZM_XLGGID", grdContentGrid.DataKeys[e.Row.RowIndex]["XLXSBJDYZZM_XLGGID"].ToString().Trim());
|
||||||
|
LinkPageParam.AddString("XLXSBJDYZZM_DYDJID", grdContentGrid.DataKeys[e.Row.RowIndex]["XLXSBJDYZZM_DYDJID"].ToString().Trim());
|
||||||
|
LinkPageParam.AddString("XLXSBJDYZZM_BJSLSX", grdContentGrid.DataKeys[e.Row.RowIndex]["XLXSBJDYZZM_BJSLSX"].ToString().Trim());
|
||||||
|
LinkPageParam.AddString("XLXSBJDYZZM_BJSLXX", grdContentGrid.DataKeys[e.Row.RowIndex]["XLXSBJDYZZM_BJSLXX"].ToString().Trim());
|
||||||
|
LinkPageParam.AddString("XLXSBJDYZZM_YZID", grdContentGrid.DataKeys[e.Row.RowIndex]["minYZID"].ToString().Trim());
|
||||||
|
LinkPageParam.AddString("TJYZList", txtTJYZList.Value.Trim());
|
||||||
|
LinkPageParam.AddString("FirstYZID", txtFirstYZID.Value.Trim());
|
||||||
|
}
|
||||||
|
|
||||||
|
base.moduleGV_RowDataBound(sender, e);
|
||||||
|
}
|
||||||
|
|
||||||
|
protected override void moduleGV_PageIndexChanging(object sender, GridViewPageEventArgs e)
|
||||||
|
{
|
||||||
|
base.InitEntityByCondition();
|
||||||
|
entity.EntityTable.QuerySelSql = GetSQL();
|
||||||
|
grdContentGrid.SelectedIndex = -1;
|
||||||
|
|
||||||
|
base.moduleGV_PageIndexChanging(sender, e);
|
||||||
|
}
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
#region 自定义函数
|
||||||
|
|
||||||
|
private string GetDefaultJGBID()
|
||||||
|
{
|
||||||
|
TDatabase dberp = TContextDatabases.GetDatabase("DBERP");
|
||||||
|
TSQL SQL = new TSQL(dberp);
|
||||||
|
SQL.Add("SELECT XLXSJGB_JGBID from XLXSJGB where XLXSJGB_MXBH='BJD' and XLXSJGB_TJYS='M' order by XLXSJGB_JGBID");
|
||||||
|
DataSet ds = dberp.OpenDataSet(SQL);
|
||||||
|
if (ds.Tables[0].Rows.Count > 0)
|
||||||
|
{
|
||||||
|
return ds.Tables[0].Rows[0][0].ToString().Trim();
|
||||||
|
}
|
||||||
|
else
|
||||||
|
return "";
|
||||||
|
}
|
||||||
|
|
||||||
|
private string GetSQL()
|
||||||
|
{
|
||||||
|
base.InitEntityByCondition();
|
||||||
|
InitGridView();
|
||||||
|
string sYZIDlist = TZYZBJAInfo.GetYZIDList(txtTJYZList.Value.Trim());
|
||||||
|
StringBuilder sSQL = new StringBuilder();
|
||||||
|
sSQL.AppendLine(" select :pJGBID as XLXSBJDYZZM_JGBID, XLXSBJDYZZM_XLXHID as XLXHID, XLXSBJDYZZM_XLGGID as XLGGID, XLXSBJDYZZM_DYDJID as DYDJID, ");
|
||||||
|
sSQL.AppendLine(" XLXSBJDYZZM_BJSLSX as BJSLSX, XLXSBJDYZZM_BJSLXX as BJSLXX, ");
|
||||||
|
sSQL.AppendLine(" XLXSBJDYZZM_XLXHID, XLXSBJDYZZM_XLGGID, XLXSBJDYZZM_DYDJID, ");
|
||||||
|
sSQL.AppendLine(" XLXSBJDYZZM_BJSLSX, XLXSBJDYZZM_BJSLXX");
|
||||||
|
sSQL.AppendLine(" ,case when CPMLID is not null then rtrim(CPMLID)||'|'||XLXSCPML_CPMLMC else ' ' end as CPMLMC ");
|
||||||
|
sSQL.AppendLine(" ,minYZID");
|
||||||
|
for (int i = 0; i < dsTJYS1.Tables[0].Rows.Count; i++)
|
||||||
|
{
|
||||||
|
sSQL.AppendLine(string.Format(",TZYZ_{0}", dsTJYS1.Tables[0].Rows[i][0].ToString().Trim()));
|
||||||
|
}
|
||||||
|
sSQL.AppendLine(" from ");
|
||||||
|
sSQL.AppendLine(" ( ");
|
||||||
|
sSQL.AppendLine(" select XLXSBJDYZZM_XLXHID, XLXSBJDYZZM_XLGGID, XLXSBJDYZZM_DYDJID, XLXSBJDYZZM_BJSLXX, XLXSBJDYZZM_BJSLSX, min(XLXSBJDYZZM_YZID) as minYZID ");
|
||||||
|
sSQL.AppendLine(" ,case when AA.XLXSBJTJXHML_CPMLID is not null then AA.XLXSBJTJXHML_CPMLID else BB.XLXSBJTJXHML_CPMLID end as CPMLID ");
|
||||||
|
for (int i = 0; i < dsTJYS1.Tables[0].Rows.Count; i++)
|
||||||
|
{
|
||||||
|
sSQL.AppendLine(string.Format(",sum(CASE XLXSBJDYZZM_YZID WHEN '{0}' THEN XLXSBJDYZZM_YZZ ELSE 0 END) as TZYZ_{0}", dsTJYS1.Tables[0].Rows[i][0].ToString().Trim()));
|
||||||
|
}
|
||||||
|
sSQL.AppendLine(" from XLXSBJDYZZM YZZM");
|
||||||
|
sSQL.AppendLine(" left join XLXSBJTJXHML AA on AA.XLXSBJTJXHML_XLXHID = YZZM.XLXSBJDYZZM_XLXHID and AA.XLXSBJTJXHML_DYDJID = isnull(YZZM.XLXSBJDYZZM_DYDJID, ' ') ");
|
||||||
|
sSQL.AppendLine(" left join XLXSBJTJXHML BB on BB.XLXSBJTJXHML_XLXHID = YZZM.XLXSBJDYZZM_XLXHID and BB.XLXSBJTJXHML_DYDJID = ' ' ");
|
||||||
|
if (string.IsNullOrEmpty(CurQueryEntity.FieldByName("JGBID").Value.Trim()))
|
||||||
|
{
|
||||||
|
sSQL.AppendLine(" where 1<>1 ");
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
sSQL.AppendLine(" where YZZM.XLXSBJDYZZM_JGBID = :pJGBID ");
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!string.IsNullOrEmpty(CurQueryEntity.FieldByName("XLXHID").Value.Trim()))
|
||||||
|
{
|
||||||
|
sSQL.AppendLine(" and YZZM.XLXSBJDYZZM_XLXHID = :pXLXHID ");
|
||||||
|
entity.Param.Add("pXLXHID", CurQueryEntity.FieldByName("XLXHID").Value.Trim());
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!string.IsNullOrEmpty(CurQueryEntity.FieldByName("XLGGID").Value.Trim()))
|
||||||
|
{
|
||||||
|
sSQL.AppendLine(" and YZZM.XLXSBJDYZZM_XLGGID like :pXLGGID ");
|
||||||
|
entity.Param.Add("pXLGGID", "%" + CurQueryEntity.FieldByName("XLGGID").Value.Trim() + "%");
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!string.IsNullOrEmpty(CurQueryEntity.FieldByName("DYDJID").Value.Trim()))
|
||||||
|
{
|
||||||
|
sSQL.AppendLine(" and YZZM.XLXSBJDYZZM_DYDJID = :pDYDJID ");
|
||||||
|
entity.Param.Add("pDYDJID", CurQueryEntity.FieldByName("DYDJID").Value.Trim());
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!string.IsNullOrEmpty(sYZIDlist))
|
||||||
|
{
|
||||||
|
sSQL.AppendLine(" and " + CMISproDataBase.GetWhereEqual("YZZM.XLXSBJDYZZM_YZID", sYZIDlist));
|
||||||
|
}
|
||||||
|
|
||||||
|
//BJSLSDY<!!!<BJSLSXY -----------BJSLZDY <!!!<BJSLZXY
|
||||||
|
if (CurQueryEntity.FieldByName("BJSLSDY").Value.ToString().Trim() != "0" && CurQueryEntity.FieldByName("BJSLSDY").Value.ToString().Trim() != "")
|
||||||
|
{
|
||||||
|
sSQL.AppendLine(" and YZZM.XLXSBJDYZZM_BJSLXX >= :pBJSLSDY ");
|
||||||
|
entity.Param.Add("pBJSLSDY", CurQueryEntity.FieldByName("BJSLSDY").Value.Trim());
|
||||||
|
}
|
||||||
|
|
||||||
|
if (CurQueryEntity.FieldByName("BJSLSXY").Value.ToString().Trim() != "0" && CurQueryEntity.FieldByName("BJSLSXY").Value.ToString().Trim() != "")
|
||||||
|
{
|
||||||
|
sSQL.AppendLine(" and YZZM.XLXSBJDYZZM_BJSLXX <= :pBJSLSXY ");
|
||||||
|
entity.Param.Add("pBJSLSXY", CurQueryEntity.FieldByName("BJSLSXY").Value.Trim());
|
||||||
|
}
|
||||||
|
|
||||||
|
if (CurQueryEntity.FieldByName("BJSLZDY").Value.ToString().Trim() != "0" && CurQueryEntity.FieldByName("BJSLZDY").Value.ToString().Trim() != "")
|
||||||
|
{
|
||||||
|
sSQL.AppendLine(" and YZZM.XLXSBJDYZZM_BJSLSX >= :pBJSLZDY ");
|
||||||
|
entity.Param.Add("pBJSLZDY", CurQueryEntity.FieldByName("BJSLZDY").Value.Trim());
|
||||||
|
}
|
||||||
|
|
||||||
|
if (CurQueryEntity.FieldByName("BJSLZXY").Value.ToString().Trim() != "0" && CurQueryEntity.FieldByName("BJSLZXY").Value.ToString().Trim() != "")
|
||||||
|
{
|
||||||
|
sSQL.AppendLine(" and YZZM.XLXSBJDYZZM_BJSLSX <= :pBJSLZXY ");
|
||||||
|
entity.Param.Add("pBJSLZXY", CurQueryEntity.FieldByName("BJSLZXY").Value.Trim());
|
||||||
|
}
|
||||||
|
|
||||||
|
sSQL.AppendLine(" group by YZZM.XLXSBJDYZZM_XLXHID, YZZM.XLXSBJDYZZM_XLGGID, YZZM.XLXSBJDYZZM_DYDJID,YZZM.XLXSBJDYZZM_BJSLXX, YZZM.XLXSBJDYZZM_BJSLSX ,AA.XLXSBJTJXHML_CPMLID,BB.XLXSBJTJXHML_CPMLID ");
|
||||||
|
sSQL.AppendLine(" ) a ");
|
||||||
|
|
||||||
|
sSQL.AppendLine(" left join XLXSCPML on XLXSCPML_CPMLID = CPMLID ");
|
||||||
|
sSQL.AppendLine(" where 1=1 ");
|
||||||
|
if (!CurQueryEntity.FieldByName("CPMLID").Value.Equals(""))
|
||||||
|
{
|
||||||
|
if (CurQueryEntity.FieldByName("CPMLID").Value.Equals("空"))
|
||||||
|
{
|
||||||
|
sSQL.AppendLine("and isnull(XLXSCPML_CPMLID,' ')=' '");
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
sSQL.AppendLine("and isnull(XLXSCPML_CPMLID,' ')='" + CurQueryEntity.FieldByName("CPMLID").Value + "'");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
sSQL.AppendLine(" order by XLXSBJDYZZM_XLXHID, XLXSBJDYZZM_XLGGID, XLXSBJDYZZM_DYDJID,XLXSBJDYZZM_BJSLXX, XLXSBJDYZZM_BJSLSX ");
|
||||||
|
entity.Param.Add("pJGBID", CurQueryEntity.FieldByName("JGBID").Value.Trim());
|
||||||
|
return sSQL.ToString();
|
||||||
|
}
|
||||||
|
|
||||||
|
private void InitGridView()
|
||||||
|
{
|
||||||
|
TDatabase dberp = TContextDatabases.GetDatabase("DBERP");
|
||||||
|
TSQL SQL = new TSQL(dberp);
|
||||||
|
|
||||||
|
SQL.Clear();
|
||||||
|
SQL.Add("select XLXSTZYZ_YZID, XLXSTZYZ_YZMC, XLXSTZYZ_JJFS ");
|
||||||
|
SQL.Add(" from XLXSTZYZ");
|
||||||
|
SQL.Add(" where XLXSTZYZ_MXBH = 'BJD' and XLXSTZYZ_TJYS='M' ");
|
||||||
|
SQL.Add(" and XLXSTZYZ_JGBID = :pJGBID");
|
||||||
|
if (!string.IsNullOrEmpty(PageParam.GetRTrimString("TJYZID")))
|
||||||
|
{
|
||||||
|
SQL.Add(" and " + CMISproDataBase.GetWhereEqual("XLXSTZYZ_YZID", PageParam.GetRTrimString("TJYZID").Trim()));
|
||||||
|
|
||||||
|
}
|
||||||
|
SQL.Add("order by XLXSTZYZ_YZID,XLXSTZYZ_XSXH");
|
||||||
|
SQL.ParamByName("pJGBID").Value = CurQueryEntity.FieldByName("JGBID").Value.Trim();
|
||||||
|
DataSet ds = dberp.OpenDataSet(SQL);
|
||||||
|
dsTJYS1 = ds;
|
||||||
|
txtTJYZList.Value = "";
|
||||||
|
for (int i = 0; i < ds.Tables[0].Rows.Count; i++)
|
||||||
|
{
|
||||||
|
if (i == 0)
|
||||||
|
txtFirstYZID.Value = ds.Tables[0].Rows[i]["XLXSTZYZ_YZID"].ToString().Trim();
|
||||||
|
|
||||||
|
string sJJFSMC = "";
|
||||||
|
int iXSWS = 2;
|
||||||
|
//查询时将 BJ01|防火(元)
|
||||||
|
//加价类型的应当以金额来记,为2位小数位数,
|
||||||
|
//加点扣点,以小数形式展示应当为4位,即 0.4235或者 42.35%
|
||||||
|
//乘以/除以形式,应当按照加点扣点形式,但是只能以小数形式展现。
|
||||||
|
if (ds.Tables[0].Rows[i]["XLXSTZYZ_JJFS"].ToString().Trim().Equals("JJ"))
|
||||||
|
{
|
||||||
|
sJJFSMC = "(元)";
|
||||||
|
iXSWS = 2;
|
||||||
|
}
|
||||||
|
else if (ds.Tables[0].Rows[i]["XLXSTZYZ_JJFS"].ToString().Trim().Equals("MX") || ds.Tables[0].Rows[i]["XLXSTZYZ_JJFS"].ToString().Trim().Equals("DX"))
|
||||||
|
{
|
||||||
|
sJJFSMC = "(X)";
|
||||||
|
iXSWS = 4;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
sJJFSMC = "(%)";
|
||||||
|
iXSWS = 2;
|
||||||
|
}
|
||||||
|
AddColumn("TZYZ_" + ds.Tables[0].Rows[i]["XLXSTZYZ_YZID"].ToString().Trim(), ds.Tables[0].Rows[i]["XLXSTZYZ_YZMC"].ToString().Trim() + sJJFSMC.Replace("(X)", ""), iXSWS, 80);
|
||||||
|
txtTJYZList.Value += ds.Tables[0].Rows[i]["XLXSTZYZ_YZID"].ToString().Trim() + "|" + ds.Tables[0].Rows[i]["XLXSTZYZ_YZMC"].ToString().Trim() + sJJFSMC + ",";
|
||||||
|
}
|
||||||
|
txtTJYZList.Value = txtTJYZList.Value.TrimEnd(',');
|
||||||
|
}
|
||||||
|
|
||||||
|
private void OpenInfo(TPageCallAction tpCallAction)
|
||||||
|
{
|
||||||
|
TPageParams LinkPageParam = new TPageParams();
|
||||||
|
LinkPageParam.UrlPath = "TZYZBJMInfo.aspx";
|
||||||
|
LinkPageParam.AddString("XLXSBJDYZZM_JGBID", grdContentGrid.DataKeys[grdContentGrid.SelectedIndex]["XLXSBJDYZZM_JGBID"].ToString().Trim());
|
||||||
|
LinkPageParam.AddString("XLXSBJDYZZM_XLXHID", grdContentGrid.DataKeys[grdContentGrid.SelectedIndex]["XLXSBJDYZZM_XLXHID"].ToString().Trim());
|
||||||
|
LinkPageParam.AddString("XLXSBJDYZZM_XLGGID", grdContentGrid.DataKeys[grdContentGrid.SelectedIndex]["XLXSBJDYZZM_XLGGID"].ToString().Trim());
|
||||||
|
LinkPageParam.AddString("XLXSBJDYZZM_DYDJID", grdContentGrid.DataKeys[grdContentGrid.SelectedIndex]["XLXSBJDYZZM_DYDJID"].ToString().Trim());
|
||||||
|
LinkPageParam.AddString("XLXSBJDYZZM_BJSLSX", grdContentGrid.DataKeys[grdContentGrid.SelectedIndex]["XLXSBJDYZZM_BJSLSX"].ToString().Trim());
|
||||||
|
LinkPageParam.AddString("XLXSBJDYZZM_BJSLXX", grdContentGrid.DataKeys[grdContentGrid.SelectedIndex]["XLXSBJDYZZM_BJSLXX"].ToString().Trim());
|
||||||
|
LinkPageParam.AddString("XLXSBJDYZZM_YZID", grdContentGrid.DataKeys[grdContentGrid.SelectedIndex]["minYZID"].ToString().Trim());
|
||||||
|
LinkPageParam.AddString("TJYZList", txtTJYZList.Value.Trim());
|
||||||
|
LinkPageParam.AddString("FirstYZID", txtFirstYZID.Value.Trim());
|
||||||
|
LinkPageParam.CallAction = tpCallAction;
|
||||||
|
OpenDialog(LinkPageParam);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
#region GridView增加列
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 设置etCheckBox列的属性
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="sDataField"></param>
|
||||||
|
/// <param name="HeadText"></param>
|
||||||
|
/// <param name="Width"></param>
|
||||||
|
/// <param name="CheckBox"></param>
|
||||||
|
private void AddColumn(string sDataField, string HeadText, int Width, TEditType CheckBox)
|
||||||
|
{
|
||||||
|
BoundField Column = new BoundField();
|
||||||
|
Column.DataField = sDataField;
|
||||||
|
Column.HeaderText = HeadText;
|
||||||
|
Column.ItemStyle.Width = (Unit)Width;
|
||||||
|
Column.HeaderStyle.Width = (Unit)Width;
|
||||||
|
grdContentGrid.Columns.Add(Column);
|
||||||
|
|
||||||
|
gtGridView_Column ColumnEx = new gtGridView_Column();
|
||||||
|
ColumnEx.DataField = sDataField;
|
||||||
|
ColumnEx.EditType = TEditType.etCheckBox;
|
||||||
|
grdContentGrid.ColumnsEx.Insert(0, ColumnEx);
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 设置etString列的属性
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="sDataField"></param>
|
||||||
|
/// <param name="HeadText"></param>
|
||||||
|
/// <param name="Width"></param>
|
||||||
|
private void AddColumn(string sDataField, string HeadText, int Width)
|
||||||
|
{
|
||||||
|
BoundField Column = new BoundField();
|
||||||
|
Column.DataField = sDataField;
|
||||||
|
Column.HeaderText = HeadText;
|
||||||
|
Column.ItemStyle.Width = (Unit)Width;
|
||||||
|
Column.HeaderStyle.Width = (Unit)Width;
|
||||||
|
grdContentGrid.Columns.Add(Column);
|
||||||
|
|
||||||
|
gtGridView_Column ColumnEx = new gtGridView_Column();
|
||||||
|
ColumnEx.DataField = sDataField;
|
||||||
|
ColumnEx.EditType = TEditType.etString;
|
||||||
|
ColumnEx.ShowHint = true;
|
||||||
|
grdContentGrid.ColumnsEx.Insert(0, ColumnEx);
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 设置etNumber列的属
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="sDataField"></param>
|
||||||
|
/// <param name="HeadText"></param>
|
||||||
|
/// <param name="NumberDecimalPlace"></param>
|
||||||
|
/// <param name="Width"></param>
|
||||||
|
private void AddColumn(string sDataField, string HeadText, int NumberDecimalPlace, int Width)
|
||||||
|
{
|
||||||
|
BoundField Column = new BoundField();
|
||||||
|
Column.DataField = sDataField;
|
||||||
|
Column.HeaderText = HeadText;
|
||||||
|
Column.ItemStyle.Width = (Unit)Width;
|
||||||
|
Column.HeaderStyle.Width = (Unit)Width;
|
||||||
|
Column.ItemStyle.HorizontalAlign = HorizontalAlign.Right;
|
||||||
|
grdContentGrid.Columns.Add(Column);
|
||||||
|
|
||||||
|
gtGridView_Column ColumnEx = new gtGridView_Column();
|
||||||
|
ColumnEx.DataField = sDataField;
|
||||||
|
ColumnEx.EditType = TEditType.etNumber;
|
||||||
|
ColumnEx.ShowHint = true;
|
||||||
|
ColumnEx.NumberDecimalPlace = NumberDecimalPlace;
|
||||||
|
grdContentGrid.ColumnsEx.Insert(0, ColumnEx);
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 设置etDateTime列的属性
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="sDataField"></param>
|
||||||
|
/// <param name="HeadText"></param>
|
||||||
|
/// <param name="DateTimeKind"></param>
|
||||||
|
/// <param name="Width"></param>
|
||||||
|
private void AddColumn(string sDataField, string HeadText, TDateTimeEditKinds DateTimeKind)
|
||||||
|
{
|
||||||
|
BoundField Column = new BoundField();
|
||||||
|
Column.DataField = sDataField;
|
||||||
|
Column.HeaderText = HeadText;
|
||||||
|
Column.ItemStyle.Width = (Unit)(DateTimeKind == TDateTimeEditKinds.dtDateTime ? 125 : 72);
|
||||||
|
Column.HeaderStyle.Width = (Unit)(DateTimeKind == TDateTimeEditKinds.dtDateTime ? 125 : 72);
|
||||||
|
grdContentGrid.Columns.Add(Column);
|
||||||
|
|
||||||
|
gtGridView_Column ColumnEx = new gtGridView_Column();
|
||||||
|
ColumnEx.DataField = sDataField;
|
||||||
|
ColumnEx.EditType = TEditType.etDateTime;
|
||||||
|
ColumnEx.DateTimeEditKins = DateTimeKind;
|
||||||
|
grdContentGrid.ColumnsEx.Insert(0, ColumnEx);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
#region 控件事件
|
||||||
|
|
||||||
|
protected void ContentGrid_RowDoubleClick(object sender, GThinking.N_CONTROL.RowDoubleClickEventArgs e)
|
||||||
|
{
|
||||||
|
base.InitEntityByCondition();
|
||||||
|
OpenInfo(TPageCallAction.pcaBrowse);
|
||||||
|
}
|
||||||
|
|
||||||
|
protected void btnRefreshDRJGBMX_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
moduleGV_PageIndexChanging(null, null);
|
||||||
|
}
|
||||||
|
|
||||||
|
protected void btnDR_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
base.InitEntityByCondition();
|
||||||
|
if (CurQueryEntity.FieldByName("JGBID").Value.Trim().Equals(""))
|
||||||
|
{
|
||||||
|
ShowMessage("调价表条件为空,请先进行查询!");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
TPageParams pageParams = new TPageParams();
|
||||||
|
pageParams.UrlPath = "TZYZBJMDRInfo.aspx";
|
||||||
|
pageParams.Title = "导入Excel文件";
|
||||||
|
pageParams.AddString("JGBID", CurQueryEntity.FieldByName("JGBID").Value.Trim());
|
||||||
|
pageParams.AddString("btnRefreshCID", btnRefresh1.ClientID);
|
||||||
|
OpenDialog(pageParams);
|
||||||
|
}
|
||||||
|
|
||||||
|
protected void btnSCSC_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
string sMsg = "将删除所有当前查询结果记录,是否继续?";
|
||||||
|
|
||||||
|
Confirm.Register("IsQD", sMsg);
|
||||||
|
Confirm.ShowBtnText = TConfirm.cBtnText.Yes_No;
|
||||||
|
if (Confirm.GetValue("IsQD").Trim().Equals(""))
|
||||||
|
{
|
||||||
|
Confirm.Ask("IsQD");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
else if (Confirm.GetValue("IsQD").Trim().Equals("N"))
|
||||||
|
{
|
||||||
|
//表示进行了提示并选择了取消,直接返回或其他处理
|
||||||
|
|
||||||
|
Confirm.Clear();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
else if (Confirm.GetValue("IsQD").Trim().Equals("Y"))
|
||||||
|
{
|
||||||
|
//表示进行了提示并选择了确认
|
||||||
|
|
||||||
|
Confirm.Clear();
|
||||||
|
}
|
||||||
|
if (txtTJYZList.Value.Trim().Equals(""))
|
||||||
|
{
|
||||||
|
ShowMessage("请先查询调价表!");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
base.InitEntityByCondition();
|
||||||
|
TDatabase dberp = TContextDatabases.GetDatabase("DBERP");
|
||||||
|
TSQL sSQL = new TSQL(dberp);
|
||||||
|
sSQL.Clear();
|
||||||
|
sSQL.Add("delete from XLXSBJDYZZM");
|
||||||
|
sSQL.Add(" where 1=1 and XLXSBJDYZZM_JGBID = :pJGBID ");
|
||||||
|
sSQL.ParamByName("pJGBID").Value = CurQueryEntity.FieldByName("JGBID").Value.Trim();
|
||||||
|
if (!string.IsNullOrEmpty(CurQueryEntity.FieldByName("XLXHID").Value.Trim()))
|
||||||
|
{
|
||||||
|
sSQL.Add(" and XLXSBJDYZZM_XLXHID = :pXLXHID ");
|
||||||
|
sSQL.ParamByName("pXLXHID").Value = CurQueryEntity.FieldByName("XLXHID").Value.Trim();
|
||||||
|
}
|
||||||
|
if (!string.IsNullOrEmpty(CurQueryEntity.FieldByName("XLGGID").Value.Trim()))
|
||||||
|
{
|
||||||
|
sSQL.Add(" and XLXSBJDYZZM_XLGGID like :pXLGGID ");
|
||||||
|
sSQL.ParamByName("pXLGGID").Value = "%" + CurQueryEntity.FieldByName("XLGGID").Value.Trim() + "%";
|
||||||
|
}
|
||||||
|
if (!string.IsNullOrEmpty(CurQueryEntity.FieldByName("DYDJID").Value.Trim()))
|
||||||
|
{
|
||||||
|
sSQL.Add(" and XLXSBJDYZZM_DYDJID = :pDYDJID ");
|
||||||
|
sSQL.ParamByName("pDYDJID").Value = CurQueryEntity.FieldByName("DYDJID").Value.Trim();
|
||||||
|
}
|
||||||
|
string sYZIDlist = TZYZBJAInfo.GetYZIDList(txtTJYZList.Value.Trim());
|
||||||
|
if (!string.IsNullOrEmpty(sYZIDlist))
|
||||||
|
{
|
||||||
|
sSQL.Add(" and " + CMISproDataBase.GetWhereEqual("XLXSBJDYZZM_YZID", sYZIDlist));
|
||||||
|
}
|
||||||
|
|
||||||
|
//BJSLSDY<!!!<BJSLSXY -----------BJSLZDY <!!!<BJSLZXY
|
||||||
|
if (CurQueryEntity.FieldByName("BJSLSDY").Value.ToString().Trim() != "0" && CurQueryEntity.FieldByName("BJSLSDY").Value.ToString().Trim() != "")
|
||||||
|
{
|
||||||
|
sSQL.Add(" and XLXSBJDYZZM_BJSLXX >= :pBJSLSDY ");
|
||||||
|
sSQL.ParamByName("pBJSLSDY").Value = CurQueryEntity.FieldByName("BJSLSDY").Value.Trim();
|
||||||
|
}
|
||||||
|
|
||||||
|
if (CurQueryEntity.FieldByName("BJSLSXY").Value.ToString().Trim() != "0" && CurQueryEntity.FieldByName("BJSLSXY").Value.ToString().Trim() != "")
|
||||||
|
{
|
||||||
|
sSQL.Add(" and XLXSBJDYZZM_BJSLXX <= :pBJSLSXY ");
|
||||||
|
sSQL.ParamByName("pBJSLSXY").Value = CurQueryEntity.FieldByName("BJSLSXY").Value.Trim();
|
||||||
|
}
|
||||||
|
|
||||||
|
if (CurQueryEntity.FieldByName("BJSLZDY").Value.ToString().Trim() != "0" && CurQueryEntity.FieldByName("BJSLZDY").Value.ToString().Trim() != "")
|
||||||
|
{
|
||||||
|
sSQL.Add(" and XLXSBJDYZZM_BJSLSX >= :pBJSLZDY ");
|
||||||
|
sSQL.ParamByName("pBJSLZDY").Value = CurQueryEntity.FieldByName("BJSLZDY").Value.Trim();
|
||||||
|
}
|
||||||
|
|
||||||
|
if (CurQueryEntity.FieldByName("BJSLZXY").Value.ToString().Trim() != "0" && CurQueryEntity.FieldByName("BJSLZXY").Value.ToString().Trim() != "")
|
||||||
|
{
|
||||||
|
sSQL.Add(" and XLXSBJDYZZM_BJSLSX <= :pBJSLZXY ");
|
||||||
|
sSQL.ParamByName("pBJSLZXY").Value = CurQueryEntity.FieldByName("BJSLZXY").Value.Trim();
|
||||||
|
}
|
||||||
|
dberp.ExecSQL(sSQL);
|
||||||
|
moduleGV_PageIndexChanging(null, null);
|
||||||
|
}
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
}
|
||||||
|
}
|
||||||
Generated
+97
@@ -0,0 +1,97 @@
|
|||||||
|
//------------------------------------------------------------------------------
|
||||||
|
// <auto-generated>
|
||||||
|
// 此代码由工具生成。
|
||||||
|
// 运行时版本:2.0.50727.9179
|
||||||
|
//
|
||||||
|
// 对此文件的更改可能会导致不正确的行为,并且如果
|
||||||
|
// 重新生成代码,这些更改将会丢失。
|
||||||
|
// </auto-generated>
|
||||||
|
//------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
namespace GThinking.N_XLXSBJ {
|
||||||
|
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// TZYZBJMList 类。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的类。
|
||||||
|
/// </remarks>
|
||||||
|
public partial class TZYZBJMList {
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Table1 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::System.Web.UI.WebControls.Table Table1;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// btnRefresh1 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtButton btnRefresh1;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// GtToolButton1 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtToolButton GtToolButton1;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// btnDR 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtToolButton btnDR;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// grdContentGrid 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtGridView grdContentGrid;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtFirstYZID 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::System.Web.UI.WebControls.HiddenField txtFirstYZID;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtTJYZList 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::System.Web.UI.WebControls.HiddenField txtTJYZList;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Master 属性。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的属性。
|
||||||
|
/// </remarks>
|
||||||
|
public new GThinking.N_MODEL.Page.MasterSingleGrid Master {
|
||||||
|
get {
|
||||||
|
return ((GThinking.N_MODEL.Page.MasterSingleGrid)(base.Master));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,98 @@
|
|||||||
|
<%@ Page Language="C#" MasterPageFile="~/N_MODEL/Page/MasterSingleQuery.Master" AutoEventWireup="True"
|
||||||
|
Codebehind="TZYZBJMQuery.aspx.cs" Inherits="GThinking.N_XLXSBJ.TZYZBJMQuery"
|
||||||
|
Title="查询" %>
|
||||||
|
|
||||||
|
<%@ MasterType VirtualPath="~/N_MODEL/Page/MasterSingleQuery.Master" %>
|
||||||
|
<asp:Content ID="ContentQuery" ContentPlaceHolderID="CPHQuery" runat="server">
|
||||||
|
<br />
|
||||||
|
<asp:Table ID="QueryTalbe" runat="server">
|
||||||
|
<asp:TableRow>
|
||||||
|
<asp:TableCell></asp:TableCell>
|
||||||
|
<asp:TableCell HorizontalAlign="Right" Height="21px">
|
||||||
|
<gtc:gtLabel ID="GtLabel4" runat="server">调价表:</gtc:gtLabel>
|
||||||
|
</asp:TableCell>
|
||||||
|
<asp:TableCell Height="21px">
|
||||||
|
<gtc:gtComboBox ID="cbxJGBID" runat="server" Width="250px" DataField="JGBID" ShowValue="false" AutoPostBack="true" OnSelectedIndexChanged="cbxJGBID_SelectedIndexChanged"
|
||||||
|
Tag="Star">
|
||||||
|
</gtc:gtComboBox>
|
||||||
|
</asp:TableCell>
|
||||||
|
</asp:TableRow>
|
||||||
|
<asp:TableRow>
|
||||||
|
<asp:TableCell></asp:TableCell>
|
||||||
|
<asp:TableCell HorizontalAlign="Right" Width="110px" Height="21px">
|
||||||
|
<gtc:gtLabel ID="GtLabel14" runat="server" >产品目录:</gtc:gtLabel>
|
||||||
|
</asp:TableCell>
|
||||||
|
<asp:TableCell Height="21px">
|
||||||
|
<gtc:gtComboBox ID="cbxCPMLID" Width="150px" DataField="CPMLID" runat="server" ShowValue="true">
|
||||||
|
</gtc:gtComboBox>
|
||||||
|
</asp:TableCell>
|
||||||
|
</asp:TableRow>
|
||||||
|
<asp:TableRow>
|
||||||
|
<asp:TableCell></asp:TableCell>
|
||||||
|
<asp:TableCell HorizontalAlign="Right" Height="21px">
|
||||||
|
<gtc:gtLabel ID="GtLabel1" runat="server">型号:</gtc:gtLabel>
|
||||||
|
</asp:TableCell>
|
||||||
|
<asp:TableCell Height="21px">
|
||||||
|
<gtc:gtComboBox ID="cbxXLXHID" runat="server" Width="150px" DataField="XLXHID" ShowValue="false">
|
||||||
|
</gtc:gtComboBox>
|
||||||
|
</asp:TableCell>
|
||||||
|
</asp:TableRow>
|
||||||
|
<asp:TableRow>
|
||||||
|
<asp:TableCell></asp:TableCell>
|
||||||
|
<asp:TableCell HorizontalAlign="Right" Height="21px">
|
||||||
|
<gtc:gtLabel ID="GtLabel12" runat="server">规格:</gtc:gtLabel>
|
||||||
|
</asp:TableCell>
|
||||||
|
<asp:TableCell Height="21px">
|
||||||
|
<gtc:gtTextBox ID="txtXLGGID" Width="146px" DataField="XLGGID" runat="server" Tag="None">
|
||||||
|
</gtc:gtTextBox>
|
||||||
|
</asp:TableCell>
|
||||||
|
</asp:TableRow>
|
||||||
|
<asp:TableRow>
|
||||||
|
<asp:TableCell></asp:TableCell>
|
||||||
|
<asp:TableCell HorizontalAlign="Right" Height="21px">
|
||||||
|
<gtc:gtLabel ID="GtLabel2" runat="server">电压等级:</gtc:gtLabel>
|
||||||
|
</asp:TableCell>
|
||||||
|
<asp:TableCell Height="21px">
|
||||||
|
<gtc:gtComboBox ID="cbxDYDJID" runat="server" Width="150px" DataField="DYDJID" ShowValue="false">
|
||||||
|
</gtc:gtComboBox>
|
||||||
|
</asp:TableCell>
|
||||||
|
</asp:TableRow>
|
||||||
|
<asp:TableRow>
|
||||||
|
<asp:TableCell></asp:TableCell>
|
||||||
|
<asp:TableCell HorizontalAlign="Right" Height="21px">
|
||||||
|
<gtc:gtLabel ID="GtLabel3" runat="server">报价数量始>=:</gtc:gtLabel>
|
||||||
|
</asp:TableCell>
|
||||||
|
<asp:TableCell Height="21px">
|
||||||
|
<gtc:gtNumTextBox ID="txtBJSLSDY" runat="server" Width="72px" DataField="BJSLSDY"></gtc:gtNumTextBox>
|
||||||
|
</asp:TableCell>
|
||||||
|
</asp:TableRow>
|
||||||
|
<asp:TableRow>
|
||||||
|
<asp:TableCell></asp:TableCell>
|
||||||
|
<asp:TableCell HorizontalAlign="Right" Height="21px">
|
||||||
|
<gtc:gtLabel ID="GtLabel9" runat="server">报价数量始<=:</gtc:gtLabel>
|
||||||
|
</asp:TableCell>
|
||||||
|
<asp:TableCell Height="21px">
|
||||||
|
<gtc:gtNumTextBox ID="txtBJSLSXY" runat="server" Width="72px" DataField="BJSLSXY"></gtc:gtNumTextBox>
|
||||||
|
</asp:TableCell>
|
||||||
|
</asp:TableRow>
|
||||||
|
<asp:TableRow>
|
||||||
|
<asp:TableCell></asp:TableCell>
|
||||||
|
<asp:TableCell HorizontalAlign="Right" Height="21px">
|
||||||
|
<gtc:gtLabel ID="GtLabel10" runat="server">报价数量止>=:</gtc:gtLabel>
|
||||||
|
</asp:TableCell>
|
||||||
|
<asp:TableCell Height="21px">
|
||||||
|
<gtc:gtNumTextBox ID="txtBJSLZDY" runat="server" Width="72px" DataField="BJSLZDY"></gtc:gtNumTextBox>
|
||||||
|
</asp:TableCell>
|
||||||
|
</asp:TableRow>
|
||||||
|
<asp:TableRow>
|
||||||
|
<asp:TableCell></asp:TableCell>
|
||||||
|
<asp:TableCell HorizontalAlign="Right" Height="21px">
|
||||||
|
<gtc:gtLabel ID="GtLabel11" runat="server">报价数量止<=:</gtc:gtLabel>
|
||||||
|
</asp:TableCell>
|
||||||
|
<asp:TableCell Height="21px">
|
||||||
|
<gtc:gtNumTextBox ID="txtBJSLZXY" runat="server" Width="72px" DataField="BJSLZXY"></gtc:gtNumTextBox>
|
||||||
|
</asp:TableCell>
|
||||||
|
</asp:TableRow>
|
||||||
|
|
||||||
|
</asp:Table>
|
||||||
|
</asp:Content>
|
||||||
@@ -0,0 +1,134 @@
|
|||||||
|
using System;
|
||||||
|
using System.Data;
|
||||||
|
using System.Configuration;
|
||||||
|
using System.Collections;
|
||||||
|
using System.Web;
|
||||||
|
using System.Web.Security;
|
||||||
|
using System.Web.UI;
|
||||||
|
using System.Web.UI.WebControls;
|
||||||
|
using System.Web.UI.WebControls.WebParts;
|
||||||
|
using System.Web.UI.HtmlControls;
|
||||||
|
using GThinking.N_MODEL.Page;
|
||||||
|
using GThinking.N_MISPRO.Utility;
|
||||||
|
using GThinking.N_MISPRO.Data;
|
||||||
|
using GThinking.N_WORKFLOW;
|
||||||
|
using GThinking.N_PUBLIC;
|
||||||
|
using GThinking.N_MODEL.Dialog;
|
||||||
|
|
||||||
|
namespace GThinking.N_XLXSBJ
|
||||||
|
{
|
||||||
|
public partial class TZYZBJMQuery : SingleQueryBase
|
||||||
|
{
|
||||||
|
TZYZBJM_M queryentity = new TZYZBJM_M();
|
||||||
|
|
||||||
|
#region 页面初始化
|
||||||
|
|
||||||
|
protected void Page_Load(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
this.UMID = 100860178;
|
||||||
|
this.UMName = "按型号规格电压等级报价数量区间调报价";
|
||||||
|
this.CurMaster = Master;
|
||||||
|
this.CurQueryTable = QueryTalbe;
|
||||||
|
this.CurQueryEntity = queryentity;
|
||||||
|
|
||||||
|
if (!IsPostBack)
|
||||||
|
{
|
||||||
|
InitControl();
|
||||||
|
}
|
||||||
|
|
||||||
|
base.InitPage();
|
||||||
|
}
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
#region 模板函数重载
|
||||||
|
|
||||||
|
protected override bool QueryLogicValid()
|
||||||
|
{
|
||||||
|
if (cbxJGBID.SelectedValue.Trim().Equals(""))
|
||||||
|
{
|
||||||
|
ShowMessage("调价表--不允许为空!");
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (txtBJSLSDY.Value < 0 || txtBJSLSXY.Value < 0 || txtBJSLZDY.Value < 0 || txtBJSLZXY.Value < 0)
|
||||||
|
{
|
||||||
|
ShowMessage("报价数量查询不允许小于0!");
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
return base.QueryLogicValid();
|
||||||
|
}
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
#region 私有函数
|
||||||
|
|
||||||
|
private void InitControl()
|
||||||
|
{
|
||||||
|
TDatabase dberp = TContextDatabases.GetDatabase("DBERP");
|
||||||
|
TSQL sql = new TSQL(dberp);
|
||||||
|
sql.Add("SELECT XLXSJGB_JGBID,XLXSJGB_YXQS,XLXSJGB_YXQZ,XLXSJGB_JGBMC from XLXSJGB where XLXSJGB_MXBH='BJD' and XLXSJGB_TJYS='M' order by XLXSJGB_JGBID");
|
||||||
|
DataSet ds = dberp.OpenDataSet(sql);
|
||||||
|
cbxJGBID.ClearItems();
|
||||||
|
for (int i = 0; i < ds.Tables[0].Rows.Count; i++)
|
||||||
|
{
|
||||||
|
string sJGBID = ds.Tables[0].Rows[i]["XLXSJGB_JGBID"].ToString().Trim();
|
||||||
|
string sYXQS = ds.Tables[0].Rows[i]["XLXSJGB_YXQS"].ToString().Trim();
|
||||||
|
string sYXQZ = ds.Tables[0].Rows[i]["XLXSJGB_YXQZ"].ToString().Trim();
|
||||||
|
string sJGBMC = ds.Tables[0].Rows[i]["XLXSJGB_JGBMC"].ToString().Trim();
|
||||||
|
if (sYXQS.Equals(""))
|
||||||
|
sYXQS = "--";
|
||||||
|
else
|
||||||
|
sYXQS = CMISproConvert.ConvertDate(sYXQS);
|
||||||
|
if (sYXQZ.Equals(""))
|
||||||
|
sYXQZ = "--";
|
||||||
|
else
|
||||||
|
sYXQZ = CMISproConvert.ConvertDate(sYXQZ);
|
||||||
|
if (sJGBMC.Equals(""))
|
||||||
|
cbxJGBID.Items.Add(new ListItem(sJGBID + "|" + sYXQS + "至" + sYXQZ, sJGBID));
|
||||||
|
else
|
||||||
|
cbxJGBID.Items.Add(new ListItem(sJGBID + "|" + sYXQS + "至" + sYXQZ + "|" + sJGBMC, sJGBID));
|
||||||
|
}
|
||||||
|
|
||||||
|
//产品目录
|
||||||
|
cbxJGBID_SelectedIndexChanged(null, null);
|
||||||
|
|
||||||
|
TComboBox.SetComboBox("DBERP", cbxXLXHID, "select XLXHB_XLXHID as ID,XLXHB_XLXHID as Name from XLXHB where isnull(XLXHB_TYBZ,'N')<>'Y' order by ID ", true);
|
||||||
|
TComboBox.SetComboBox("DBERP", cbxDYDJID, "select XLDYDJB_DYDJID as ID,XLDYDJB_DYDJID as Name from XLDYDJB where isnull(XLDYDJB_TYBZ,'N')<>'Y' order by XLDYDJB_XH ", true);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
#region 控件事件
|
||||||
|
|
||||||
|
protected void cbxJGBID_SelectedIndexChanged(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
TDatabase dberp = TContextDatabases.GetDatabase("DBERP");
|
||||||
|
TSQL sql = new TSQL(dberp);
|
||||||
|
sql.Clear();
|
||||||
|
sql.Add("SELECT DISTINCT XLXSCPML_CPMLID,XLXSCPML_CPMLMC");
|
||||||
|
sql.Add(" FROM XLXSBJDYZZM ");
|
||||||
|
sql.Add(" LEFT JOIN XLXSBJTJXHML AA ON AA.XLXSBJTJXHML_XLXHID = XLXSBJDYZZM_XLXHID AND AA.XLXSBJTJXHML_DYDJID = isnull( XLXSBJDYZZM_DYDJID, ' ' )");
|
||||||
|
sql.Add(" LEFT JOIN XLXSBJTJXHML BB ON BB.XLXSBJTJXHML_XLXHID = XLXSBJDYZZM_XLXHID AND BB.XLXSBJTJXHML_DYDJID = ' '");
|
||||||
|
sql.Add(" LEFT JOIN XLXSCPML ON XLXSCPML_CPMLID = case when AA.XLXSBJTJXHML_CPMLID is not null then AA.XLXSBJTJXHML_CPMLID else BB.XLXSBJTJXHML_CPMLID end");
|
||||||
|
sql.Add(" where XLXSBJDYZZM_JGBID=:pJGBID and ISNULL(XLXSCPML_CPMLID, ' ') <>' '");
|
||||||
|
sql.Add(" ORDER BY XLXSCPML_CPMLID");
|
||||||
|
sql.ParamByName("pJGBID").Value = cbxJGBID.SelectedValue.Trim();
|
||||||
|
DataSet ds = dberp.OpenDataSet(sql);
|
||||||
|
cbxCPMLID.ClearItems();
|
||||||
|
cbxCPMLID.Items.Add(new ListItem("", ""));
|
||||||
|
cbxCPMLID.Items.Add(new ListItem("空", "空"));
|
||||||
|
for (int i = 0; i < ds.Tables[0].Rows.Count; i++)
|
||||||
|
{
|
||||||
|
string sID = ds.Tables[0].Rows[i]["XLXSCPML_CPMLID"].ToString().Trim();
|
||||||
|
string sName = ds.Tables[0].Rows[i]["XLXSCPML_CPMLMC"].ToString().Trim();
|
||||||
|
if (!sID.Equals(""))
|
||||||
|
cbxCPMLID.Items.Add(new ListItem(sName, sID));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
}
|
||||||
|
}
|
||||||
Generated
+205
@@ -0,0 +1,205 @@
|
|||||||
|
//------------------------------------------------------------------------------
|
||||||
|
// <auto-generated>
|
||||||
|
// 此代码由工具生成。
|
||||||
|
// 运行时版本:2.0.50727.9179
|
||||||
|
//
|
||||||
|
// 对此文件的更改可能会导致不正确的行为,并且如果
|
||||||
|
// 重新生成代码,这些更改将会丢失。
|
||||||
|
// </auto-generated>
|
||||||
|
//------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
namespace GThinking.N_XLXSBJ {
|
||||||
|
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// TZYZBJMQuery 类。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的类。
|
||||||
|
/// </remarks>
|
||||||
|
public partial class TZYZBJMQuery {
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// QueryTalbe 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::System.Web.UI.WebControls.Table QueryTalbe;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// GtLabel4 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtLabel GtLabel4;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// cbxJGBID 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtComboBox cbxJGBID;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// GtLabel14 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtLabel GtLabel14;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// cbxCPMLID 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtComboBox cbxCPMLID;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// GtLabel1 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtLabel GtLabel1;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// cbxXLXHID 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtComboBox cbxXLXHID;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// GtLabel12 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtLabel GtLabel12;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtXLGGID 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtTextBox txtXLGGID;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// GtLabel2 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtLabel GtLabel2;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// cbxDYDJID 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtComboBox cbxDYDJID;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// GtLabel3 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtLabel GtLabel3;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtBJSLSDY 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtNumTextBox txtBJSLSDY;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// GtLabel9 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtLabel GtLabel9;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtBJSLSXY 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtNumTextBox txtBJSLSXY;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// GtLabel10 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtLabel GtLabel10;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtBJSLZDY 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtNumTextBox txtBJSLZDY;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// GtLabel11 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtLabel GtLabel11;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtBJSLZXY 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtNumTextBox txtBJSLZXY;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Master 属性。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的属性。
|
||||||
|
/// </remarks>
|
||||||
|
public new GThinking.N_MODEL.Page.MasterSingleQuery Master {
|
||||||
|
get {
|
||||||
|
return ((GThinking.N_MODEL.Page.MasterSingleQuery)(base.Master));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,32 @@
|
|||||||
|
using System;
|
||||||
|
using System.Data;
|
||||||
|
using System.Configuration;
|
||||||
|
using System.Web;
|
||||||
|
using System.Web.Security;
|
||||||
|
using System.Web.UI;
|
||||||
|
using System.Web.UI.WebControls;
|
||||||
|
using System.Web.UI.WebControls.WebParts;
|
||||||
|
using System.Web.UI.HtmlControls;
|
||||||
|
using GThinking.N_MODEL.Page;
|
||||||
|
|
||||||
|
namespace GThinking.N_XLXSBJ
|
||||||
|
{
|
||||||
|
public class TZYZBJM_M : TBaseNamedQuery
|
||||||
|
{
|
||||||
|
public TZYZBJM_M()
|
||||||
|
{
|
||||||
|
AddFieldDefs("JGBID", "调价表", false);
|
||||||
|
AddFieldDefs("CPMLID", "产品目录");
|
||||||
|
|
||||||
|
AddFieldDefs("XLXHID", "型号");
|
||||||
|
AddFieldDefs("XLGGID", "规格");
|
||||||
|
AddFieldDefs("DYDJID", "电压等级");
|
||||||
|
|
||||||
|
AddFieldDefs("BJSLSDY", "报价数量始>=");
|
||||||
|
AddFieldDefs("BJSLSXY", "报价数量始<=");
|
||||||
|
|
||||||
|
AddFieldDefs("BJSLZDY", "报价数量止>=");
|
||||||
|
AddFieldDefs("BJSLZXY", "报价数量止<=");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
+1
-1
@@ -5916,7 +5916,7 @@ namespace GThinking.N_XLXSBJ
|
|||||||
SQL.Add(" and isnull(XLJGCZBLM_CLQDL,' ')<>' '");
|
SQL.Add(" and isnull(XLJGCZBLM_CLQDL,' ')<>' '");
|
||||||
if (sLX == "QTCLSH")
|
if (sLX == "QTCLSH")
|
||||||
{
|
{
|
||||||
SQL.Add(" and isnull(XLJGCZBLM_XLCLZLID,' ') <> 'DTCL' and XLJGCZBLM_CZBLMMC not like '%Í%' and XLJGCZBLM_CZBLMMC not like '%ÂÁ%' ");
|
SQL.Add(" and isnull(XLJGCZBLM_XLCLZLID,' ') <> 'DTCL' and (XLXSBJCL_BJCLID in('BJCL420000','HTCL_L-01','HTCL_LW-01') or (XLJGCZBLM_CZBLMMC not like '%Í%' and XLJGCZBLM_CZBLMMC not like '%ÂÁ%') ) ");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (sLX == "DTCLSH")
|
if (sLX == "DTCLSH")
|
||||||
|
|||||||
+3
-2
@@ -9070,7 +9070,8 @@ namespace GThinking.N_XLXSBJ
|
|||||||
{
|
{
|
||||||
double dCLCB1 = 0.0;
|
double dCLCB1 = 0.0;
|
||||||
double dCLCB2 = 0.0;
|
double dCLCB2 = 0.0;
|
||||||
bool bHSBZ = true;
|
bool bHSBZ = CMISproDataBase.ExistsRecord("DBERP", string.Format("select 1 from XLXSBJD where XLXSBJD_BJDID='{0}' and XLXSBJD_JZBJHS='Y' ", sBJDID));
|
||||||
|
|
||||||
TDatabase dberp = TContextDatabases.GetDatabase("DBERP");
|
TDatabase dberp = TContextDatabases.GetDatabase("DBERP");
|
||||||
TSQL sSQL = new TSQL(dberp);
|
TSQL sSQL = new TSQL(dberp);
|
||||||
|
|
||||||
@@ -9108,7 +9109,7 @@ namespace GThinking.N_XLXSBJ
|
|||||||
sSQL.Add(" and isnull(XLJGCZBLM_CLQDL,' ')<>' '");
|
sSQL.Add(" and isnull(XLJGCZBLM_CLQDL,' ')<>' '");
|
||||||
if (CLLX == "QTCLSH")
|
if (CLLX == "QTCLSH")
|
||||||
{
|
{
|
||||||
sSQL.Add(" and isnull(XLJGCZBLM_XLCLZLID,' ') <> 'DTCL' and XLJGCZBLM_CZBLMMC not like '%Í%' and XLJGCZBLM_CZBLMMC not like '%ÂÁ%' ");
|
sSQL.Add(" and isnull(XLJGCZBLM_XLCLZLID,' ') <> 'DTCL' and (XLXSBJCL_BJCLID in('BJCL420000','HTCL_L-01','HTCL_LW-01') or (XLJGCZBLM_CZBLMMC not like '%Í%' and XLJGCZBLM_CZBLMMC not like '%ÂÁ%') ) ");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (CLLX == "DTCLSH")
|
if (CLLX == "DTCLSH")
|
||||||
|
|||||||
-177
@@ -19,183 +19,6 @@ namespace GThinking.N_XLXSBJ
|
|||||||
|
|
||||||
public class XLBJD_BJLR : EntityManager
|
public class XLBJD_BJLR : EntityManager
|
||||||
{
|
{
|
||||||
/*
|
|
||||||
[DataMember(DbField = "XLXSBJDMX_BJDID", DbTitle = "报价单号", IsKey = true, DbType = TGtdbType.VarChar,
|
|
||||||
Len = 20, IsNullable = false, DefValue = "", CtlName = "txtXLXSBJDMX_BJDID",
|
|
||||||
CtlType = FieldType.C)]
|
|
||||||
public string XLXSBJDMX_BJDID
|
|
||||||
{
|
|
||||||
get { return GetField("XLXSBJDMX_BJDID").ToString().Trim(); }
|
|
||||||
set { SetField("XLXSBJDMX_BJDID", value); }
|
|
||||||
}
|
|
||||||
|
|
||||||
[DataMember(DbField = "XLXSBJDMX_XH", DbTitle = "序号", IsKey = true, DbType = TGtdbType.Float,
|
|
||||||
Len = 8, IsNullable = false, DefValue = "0", CtlName = "txtXLXSBJDMX_XH",
|
|
||||||
CtlType = FieldType.F)]
|
|
||||||
public string XLXSBJDMX_XH
|
|
||||||
{
|
|
||||||
get { return GetField("XLXSBJDMX_XH").ToString().Trim(); }
|
|
||||||
set { SetField("XLXSBJDMX_XH", value); }
|
|
||||||
}
|
|
||||||
|
|
||||||
[DataMember(DbField = "OLD_XLXSBJDMX_XH", DbTitle = "原序号", IsKey = false, DbType = TGtdbType.Float,
|
|
||||||
Len = 8, IsNullable = true, DefValue = "0", CtlName = "txtOLD_XH", PrintVisible = false,
|
|
||||||
CtlType = FieldType.F)]
|
|
||||||
public string OLD_XLXSBJDMX_XH
|
|
||||||
{
|
|
||||||
get { return GetField("OLD_XLXSBJDMX_XH").ToString().Trim(); }
|
|
||||||
set { SetField("OLD_XLXSBJDMX_XH", value); }
|
|
||||||
}
|
|
||||||
|
|
||||||
[DataMember(DbField = "XLXSCLQD_CPMLID", DbTitle = "产品目录", IsKey = false, DbType = TGtdbType.VarChar,
|
|
||||||
Len = 40, IsNullable = true, DefValue = "", CtlName = "txtXLXSCLQD_CPMLID",
|
|
||||||
CtlType = FieldType.C)]
|
|
||||||
public string XLXSCLQD_CPMLID
|
|
||||||
{
|
|
||||||
get { return GetField("XLXSCLQD_CPMLID").ToString().Trim(); }
|
|
||||||
set { SetField("XLXSCLQD_CPMLID", value); }
|
|
||||||
}
|
|
||||||
|
|
||||||
[DataMember(DbField = "XLXSBJDMX_XLXHID", DbTitle = "型号", IsKey = false, DbType = TGtdbType.VarChar,
|
|
||||||
Len = 40, IsNullable = true, DefValue = "", CtlName = "txtXLXSBJDMX_XLXHID",
|
|
||||||
CtlType = FieldType.C)]
|
|
||||||
public string XLXSBJDMX_XLXHID
|
|
||||||
{
|
|
||||||
get { return GetField("XLXSBJDMX_XLXHID").ToString().Trim(); }
|
|
||||||
set { SetField("XLXSBJDMX_XLXHID", value); }
|
|
||||||
}
|
|
||||||
|
|
||||||
[DataMember(DbField = "XLXSBJDMX_XLGGID", DbTitle = "规格", IsKey = false, DbType = TGtdbType.VarChar,
|
|
||||||
Len = 60, IsNullable = true, DefValue = "", CtlName = "txtXLXSBJDMX_XLGGID",
|
|
||||||
CtlType = FieldType.C)]
|
|
||||||
public string XLXSBJDMX_XLGGID
|
|
||||||
{
|
|
||||||
get { return GetField("XLXSBJDMX_XLGGID").ToString().Trim(); }
|
|
||||||
set { SetField("XLXSBJDMX_XLGGID", value); }
|
|
||||||
}
|
|
||||||
|
|
||||||
[DataMember(DbField = "XLXSBJDMX_XLBZID", DbTitle = "标准", IsKey = false, DbType = TGtdbType.VarChar,
|
|
||||||
Len = 10, IsNullable = true, DefValue = "", CtlName = "cbxXLXSBJDMX_XLBZID",
|
|
||||||
CtlType = FieldType.CBX)]
|
|
||||||
public string XLXSBJDMX_XLBZID
|
|
||||||
{
|
|
||||||
get { return GetField("XLXSBJDMX_XLBZID").ToString().Trim(); }
|
|
||||||
set { SetField("XLXSBJDMX_XLBZID", value); }
|
|
||||||
}
|
|
||||||
|
|
||||||
[DataMember(DbField = "XLXSBJDMX_DYDJID", DbTitle = "电压等级", IsKey = false, DbType = TGtdbType.VarChar,
|
|
||||||
Len = 20, IsNullable = true, DefValue = "", CtlName = "txtXLXSBJDMX_DYDJID",
|
|
||||||
CtlType = FieldType.C)]
|
|
||||||
public string XLXSBJDMX_DYDJID
|
|
||||||
{
|
|
||||||
get { return GetField("XLXSBJDMX_DYDJID").ToString().Trim(); }
|
|
||||||
set { SetField("XLXSBJDMX_DYDJID", value); }
|
|
||||||
}
|
|
||||||
|
|
||||||
[DataMember(DbField = "XLXSBJDMX_XLYSID", DbTitle = "颜色", IsKey = false, DbType = TGtdbType.VarChar,
|
|
||||||
Len = 10, IsNullable = true, DefValue = "", CtlName = "cbxXLXSBJDMX_XLYSID",
|
|
||||||
CtlType = FieldType.CBX)]
|
|
||||||
public string XLXSBJDMX_XLYSID
|
|
||||||
{
|
|
||||||
get { return GetField("XLXSBJDMX_XLYSID").ToString().Trim(); }
|
|
||||||
set { SetField("XLXSBJDMX_XLYSID", value); }
|
|
||||||
}
|
|
||||||
|
|
||||||
[DataMember(DbField = "XLXSBJDMX_BJCP", DbTitle = "报价产品", IsKey = false, DbType = TGtdbType.VarChar,
|
|
||||||
Len = 250, IsNullable = true, DefValue = "", CtlName = "txtXLXSBJDMX_BJCP",
|
|
||||||
CtlType = FieldType.C)]
|
|
||||||
public string XLXSBJDMX_BJCP
|
|
||||||
{
|
|
||||||
get { return GetField("XLXSBJDMX_BJCP").ToString().Trim(); }
|
|
||||||
set { SetField("XLXSBJDMX_BJCP", value); }
|
|
||||||
}
|
|
||||||
|
|
||||||
[DataMember(DbField = "XLXSBJDMX_JLDW", DbTitle = "计量单位", IsKey = false, DbType = TGtdbType.VarChar,
|
|
||||||
Len = 8, IsNullable = true, DefValue = "", CtlName = "cbxXLXSBJDMX_JLDW",
|
|
||||||
CtlType = FieldType.CBX)]
|
|
||||||
public string XLXSBJDMX_JLDW
|
|
||||||
{
|
|
||||||
get { return GetField("XLXSBJDMX_JLDW").ToString().Trim(); }
|
|
||||||
set { SetField("XLXSBJDMX_JLDW", value); }
|
|
||||||
}
|
|
||||||
|
|
||||||
//11
|
|
||||||
[DataMember(DbField = "XLXSBJDMX_BJSL", DbTitle = "报价数量", IsKey = false, DbType = TGtdbType.Float,
|
|
||||||
Len = 8, IsNullable = true, DefValue = "0", CtlName = "txtXLXSBJDMX_BJSL",
|
|
||||||
CtlType = FieldType.F)]
|
|
||||||
public string XLXSBJDMX_BJSL
|
|
||||||
{
|
|
||||||
get { return GetField("XLXSBJDMX_BJSL").ToString().Trim(); }
|
|
||||||
set { SetField("XLXSBJDMX_BJSL", value); }
|
|
||||||
}
|
|
||||||
|
|
||||||
//12
|
|
||||||
[DataMember(DbField = "XLXSBJDMX_JGBBJ", DbTitle = "价格表表价", IsKey = false, DbType = TGtdbType.Float,
|
|
||||||
Len = 8, IsNullable = true, DefValue = "0", CtlName = "txtXLXSBJDMX_JGBBJ",
|
|
||||||
CtlType = FieldType.F)]
|
|
||||||
public string XLXSBJDMX_JGBBJ
|
|
||||||
{
|
|
||||||
get { return GetField("XLXSBJDMX_JGBBJ").ToString().Trim(); }
|
|
||||||
set { SetField("XLXSBJDMX_JGBBJ", value); }
|
|
||||||
}
|
|
||||||
|
|
||||||
//13-报价
|
|
||||||
[DataMember(DbField = "XLXSBJDMX_CPBJ", DbTitle = "报价", IsKey = false, DbType = TGtdbType.Float,
|
|
||||||
Len = 8, IsNullable = true, DefValue = "0", CtlName = "txtXLXSBJDMX_CPBJ",
|
|
||||||
CtlType = FieldType.F)]
|
|
||||||
public string XLXSBJDMX_CPBJ
|
|
||||||
{
|
|
||||||
get { return GetField("XLXSBJDMX_CPBJ").ToString().Trim(); }
|
|
||||||
set { SetField("XLXSBJDMX_CPBJ", value); }
|
|
||||||
}
|
|
||||||
|
|
||||||
[DataMember(DbField = "XLXSBJDMX_BJJE", DbTitle = "报价金额", IsKey = false, DbType = TGtdbType.Float,
|
|
||||||
Len = 8, IsNullable = true, DefValue = "0", CtlName = "txtXLXSBJDMX_BJJE",
|
|
||||||
CtlType = FieldType.F)]
|
|
||||||
public string XLXSBJDMX_BJJE
|
|
||||||
{
|
|
||||||
get { return GetField("XLXSBJDMX_BJJE").ToString().Trim(); }
|
|
||||||
set { SetField("XLXSBJDMX_BJJE", value); }
|
|
||||||
}
|
|
||||||
|
|
||||||
//15-价格表行情料价
|
|
||||||
[DataMember(DbField = "XLXSBJDMX_CLCB", DbTitle = "表价", IsKey = false, DbType = TGtdbType.Float,
|
|
||||||
Len = 8, IsNullable = true, DefValue = "0", CtlName = "txtXLXSBJDMX_CLCB",
|
|
||||||
CtlType = FieldType.F)]
|
|
||||||
public string XLXSBJDMX_CLCB
|
|
||||||
{
|
|
||||||
get { return GetField("XLXSBJDMX_CLCB").ToString().Trim(); }
|
|
||||||
set { SetField("XLXSBJDMX_CLCB", value); }
|
|
||||||
}
|
|
||||||
|
|
||||||
[DataMember(DbField = "XLXSBJDMX_JGBBJJCL", DbTitle = "价差率(%)", IsKey = false, DbType = TGtdbType.Float,
|
|
||||||
Len = 8, IsNullable = true, DefValue = "0", CtlName = "txtXLXSBJDMX_JGBBJJCL",
|
|
||||||
CtlType = FieldType.F)]
|
|
||||||
public string XLXSBJDMX_JGBBJJCL
|
|
||||||
{
|
|
||||||
get { return GetField("XLXSBJDMX_JGBBJJCL").ToString().Trim(); }
|
|
||||||
set { SetField("XLXSBJDMX_JGBBJJCL", value); }
|
|
||||||
}
|
|
||||||
|
|
||||||
//价格表表价价差额
|
|
||||||
[DataMember(DbField = "XLXSBJDMX_JGBBJJCE", DbTitle = "价差额", IsKey = false, DbType = TGtdbType.Float,
|
|
||||||
Len = 8, IsNullable = true, DefValue = "0", CtlName = "txtXLXSBJDMX_JGBBJJCE",
|
|
||||||
CtlType = FieldType.F)]
|
|
||||||
public string XLXSBJDMX_JGBBJJCE
|
|
||||||
{
|
|
||||||
get { return GetField("XLXSBJDMX_JGBBJJCE").ToString().Trim(); }
|
|
||||||
set { SetField("XLXSBJDMX_JGBBJJCE", value); }
|
|
||||||
}
|
|
||||||
|
|
||||||
//18
|
|
||||||
[DataMember(DbField = "XLXSBJDMX_BJDHQCLCB", DbTitle = "报价单行情料价", IsKey = false, DbType = TGtdbType.Float,
|
|
||||||
Len = 8, IsNullable = true, DefValue = "0", CtlName = "txtXLXSBJDMX_BJDHQCLCB",
|
|
||||||
CtlType = FieldType.F)]
|
|
||||||
public string XLXSBJDMX_BJDHQCLCB
|
|
||||||
{
|
|
||||||
get { return GetField("XLXSBJDMX_BJDHQCLCB").ToString().Trim(); }
|
|
||||||
set { SetField("XLXSBJDMX_BJDHQCLCB", value); }
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+20
-12
@@ -5357,7 +5357,8 @@ namespace GThinking.N_XLXSBJ
|
|||||||
SQL.Add(" and isnull(XLJGCZBLM_CLQDL,' ')<>' '");
|
SQL.Add(" and isnull(XLJGCZBLM_CLQDL,' ')<>' '");
|
||||||
if (sLX == "QTCLSH")
|
if (sLX == "QTCLSH")
|
||||||
{
|
{
|
||||||
SQL.Add(" and isnull(XLJGCZBLM_XLCLZLID,' ') <> 'DTCL' and XLJGCZBLM_CZBLMMC not like '%Í%' and XLJGCZBLM_CZBLMMC not like '%ÂÁ%' ");
|
SQL.Add(" and isnull(XLJGCZBLM_XLCLZLID,' ') <> 'DTCL' and (XLXSBJCL_BJCLID in('BJCL420000','HTCL_L-01','HTCL_LW-01') or (XLJGCZBLM_CZBLMMC not like '%Í%' and XLJGCZBLM_CZBLMMC not like '%ÂÁ%') ) ");
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (sLX == "DTCLSH")
|
if (sLX == "DTCLSH")
|
||||||
@@ -8886,13 +8887,15 @@ namespace GThinking.N_XLXSBJ
|
|||||||
int iXSWS = 5;
|
int iXSWS = 5;
|
||||||
|
|
||||||
string sCJGS = "";
|
string sCJGS = "";
|
||||||
string sMXBH = "";
|
SQL.Clear();
|
||||||
string sBJFLID = "02";
|
SQL.Add("select CJGS from dbo.JGBCJGS where JGBID=:JGBID ");
|
||||||
if (sJGBID == "26080009")
|
SQL.ParamByName("JGBID").Value = sJGBID;
|
||||||
sBJFLID = "04";
|
DataSet dsCJGS = dberp.OpenDataSet(SQL);
|
||||||
BJFLXX flxx = XLBJDUtils.GetBJFLXX(sBJFLID);
|
if (dsCJGS.Tables[0].Rows.Count > 0)
|
||||||
|
sCJGS = dsCJGS.Tables[0].Rows[0][0].ToString();
|
||||||
|
|
||||||
if (!string.IsNullOrEmpty(flxx.XLXSBJFL_CJGS))
|
|
||||||
|
if (!string.IsNullOrEmpty(sCJGS))
|
||||||
{
|
{
|
||||||
int indexXSML = 0;
|
int indexXSML = 0;
|
||||||
int indexFJSX = 0;
|
int indexFJSX = 0;
|
||||||
@@ -8915,7 +8918,10 @@ namespace GThinking.N_XLXSBJ
|
|||||||
SQL.Add(" left join XLXSCLQD on XLXSCLQD_XLXHID=XLXSJGBMX_XLXHID and XLXSCLQD_XLGGID=XLXSJGBMX_XLGGID and XLXSCLQD_XLBZID=XLXSJGBMX_XLBZID and XLXSCLQD_DYDJID=XLXSJGBMX_DYDJID and XLXSCLQD_WPID='ZZZZ' ");
|
SQL.Add(" left join XLXSCLQD on XLXSCLQD_XLXHID=XLXSJGBMX_XLXHID and XLXSCLQD_XLGGID=XLXSJGBMX_XLGGID and XLXSCLQD_XLBZID=XLXSJGBMX_XLBZID and XLXSCLQD_DYDJID=XLXSJGBMX_DYDJID and XLXSCLQD_WPID='ZZZZ' ");
|
||||||
SQL.Add(" where XLXSJGBMX_JGBID=:pJGBID and XLXSJGBMX_XH>=:maxXH ");
|
SQL.Add(" where XLXSJGBMX_JGBID=:pJGBID and XLXSJGBMX_XH>=:maxXH ");
|
||||||
SQL.Add(" )sor on(XLXSJGBYZZ0_JGBID=XLXSJGBMX_JGBID and XLXSJGBMX_XH=XLXSJGBYZZ0_XH) ");
|
SQL.Add(" )sor on(XLXSJGBYZZ0_JGBID=XLXSJGBMX_JGBID and XLXSJGBMX_XH=XLXSJGBYZZ0_XH) ");
|
||||||
SQL.Add(" when matched then update set XLXSJGBYZZ0_YZZ" + i.ToString().PadLeft(2, '0') + "= XLXSJGBYZZ0_YZZ" + i.ToString().PadLeft(2, '0') + "*isnull(XLXSCLQD_JGBHSCB,0)/100.0 ");
|
if (sCJGS.Contains("WSCB"))
|
||||||
|
SQL.Add(" when matched then update set XLXSJGBYZZ0_YZZ" + i.ToString().PadLeft(2, '0') + "= XLXSJGBYZZ0_YZZ" + i.ToString().PadLeft(2, '0') + "*isnull(XLXSCLQD_JGBWSCB,0)/100.0 ");
|
||||||
|
else
|
||||||
|
SQL.Add(" when matched then update set XLXSJGBYZZ0_YZZ" + i.ToString().PadLeft(2, '0') + "= XLXSJGBYZZ0_YZZ" + i.ToString().PadLeft(2, '0') + "*isnull(XLXSCLQD_JGBHSCB,0)/100.0 ");
|
||||||
SQL.ParamByName("pJGBID").Value = sJGBID;
|
SQL.ParamByName("pJGBID").Value = sJGBID;
|
||||||
SQL.ParamByName("maxXH").Value = maxXH;
|
SQL.ParamByName("maxXH").Value = maxXH;
|
||||||
|
|
||||||
@@ -8931,7 +8937,10 @@ namespace GThinking.N_XLXSBJ
|
|||||||
SQL.Add(" left join XLXSCLQD on XLXSCLQD_XLXHID=XLXSJGBMX_XLXHID and XLXSCLQD_XLGGID=XLXSJGBMX_XLGGID and XLXSCLQD_XLBZID=XLXSJGBMX_XLBZID and XLXSCLQD_DYDJID=XLXSJGBMX_DYDJID and XLXSCLQD_WPID='ZZZZ' ");
|
SQL.Add(" left join XLXSCLQD on XLXSCLQD_XLXHID=XLXSJGBMX_XLXHID and XLXSCLQD_XLGGID=XLXSJGBMX_XLGGID and XLXSCLQD_XLBZID=XLXSJGBMX_XLBZID and XLXSCLQD_DYDJID=XLXSJGBMX_DYDJID and XLXSCLQD_WPID='ZZZZ' ");
|
||||||
SQL.Add(" where XLXSJGBMX_JGBID=:pJGBID and XLXSJGBMX_XH>=:maxXH ");
|
SQL.Add(" where XLXSJGBMX_JGBID=:pJGBID and XLXSJGBMX_XH>=:maxXH ");
|
||||||
SQL.Add(" )sor on(XLXSJGBYZZ0_JGBID=XLXSJGBMX_JGBID and XLXSJGBMX_XH=XLXSJGBYZZ0_XH) ");
|
SQL.Add(" )sor on(XLXSJGBYZZ0_JGBID=XLXSJGBMX_JGBID and XLXSJGBMX_XH=XLXSJGBYZZ0_XH) ");
|
||||||
SQL.Add(" when matched then update set XLXSJGBYZZ0_YZZ" + i.ToString().PadLeft(2, '0') + "= XLXSJGBYZZ0_YZZ" + i.ToString().PadLeft(2, '0') + "*isnull(XLXSCLQD_JGBHSCB,0)/100.0 ");
|
if (sCJGS.Contains("WSCB"))
|
||||||
|
SQL.Add(" when matched then update set XLXSJGBYZZ0_YZZ" + i.ToString().PadLeft(2, '0') + "= XLXSJGBYZZ0_YZZ" + i.ToString().PadLeft(2, '0') + "*isnull(XLXSCLQD_JGBWSCB,0)/100.0 ");
|
||||||
|
else
|
||||||
|
SQL.Add(" when matched then update set XLXSJGBYZZ0_YZZ" + i.ToString().PadLeft(2, '0') + "= XLXSJGBYZZ0_YZZ" + i.ToString().PadLeft(2, '0') + "*isnull(XLXSCLQD_JGBHSCB,0)/100.0 ");
|
||||||
SQL.ParamByName("pJGBID").Value = sJGBID;
|
SQL.ParamByName("pJGBID").Value = sJGBID;
|
||||||
SQL.ParamByName("maxXH").Value = maxXH;
|
SQL.ParamByName("maxXH").Value = maxXH;
|
||||||
|
|
||||||
@@ -8954,8 +8963,6 @@ namespace GThinking.N_XLXSBJ
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
sCJGS = flxx.XLXSBJFL_CJGS;
|
|
||||||
sMXBH = flxx.XLXSBJFL_MXBH;
|
|
||||||
//将数据都处理为0-防止编辑存在部分计算公式出错
|
//将数据都处理为0-防止编辑存在部分计算公式出错
|
||||||
SQL.Clear();
|
SQL.Clear();
|
||||||
SQL.Add(" update XLXSJGBMX set XLXSJGBMX_CJ = 0.0 where XLXSJGBMX_JGBID=:pJGBID and XLXSJGBMX_XH>=:maxXH ");
|
SQL.Add(" update XLXSJGBMX set XLXSJGBMX_CJ = 0.0 where XLXSJGBMX_JGBID=:pJGBID and XLXSJGBMX_XH>=:maxXH ");
|
||||||
@@ -8964,11 +8971,12 @@ namespace GThinking.N_XLXSBJ
|
|||||||
dberp.ExecSQL(SQL);
|
dberp.ExecSQL(SQL);
|
||||||
if (!sCJGS.Equals(""))
|
if (!sCJGS.Equals(""))
|
||||||
{
|
{
|
||||||
sCJGS = sCJGS.Replace("CLCB", "XXX01").Replace("JGBJJ", "XXX02").Replace("JGBBJ", "XXX03").Replace("CPBJ", "XXX04").Replace("ZDXJ", "XXX05").Replace("BJDHQCB", "XXX06");
|
sCJGS = sCJGS.Replace("CLCB", "XXX01").Replace("JGBJJ", "XXX02").Replace("JGBBJ", "XXX03").Replace("CPBJ", "XXX04").Replace("ZDXJ", "XXX05").Replace("BJDHQCB", "XXX06").Replace("WSCB", "XXX07");
|
||||||
sCJGS = sCJGS.Replace("JZ", "tar.XLXSJGBYZZ0_YZZ");
|
sCJGS = sCJGS.Replace("JZ", "tar.XLXSJGBYZZ0_YZZ");
|
||||||
sCJGS = sCJGS.Replace("XXX01", "sor.XLXSJGBMX_HSJJ");
|
sCJGS = sCJGS.Replace("XXX01", "sor.XLXSJGBMX_HSJJ");
|
||||||
sCJGS = sCJGS.Replace("XXX02", "sor.XLXSJGBMX_HSJJ");
|
sCJGS = sCJGS.Replace("XXX02", "sor.XLXSJGBMX_HSJJ");
|
||||||
sCJGS = sCJGS.Replace("XXX06", "sor.XLXSJGBMX_HSJJ");
|
sCJGS = sCJGS.Replace("XXX06", "sor.XLXSJGBMX_HSJJ");
|
||||||
|
sCJGS = sCJGS.Replace("XXX07", "sor.XLXSJGBMX_WSJJ");
|
||||||
sCJGS = sCJGS.Replace(" ", "").Replace("×", "*").Replace("100", "100.00");
|
sCJGS = sCJGS.Replace(" ", "").Replace("×", "*").Replace("100", "100.00");
|
||||||
sCJGS = sCJGS.Replace("round", "roundFix");
|
sCJGS = sCJGS.Replace("round", "roundFix");
|
||||||
SQL.Clear();
|
SQL.Clear();
|
||||||
|
|||||||
@@ -104,6 +104,11 @@ namespace GThinking.N_XLXSBJ
|
|||||||
strSQL.AppendLine(" and XLXSBJCPYS_DYDJID = :XLXSBJCPYS_DYDJID ");
|
strSQL.AppendLine(" and XLXSBJCPYS_DYDJID = :XLXSBJCPYS_DYDJID ");
|
||||||
entity.Param.Add("XLXSBJCPYS_DYDJID", CurQueryEntity.FieldByName("DYDJ").Value.Trim());
|
entity.Param.Add("XLXSBJCPYS_DYDJID", CurQueryEntity.FieldByName("DYDJ").Value.Trim());
|
||||||
}
|
}
|
||||||
|
if (!string.IsNullOrEmpty(CurQueryEntity.FieldByName("XLXHFJSX").Value.Trim()))
|
||||||
|
{
|
||||||
|
strSQL.AppendLine(" and XLXSBJCPYS_XXJGID like :XLXSBJCPYS_XXJGID ");
|
||||||
|
entity.Param.Add("XLXSBJCPYS_XXJGID","%"+CurQueryEntity.FieldByName("XLXHFJSX").Value.Trim()+"%");
|
||||||
|
}
|
||||||
strSQL.AppendLine(" order by XLXSBJCPYS_XLJBXHID,XLXSBJCPYS_DYDJID,XLXSBJCPYS_XXJGID ");
|
strSQL.AppendLine(" order by XLXSBJCPYS_XLJBXHID,XLXSBJCPYS_DYDJID,XLXSBJCPYS_XXJGID ");
|
||||||
return strSQL.ToString();
|
return strSQL.ToString();
|
||||||
}
|
}
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user