提交说明10/9
This commit is contained in:
@@ -0,0 +1 @@
|
||||
12
|
||||
@@ -0,0 +1 @@
|
||||
12
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Binary file not shown.
|
After Width: | Height: | Size: 84 KiB |
@@ -0,0 +1,587 @@
|
||||
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;
|
||||
using GThinking.N_CONTROL;
|
||||
using System.Text;
|
||||
using GThinking.N_MISPRO.TableCache;
|
||||
|
||||
namespace GThinking.U20261363_N_XLXSBJ
|
||||
{
|
||||
public partial class XLBJDQuery : SingleQueryBase
|
||||
{
|
||||
XLBJD_M queryentity = new XLBJD_M();
|
||||
|
||||
#region 页面初始化
|
||||
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
this.UMID = 100860174;
|
||||
this.UMName = "查询";
|
||||
this.CurMaster = Master;
|
||||
this.CurQueryTable = QueryTalbe;
|
||||
this.CurQueryEntity = queryentity;
|
||||
|
||||
if (!IsPostBack)
|
||||
{
|
||||
InitControl();
|
||||
}
|
||||
|
||||
base.InitPage();
|
||||
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region 私有函数
|
||||
|
||||
private void InitControl()
|
||||
{
|
||||
WorkFlowUtils.SetCombox_WFSW(this.UMID, tSession, cbxSW);
|
||||
TRYXX.SetComboBox_GH(cbxDCLR, "", true, true);
|
||||
WorkFlowUtils.SetCheckedDropDownList_WFPROC("XLXSBJ_BJD", cbxWFState);
|
||||
|
||||
string sSQL = string.Format("select XLXSBJFL_BJFLID,case isnull(XLXSBJFL_TYBZ,' ') when 'Y' then rtrim(XLXSBJFL_BJFLMC)||'(停用)' else XLXSBJFL_BJFLMC end as Name from XLXSBJFL where 1 = 1 ");
|
||||
if (!string.IsNullOrEmpty(GetOption(100860000,"BJU012").Trim()))
|
||||
{
|
||||
sSQL += " and (" + CMISproDataBase.GetWhereEqual("XLXSBJFL_BJFLID", GetOption(100860000,"BJU012").Trim());
|
||||
sSQL += " or isnull(XLXSBJFL_BJFLID, ' ') = ' ')";
|
||||
}
|
||||
sSQL += " order by XLXSBJFL_XSXH,XLXSBJFL_BJFLID ";
|
||||
TComboBox.SetComboBox("DBERP", cbxBJFLID, sSQL, true);
|
||||
|
||||
cbxPXFS.ClearItems();
|
||||
cbxPXFS.Items.Add(new ListItem("报价单号倒序↓", "报价单号倒序↓"));
|
||||
cbxPXFS.Items.Add(new ListItem("报价单号正序↑", "报价单号正序↑"));
|
||||
cbxPXFS.Items.Add(new ListItem("报价日期倒序↓", "报价日期倒序↓"));
|
||||
cbxPXFS.Items.Add(new ListItem("报价日期正序↑", "报价日期正序↑"));
|
||||
cbxFKJG.ClearItems();
|
||||
cbxFKJG.Items.Add(new ListItem("全部中标", "Y"));
|
||||
cbxFKJG.Items.Add(new ListItem("部分中标", "P"));
|
||||
cbxFKJG.Items.Add(new ListItem("未中标", "N"));
|
||||
cbxFKJG.Items.Add(new ListItem("废标", "F"));
|
||||
cbxFKJG.Items.Add(new ListItem("弃标", "Q"));
|
||||
cbxFKJG.ShowValue = false;
|
||||
|
||||
cbxZCJH.ClearItems();
|
||||
cbxZCJH.Items.Add(new ListItem("全部", ""));
|
||||
cbxZCJH.Items.Add(new ListItem("未生成", "未生成"));
|
||||
cbxZCJH.Items.Add(new ListItem("已生成", "已生成"));
|
||||
cbxZCJH.ShowValue = false;
|
||||
|
||||
TDatabase dberp = TContextDatabases.GetDatabase("DBERP");
|
||||
TSQL sql = new TSQL(dberp);
|
||||
sql.Clear();
|
||||
sql.Add("select XSY_TXY,XSY_ZJM from XSY where 1=1 order by XSY_ZJM");
|
||||
DataSet ds = dberp.OpenDataSet(sql);
|
||||
cbxTXY.ClearItems();
|
||||
if (ds.Tables[0].Rows.Count > 0)
|
||||
{
|
||||
cbxTXY.Items.Add(new ListItem("", ""));
|
||||
for (int i = 0; i < ds.Tables[0].Rows.Count; i++)
|
||||
{
|
||||
string sTXY = ds.Tables[0].Rows[i][0].ToString().Trim();
|
||||
string sZJM = ds.Tables[0].Rows[i][1].ToString().Trim();
|
||||
if (sZJM.Equals(""))
|
||||
sZJM = CMISproConvert.ConvertZJM(sTXY).Trim();
|
||||
cbxTXY.Items.Add(new ListItem(sZJM + "|" + sTXY, sTXY));
|
||||
}
|
||||
}
|
||||
|
||||
sql.Clear();
|
||||
ds.Clear();
|
||||
sql.Add(" SELECT BM_BMID,BM_MC FROM BM where 1=1 ");
|
||||
if (!string.IsNullOrEmpty(GetOption(100860000,"HJU006").Trim()))
|
||||
{
|
||||
sql.Add(" and " + CMISproDataBase.GetWhereEqual("BM_BMID", GetOption(100860000,"HJU006").Trim()));
|
||||
}
|
||||
sql.Add(" order by BM_BMID ");
|
||||
ds = dberp.OpenDataSet(sql);
|
||||
cbxXSBM.ClearItems();
|
||||
for (int i = 0; i < ds.Tables[0].Rows.Count; i++)
|
||||
{
|
||||
string sID = ds.Tables[0].Rows[i]["BM_BMID"].ToString().Trim();
|
||||
string sName = ds.Tables[0].Rows[i]["BM_MC"].ToString().Trim();
|
||||
cbxXSBM.Items.Add(new ListItem(sName, sID));
|
||||
}
|
||||
|
||||
sql.Clear();
|
||||
sql.Add(@"select distinct XLXSBJD_SQRGH,XLXSBJD_SQR,isnull(RSRYJBXX_PYBM,' ') as PYBM from XLXSBJD
|
||||
left join RSRYJBXX on RSRYJBXX_RYID=XLXSBJD_SQRID
|
||||
order by XLXSBJD_SQRGH");
|
||||
ds = dberp.OpenDataSet(sql);
|
||||
cbxSQR.ClearItems();
|
||||
if (ds.Tables[0].Rows.Count > 0)
|
||||
{
|
||||
for (int i = 0; i < ds.Tables[0].Rows.Count; i++)
|
||||
{
|
||||
string sSQRGH = ds.Tables[0].Rows[i]["XLXSBJD_SQRGH"].ToString().Trim();
|
||||
string sSQR = ds.Tables[0].Rows[i]["XLXSBJD_SQR"].ToString().Trim();
|
||||
string sZJM = ds.Tables[0].Rows[i]["PYBM"].ToString().Trim();
|
||||
if(sZJM.Equals(""))
|
||||
sZJM = CMISproConvert.ConvertZJM(sSQR).Trim();
|
||||
cbxSQR.Items.Add(new ListItem(sZJM + "|" + sSQR + "|" + sSQRGH, sSQRGH));
|
||||
}
|
||||
}
|
||||
chkZDFXYQR.Visible = false;
|
||||
if (CheckModule("100860068"))
|
||||
chkZDFXYQR.Visible = true;
|
||||
LoadKZXXFZ();
|
||||
}
|
||||
|
||||
private void LoadKZXXFZ()
|
||||
{
|
||||
|
||||
string sZDM = "";//使用字段
|
||||
string sMC = "";//附加信息名称
|
||||
string sSRFS = "";//输入方式
|
||||
string sMJLB = "";//枚举列表
|
||||
string sMJSQL = "";//SQL命令
|
||||
DataSet ds = XLBJDUtils.GetKZXX();
|
||||
for (int i = 0; i < ds.Tables[0].Rows.Count; i++)
|
||||
{
|
||||
if (ds.Tables[0].Rows[i]["XLXSBJKZXXSZ_ZWCXTJ"].ToString().Trim() != "Y")
|
||||
continue;
|
||||
sZDM = ds.Tables[0].Rows[i]["XLXSBJKZXXSZ_DYZD"].ToString().Trim();
|
||||
sMC = ds.Tables[0].Rows[i]["XLXSBJKZXXSZ_MC"].ToString().Trim();
|
||||
sSRFS = ds.Tables[0].Rows[i]["XLXSBJKZXXSZ_SRFS"].ToString().Trim();
|
||||
sMJLB = ds.Tables[0].Rows[i]["XLXSBJKZXXSZ_MJLB"].ToString().Trim();
|
||||
sMJSQL = ds.Tables[0].Rows[i]["XLXSBJKZXXSZ_MJSQL"].ToString().Trim();
|
||||
//数值型
|
||||
if (ds.Tables[0].Rows[i]["XLXSBJKZXXSZ_SJLX"].ToString().Trim().Equals("A"))
|
||||
{
|
||||
switch (sZDM)
|
||||
{
|
||||
case "KZSZ01":
|
||||
KZSZ01.Visible = true;
|
||||
lblKZSZ01.Text = sMC + ":";
|
||||
break;
|
||||
case "KZSZ02":
|
||||
KZSZ02.Visible = true;
|
||||
lblKZSZ02.Text = sMC + ":";
|
||||
break;
|
||||
case "KZSZ03":
|
||||
KZSZ03.Visible = true;
|
||||
lblKZSZ03.Text = sMC + ":";
|
||||
break;
|
||||
case "KZSZ04":
|
||||
KZSZ04.Visible = true;
|
||||
lblKZSZ04.Text = sMC + ":";
|
||||
break;
|
||||
case "KZSZ05":
|
||||
KZSZ05.Visible = true;
|
||||
lblKZSZ05.Text = sMC + ":";
|
||||
break;
|
||||
}
|
||||
}
|
||||
//日期型
|
||||
else if (ds.Tables[0].Rows[i]["XLXSBJKZXXSZ_SJLX"].ToString().Trim().Equals("C"))
|
||||
{
|
||||
switch (sZDM)
|
||||
{
|
||||
case "KZRQ01":
|
||||
KZRQ01S.Visible = true;
|
||||
KZRQ01Z.Visible = true;
|
||||
lblKZRQ01S.Text = sMC + "始:";
|
||||
lblKZRQ01Z.Text = sMC + "止:";
|
||||
break;
|
||||
case "KZRQ02":
|
||||
KZRQ02S.Visible = true;
|
||||
KZRQ02Z.Visible = true;
|
||||
lblKZRQ02S.Text = sMC + "始:";
|
||||
lblKZRQ02Z.Text = sMC + "止:";
|
||||
break;
|
||||
case "KZRQ03":
|
||||
KZRQ03S.Visible = true;
|
||||
KZRQ03Z.Visible = true;
|
||||
lblKZRQ03S.Text = sMC + "始:";
|
||||
lblKZRQ03Z.Text = sMC + "止:";
|
||||
break;
|
||||
case "KZRQ04":
|
||||
KZRQ04S.Visible = true;
|
||||
KZRQ04Z.Visible = true;
|
||||
lblKZRQ04S.Text = sMC + "始:";
|
||||
lblKZRQ04Z.Text = sMC + "止:";
|
||||
break;
|
||||
case "KZRQ05":
|
||||
KZRQ05S.Visible = true;
|
||||
KZRQ05Z.Visible = true;
|
||||
lblKZRQ05S.Text = sMC + "始:";
|
||||
lblKZRQ05Z.Text = sMC + "止:";
|
||||
break;
|
||||
|
||||
}
|
||||
}
|
||||
//字符型
|
||||
else if (ds.Tables[0].Rows[i]["XLXSBJKZXXSZ_SJLX"].ToString().Trim().Equals("B"))
|
||||
{
|
||||
switch (sZDM)
|
||||
{
|
||||
case "KZZF01":
|
||||
if (sSRFS.Trim().Equals("A"))
|
||||
{
|
||||
KZZF012.Visible = false;
|
||||
KZZF011.Visible = true;
|
||||
lblKZZF011.Text = sMC + ":";
|
||||
}
|
||||
else
|
||||
{
|
||||
KZZF012.Visible = true;
|
||||
KZZF011.Visible = false;
|
||||
lblKZZF012.Text = sMC + ":";
|
||||
if (sMJLB.Trim().Equals(""))
|
||||
{
|
||||
TComboBox.SetComboBox("DBERP", cbxKZZF01, sMJSQL, true);
|
||||
}
|
||||
else
|
||||
{
|
||||
cbxKZZF01.ClearItems();
|
||||
cbxKZZF01.Items.Add(new ListItem("", ""));
|
||||
string[] array = sMJLB.Trim().Replace("\r\n", ",").Split(',');
|
||||
foreach (string sValue in array)
|
||||
{
|
||||
cbxKZZF01.Items.Add(new ListItem(sValue, sValue));
|
||||
}
|
||||
cbxKZZF01.ShowValue = false;
|
||||
}
|
||||
}
|
||||
break;
|
||||
case "KZZF02":
|
||||
if (sSRFS.Trim().Equals("A"))
|
||||
{
|
||||
KZZF022.Visible = false;
|
||||
KZZF021.Visible = true;
|
||||
lblKZZF021.Text = sMC + ":";
|
||||
}
|
||||
else
|
||||
{
|
||||
KZZF022.Visible = true;
|
||||
KZZF021.Visible = false;
|
||||
lblKZZF022.Text = sMC + ":";
|
||||
if (sMJLB.Trim().Equals(""))
|
||||
{
|
||||
TComboBox.SetComboBox("DBERP", cbxKZZF02, sMJSQL, true);
|
||||
}
|
||||
else
|
||||
{
|
||||
cbxKZZF02.ClearItems();
|
||||
cbxKZZF02.Items.Add(new ListItem("", ""));
|
||||
string[] array = sMJLB.Trim().Replace("\r\n", ",").Split(',');
|
||||
foreach (string sValue in array)
|
||||
{
|
||||
cbxKZZF02.Items.Add(new ListItem(sValue, sValue));
|
||||
}
|
||||
cbxKZZF02.ShowValue = false;
|
||||
}
|
||||
}
|
||||
break;
|
||||
case "KZZF03":
|
||||
if (sSRFS.Trim().Equals("A"))
|
||||
{
|
||||
KZZF032.Visible = false;
|
||||
KZZF031.Visible = true;
|
||||
lblKZZF031.Text = sMC + ":";
|
||||
}
|
||||
else
|
||||
{
|
||||
KZZF032.Visible = true;
|
||||
KZZF031.Visible = false;
|
||||
lblKZZF032.Text = sMC + ":";
|
||||
if (sMJLB.Trim().Equals(""))
|
||||
{
|
||||
TComboBox.SetComboBox("DBERP", cbxKZZF03, sMJSQL, true);
|
||||
}
|
||||
else
|
||||
{
|
||||
cbxKZZF03.ClearItems();
|
||||
cbxKZZF03.Items.Add(new ListItem("", ""));
|
||||
string[] array = sMJLB.Trim().Replace("\r\n", ",").Split(',');
|
||||
foreach (string sValue in array)
|
||||
{
|
||||
cbxKZZF03.Items.Add(new ListItem(sValue, sValue));
|
||||
}
|
||||
cbxKZZF03.ShowValue = false;
|
||||
}
|
||||
}
|
||||
break;
|
||||
case "KZZF04":
|
||||
if (sSRFS.Trim().Equals("A"))
|
||||
{
|
||||
KZZF042.Visible = false;
|
||||
KZZF041.Visible = true;
|
||||
lblKZZF041.Text = sMC + ":";
|
||||
}
|
||||
else
|
||||
{
|
||||
KZZF042.Visible = true;
|
||||
KZZF041.Visible = false;
|
||||
lblKZZF042.Text = sMC + ":";
|
||||
if (sMJLB.Trim().Equals(""))
|
||||
{
|
||||
TComboBox.SetComboBox("DBERP", cbxKZZF04, sMJSQL, true);
|
||||
}
|
||||
else
|
||||
{
|
||||
cbxKZZF04.ClearItems();
|
||||
cbxKZZF04.Items.Add(new ListItem("", ""));
|
||||
string[] array = sMJLB.Trim().Replace("\r\n", ",").Split(',');
|
||||
foreach (string sValue in array)
|
||||
{
|
||||
cbxKZZF04.Items.Add(new ListItem(sValue, sValue));
|
||||
}
|
||||
cbxKZZF04.ShowValue = false;
|
||||
}
|
||||
}
|
||||
break;
|
||||
case "KZZF05":
|
||||
if (sSRFS.Trim().Equals("A"))
|
||||
{
|
||||
KZZF052.Visible = false;
|
||||
KZZF051.Visible = true;
|
||||
lblKZZF051.Text = sMC + ":";
|
||||
}
|
||||
else
|
||||
{
|
||||
KZZF052.Visible = true;
|
||||
KZZF051.Visible = false;
|
||||
lblKZZF052.Text = sMC + ":";
|
||||
if (sMJLB.Trim().Equals(""))
|
||||
{
|
||||
TComboBox.SetComboBox("DBERP", cbxKZZF05, sMJSQL, true);
|
||||
}
|
||||
else
|
||||
{
|
||||
cbxKZZF05.ClearItems();
|
||||
cbxKZZF05.Items.Add(new ListItem("", ""));
|
||||
string[] array = sMJLB.Trim().Replace("\r\n", ",").Split(',');
|
||||
foreach (string sValue in array)
|
||||
{
|
||||
cbxKZZF05.Items.Add(new ListItem(sValue, sValue));
|
||||
}
|
||||
cbxKZZF05.ShowValue = false;
|
||||
}
|
||||
}
|
||||
break;
|
||||
case "KZZF06":
|
||||
if (sSRFS.Trim().Equals("A"))
|
||||
{
|
||||
KZZF062.Visible = false;
|
||||
KZZF061.Visible = true;
|
||||
lblKZZF061.Text = sMC + ":";
|
||||
}
|
||||
else
|
||||
{
|
||||
KZZF062.Visible = true;
|
||||
KZZF061.Visible = false;
|
||||
lblKZZF062.Text = sMC + ":";
|
||||
if (sMJLB.Trim().Equals(""))
|
||||
{
|
||||
TComboBox.SetComboBox("DBERP", cbxKZZF06, sMJSQL, true);
|
||||
}
|
||||
else
|
||||
{
|
||||
cbxKZZF06.ClearItems();
|
||||
cbxKZZF06.Items.Add(new ListItem("", ""));
|
||||
string[] array = sMJLB.Trim().Replace("\r\n", ",").Split(',');
|
||||
foreach (string sValue in array)
|
||||
{
|
||||
cbxKZZF06.Items.Add(new ListItem(sValue, sValue));
|
||||
}
|
||||
cbxKZZF06.ShowValue = false;
|
||||
}
|
||||
}
|
||||
break;
|
||||
case "KZZF07":
|
||||
if (sSRFS.Trim().Equals("A"))
|
||||
{
|
||||
KZZF072.Visible = false;
|
||||
KZZF071.Visible = true;
|
||||
lblKZZF071.Text = sMC + ":";
|
||||
}
|
||||
else
|
||||
{
|
||||
KZZF072.Visible = true;
|
||||
KZZF071.Visible = false;
|
||||
lblKZZF072.Text = sMC + ":";
|
||||
if (sMJLB.Trim().Equals(""))
|
||||
{
|
||||
TComboBox.SetComboBox("DBERP", cbxKZZF07, sMJSQL, true);
|
||||
}
|
||||
else
|
||||
{
|
||||
cbxKZZF07.ClearItems();
|
||||
cbxKZZF07.Items.Add(new ListItem("", ""));
|
||||
string[] array = sMJLB.Trim().Replace("\r\n", ",").Split(',');
|
||||
foreach (string sValue in array)
|
||||
{
|
||||
cbxKZZF07.Items.Add(new ListItem(sValue, sValue));
|
||||
}
|
||||
cbxKZZF07.ShowValue = false;
|
||||
}
|
||||
}
|
||||
break;
|
||||
case "KZZF08":
|
||||
if (sSRFS.Trim().Equals("A"))
|
||||
{
|
||||
KZZF082.Visible = false;
|
||||
KZZF081.Visible = true;
|
||||
lblKZZF081.Text = sMC + ":";
|
||||
}
|
||||
else
|
||||
{
|
||||
KZZF082.Visible = true;
|
||||
KZZF081.Visible = false;
|
||||
lblKZZF082.Text = sMC + ":";
|
||||
if (sMJLB.Trim().Equals(""))
|
||||
{
|
||||
TComboBox.SetComboBox("DBERP", cbxKZZF08, sMJSQL, true);
|
||||
}
|
||||
else
|
||||
{
|
||||
cbxKZZF08.ClearItems();
|
||||
cbxKZZF08.Items.Add(new ListItem("", ""));
|
||||
string[] array = sMJLB.Trim().Replace("\r\n", ",").Split(',');
|
||||
foreach (string sValue in array)
|
||||
{
|
||||
cbxKZZF08.Items.Add(new ListItem(sValue, sValue));
|
||||
}
|
||||
cbxKZZF08.ShowValue = false;
|
||||
}
|
||||
}
|
||||
break;
|
||||
case "KZZF09":
|
||||
if (sSRFS.Trim().Equals("A"))
|
||||
{
|
||||
KZZF092.Visible = false;
|
||||
KZZF091.Visible = true;
|
||||
lblKZZF091.Text = sMC + ":";
|
||||
}
|
||||
else
|
||||
{
|
||||
KZZF092.Visible = true;
|
||||
KZZF091.Visible = false;
|
||||
lblKZZF092.Text = sMC + ":";
|
||||
if (sMJLB.Trim().Equals(""))
|
||||
{
|
||||
TComboBox.SetComboBox("DBERP", cbxKZZF09, sMJSQL, true);
|
||||
}
|
||||
else
|
||||
{
|
||||
cbxKZZF09.ClearItems();
|
||||
cbxKZZF09.Items.Add(new ListItem("", ""));
|
||||
string[] array = sMJLB.Trim().Replace("\r\n", ",").Split(',');
|
||||
foreach (string sValue in array)
|
||||
{
|
||||
cbxKZZF09.Items.Add(new ListItem(sValue, sValue));
|
||||
}
|
||||
cbxKZZF09.ShowValue = false;
|
||||
}
|
||||
}
|
||||
break;
|
||||
case "KZZF10":
|
||||
if (sSRFS.Trim().Equals("A"))
|
||||
{
|
||||
KZZF102.Visible = false;
|
||||
KZZF101.Visible = true;
|
||||
lblKZZF101.Text = sMC + ":";
|
||||
}
|
||||
else
|
||||
{
|
||||
KZZF102.Visible = true;
|
||||
KZZF101.Visible = false;
|
||||
lblKZZF102.Text = sMC + ":";
|
||||
if (sMJLB.Trim().Equals(""))
|
||||
{
|
||||
TComboBox.SetComboBox("DBERP", cbxKZZF10, sMJSQL, true);
|
||||
}
|
||||
else
|
||||
{
|
||||
cbxKZZF10.ClearItems();
|
||||
cbxKZZF10.Items.Add(new ListItem("", ""));
|
||||
string[] array = sMJLB.Trim().Replace("\r\n", ",").Split(',');
|
||||
foreach (string sValue in array)
|
||||
{
|
||||
cbxKZZF10.Items.Add(new ListItem(sValue, sValue));
|
||||
}
|
||||
cbxKZZF10.ShowValue = false;
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
else if (ds.Tables[0].Rows[i]["XLXSBJKZXXSZ_SJLX"].ToString().Trim().Equals("D"))
|
||||
{
|
||||
switch (sZDM)
|
||||
{
|
||||
case "KZWB01":
|
||||
KZWB01.Visible = true;
|
||||
lblKZWB01.Text = sMC + ":";
|
||||
|
||||
break;
|
||||
case "KZWB02":
|
||||
KZWB02.Visible = true;
|
||||
lblKZWB02.Text = sMC + ":";
|
||||
break;
|
||||
case "KZWB03":
|
||||
KZWB03.Visible = true;
|
||||
lblKZWB03.Text = sMC + ":";
|
||||
break;
|
||||
case "KZWB04":
|
||||
KZWB04.Visible = true;
|
||||
lblKZWB04.Text = sMC + ":";
|
||||
break;
|
||||
case "KZWB05":
|
||||
KZWB05.Visible = true;
|
||||
lblKZWB05.Text = sMC + ":";
|
||||
break;
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
//判断模块是否存在并且是否有权限
|
||||
private bool CheckModule(string sUMID)
|
||||
{
|
||||
int iUMID = CMISproConvert.StrToInt(sUMID);
|
||||
UserRight UR = OpRightUtils.GetUserRight(tSession.UserId, iUMID);
|
||||
return (DSActiveModule.IsActiveModule(iUMID) && UR.Open);
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region 控件事件
|
||||
|
||||
protected void cbxSW_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
if (IsPostBack)
|
||||
{
|
||||
if (cbxSW.SelectedValue.Trim().Equals("A"))
|
||||
{
|
||||
datBJRQS.Text = DateTime.Now.Year.ToString().Trim() + "-" + DateTime.Now.Month.ToString().Trim().PadLeft(2, '0') + "-01";
|
||||
datBJRQZ.Text = DateTime.Now.ToShortDateString().Trim();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,372 @@
|
||||
<%@ Page Language="C#" MasterPageFile="~/N_MODEL/Page/MasterSingleGrid.Master" AutoEventWireup="true"
|
||||
Codebehind="XLBJDList.aspx.cs" Inherits="GThinking.U20261363_N_XLXSBJ.XLBJDList" Title="线缆销售报价单" %>
|
||||
|
||||
<%@ MasterType VirtualPath="~/N_MODEL/Page/MasterSingleGrid.Master" %>
|
||||
<asp:Content ID="ContentButton" ContentPlaceHolderID="CPHButton" runat="server">
|
||||
</asp:Content>
|
||||
<asp:Content ID="ContentForm" ContentPlaceHolderID="cphForm" runat="server">
|
||||
<gtc:gtGridView ID="ContentGrid" runat="server" AutoGenerateColumns="False" EnableViewState="false">
|
||||
<FixRowCol TableHeight="100%" TableWidth="100%" />
|
||||
<Columns>
|
||||
<asp:BoundField DataField="XLXSBJD_WPID" HeaderText="流程状态">
|
||||
<itemstyle width="80px"></itemstyle>
|
||||
<headerstyle width="80px" verticalalign="Middle"></headerstyle>
|
||||
</asp:BoundField>
|
||||
<asp:BoundField DataField="XLXSBJD_ACTNAME" HeaderText="流转方向">
|
||||
<itemstyle width="80px"></itemstyle>
|
||||
<headerstyle width="80px" verticalalign="Middle"></headerstyle>
|
||||
</asp:BoundField>
|
||||
<asp:BoundField HeaderText="报价分类" DataField="XLXSBJD_BJFLID">
|
||||
<itemstyle width="220px"></itemstyle>
|
||||
<headerstyle width="220px"></headerstyle>
|
||||
</asp:BoundField>
|
||||
<asp:BoundField HeaderText="报价单号" DataField="XLXSBJD_BJDID">
|
||||
<itemstyle width="130px"></itemstyle>
|
||||
<headerstyle width="130px"></headerstyle>
|
||||
</asp:BoundField>
|
||||
<asp:BoundField HeaderText="报价日期" DataField="XLXSBJD_BJRQ">
|
||||
<itemstyle width="72px"></itemstyle>
|
||||
<headerstyle width="72px"></headerstyle>
|
||||
</asp:BoundField>
|
||||
<asp:BoundField HeaderText="客户单号" DataField="XLXSBJD_KHDH">
|
||||
<itemstyle width="130px"></itemstyle>
|
||||
<headerstyle width="130px"></headerstyle>
|
||||
</asp:BoundField>
|
||||
<asp:BoundField HeaderText="价格表" DataField="XSJGB">
|
||||
<itemstyle width="160px"></itemstyle>
|
||||
<headerstyle width="160px"></headerstyle>
|
||||
</asp:BoundField>
|
||||
<asp:BoundField HeaderText="铜价" DataField="XLXSBJD_TJ">
|
||||
<itemstyle horizontalalign="Right" width="80px"></itemstyle>
|
||||
<headerstyle width="80px"></headerstyle>
|
||||
</asp:BoundField>
|
||||
<asp:BoundField HeaderText="铝价" DataField="XLXSBJD_LJ">
|
||||
<itemstyle horizontalalign="Right" width="80px"></itemstyle>
|
||||
<headerstyle width="80px"></headerstyle>
|
||||
</asp:BoundField>
|
||||
<asp:BoundField DataField="XLXSBJD_SQR" HeaderText="申请人">
|
||||
<itemstyle width="72px" />
|
||||
</asp:BoundField>
|
||||
<asp:BoundField HeaderText="销售单位" DataField="XHDW">
|
||||
<itemstyle width="200px"></itemstyle>
|
||||
<headerstyle width="200px"></headerstyle>
|
||||
</asp:BoundField>
|
||||
<asp:BoundField HeaderText="销售部门" DataField="XSBM">
|
||||
<itemstyle width="150px"></itemstyle>
|
||||
<headerstyle width="150px"></headerstyle>
|
||||
</asp:BoundField>
|
||||
<asp:BoundField HeaderText="销售经理" DataField="XLXSBJD_XSJLMC">
|
||||
<itemstyle width="72px"></itemstyle>
|
||||
<headerstyle width="72px"></headerstyle>
|
||||
</asp:BoundField>
|
||||
<asp:BoundField HeaderText="销售员" DataField="XLXSBJD_TXY">
|
||||
<itemstyle width="72px"></itemstyle>
|
||||
<headerstyle width="72px"></headerstyle>
|
||||
</asp:BoundField>
|
||||
<asp:BoundField HeaderText="销售区域" DataField="XSQY">
|
||||
<itemstyle width="150px"></itemstyle>
|
||||
<headerstyle width="150px"></headerstyle>
|
||||
</asp:BoundField>
|
||||
<asp:BoundField HeaderText="客户" DataField="XLXSBJD_KH">
|
||||
<itemstyle width="150px"></itemstyle>
|
||||
<headerstyle width="150px"></headerstyle>
|
||||
</asp:BoundField>
|
||||
<asp:BoundField HeaderText="客户联系人" DataField="XLXSBJD_KHLXR">
|
||||
<itemstyle width="150px"></itemstyle>
|
||||
<headerstyle width="150px"></headerstyle>
|
||||
</asp:BoundField>
|
||||
<asp:BoundField HeaderText="客户联系电话" DataField="XLXSBJD_LXDH">
|
||||
<itemstyle width="150px"></itemstyle>
|
||||
<headerstyle width="150px"></headerstyle>
|
||||
</asp:BoundField>
|
||||
<%-- <asp:BoundField HeaderText="客户传真" DataField="XLXSBJD_CZ">
|
||||
<itemstyle width="150px"></itemstyle>
|
||||
<headerstyle width="150px"></headerstyle>
|
||||
</asp:BoundField>--%>
|
||||
<asp:BoundField HeaderText="项目" DataField="XLXSBJD_XMMC">
|
||||
<itemstyle width="150px"></itemstyle>
|
||||
<headerstyle width="150px"></headerstyle>
|
||||
</asp:BoundField>
|
||||
<asp:BoundField HeaderText="详细地址" DataField="XLXSBJD_XXDZ">
|
||||
<itemstyle width="150px"></itemstyle>
|
||||
<headerstyle width="150px"></headerstyle>
|
||||
</asp:BoundField>
|
||||
<asp:BoundField HeaderText="付款期限" DataField="XLXSBJD_FKQXNR">
|
||||
<itemstyle width="150px"></itemstyle>
|
||||
<headerstyle width="150px"></headerstyle>
|
||||
</asp:BoundField>
|
||||
<asp:BoundField HeaderText="付款说明" DataField="XLXSBJD_FKSM">
|
||||
<itemstyle width="150px"></itemstyle>
|
||||
<headerstyle width="150px"></headerstyle>
|
||||
</asp:BoundField>
|
||||
<%--<asp:BoundField HeaderText="利润率(%)" DataField="XLXSBJD_LRL">
|
||||
<itemstyle horizontalalign="Right" width="80px"></itemstyle>
|
||||
<headerstyle width="80px"></headerstyle>
|
||||
</asp:BoundField>--%>
|
||||
<asp:BoundField HeaderText="报价总金额" DataField="XLXSBJD_ZJE">
|
||||
<itemstyle horizontalalign="Right" width="80px"></itemstyle>
|
||||
<headerstyle width="80px"></headerstyle>
|
||||
</asp:BoundField>
|
||||
<asp:BoundField HeaderText="表价价差率(%)" DataField="XLXSBJD_LRL">
|
||||
<itemstyle horizontalalign="Right" width="100px"></itemstyle>
|
||||
<headerstyle width="100px"></headerstyle>
|
||||
</asp:BoundField>
|
||||
<asp:BoundField HeaderText="最低限价价差率(%)" DataField="XLXSBJD_ZDXJJCL">
|
||||
<itemstyle horizontalalign="Right" width="120px"></itemstyle>
|
||||
<headerstyle width="120px"></headerstyle>
|
||||
</asp:BoundField>
|
||||
<asp:BoundField HeaderText="撞单分析" DataField="ZDFXYQR">
|
||||
<itemstyle width="72px"></itemstyle>
|
||||
<headerstyle width="72px"></headerstyle>
|
||||
</asp:BoundField>
|
||||
<asp:BoundField HeaderText="反馈日期" DataField="XLXSBJD_FKRQ">
|
||||
<itemstyle width="72px"></itemstyle>
|
||||
<headerstyle width="72px"></headerstyle>
|
||||
</asp:BoundField>
|
||||
<asp:BoundField HeaderText="反馈结果" DataField="FKJG">
|
||||
<itemstyle width="72px"></itemstyle>
|
||||
<headerstyle width="72px"></headerstyle>
|
||||
</asp:BoundField>
|
||||
<asp:BoundField DataField="KZSZ01" HeaderText="" visible="false">
|
||||
<itemstyle width="80px" horizontalalign="Right" />
|
||||
</asp:BoundField>
|
||||
<asp:BoundField DataField="KZSZ02" HeaderText="" visible="false">
|
||||
<itemstyle width="80px" horizontalalign="Right" />
|
||||
</asp:BoundField>
|
||||
<asp:BoundField DataField="KZSZ03" HeaderText="" visible="false">
|
||||
<itemstyle width="80px" horizontalalign="Right" />
|
||||
</asp:BoundField>
|
||||
<asp:BoundField DataField="KZSZ04" HeaderText="" visible="false">
|
||||
<itemstyle width="80px" horizontalalign="Right" />
|
||||
</asp:BoundField>
|
||||
<asp:BoundField DataField="KZSZ05" HeaderText="" visible="false">
|
||||
<itemstyle width="80px" horizontalalign="Right" />
|
||||
</asp:BoundField>
|
||||
<asp:BoundField DataField="KZZF01" HeaderText="" visible="false">
|
||||
<itemstyle width="100px" horizontalalign="Left" />
|
||||
</asp:BoundField>
|
||||
<asp:BoundField DataField="KZZF02" HeaderText="" visible="false">
|
||||
<itemstyle width="100px" horizontalalign="Left" />
|
||||
</asp:BoundField>
|
||||
<asp:BoundField DataField="KZZF03" HeaderText="" visible="false">
|
||||
<itemstyle width="100px" horizontalalign="Left" />
|
||||
</asp:BoundField>
|
||||
<asp:BoundField DataField="KZZF04" HeaderText="" visible="false">
|
||||
<itemstyle width="100px" horizontalalign="Left" />
|
||||
</asp:BoundField>
|
||||
<asp:BoundField DataField="KZZF05" HeaderText="" visible="false">
|
||||
<itemstyle width="100px" horizontalalign="Left" />
|
||||
</asp:BoundField>
|
||||
<asp:BoundField DataField="KZZF06" HeaderText="" visible="false">
|
||||
<itemstyle width="100px" horizontalalign="Left" />
|
||||
</asp:BoundField>
|
||||
<asp:BoundField DataField="KZZF07" HeaderText="" visible="false">
|
||||
<itemstyle width="100px" horizontalalign="Left" />
|
||||
</asp:BoundField>
|
||||
<asp:BoundField DataField="KZZF08" HeaderText="" visible="false">
|
||||
<itemstyle width="100px" horizontalalign="Left" />
|
||||
</asp:BoundField>
|
||||
<asp:BoundField DataField="KZZF09" HeaderText="" visible="false">
|
||||
<itemstyle width="100px" horizontalalign="Left" />
|
||||
</asp:BoundField>
|
||||
<asp:BoundField DataField="KZZF10" HeaderText="" visible="false">
|
||||
<itemstyle width="100px" horizontalalign="Left" />
|
||||
</asp:BoundField>
|
||||
<asp:BoundField DataField="KZRQ01" HeaderText="" visible="false">
|
||||
<itemstyle width="72px" horizontalalign="Left" />
|
||||
</asp:BoundField>
|
||||
<asp:BoundField DataField="KZRQ02" HeaderText="" visible="false">
|
||||
<itemstyle width="72px" horizontalalign="Left" />
|
||||
</asp:BoundField>
|
||||
<asp:BoundField DataField="KZRQ03" HeaderText="" visible="false">
|
||||
<itemstyle width="72px" horizontalalign="Left" />
|
||||
</asp:BoundField>
|
||||
<asp:BoundField DataField="KZRQ04" HeaderText="" visible="false">
|
||||
<itemstyle width="72px" horizontalalign="Left" />
|
||||
</asp:BoundField>
|
||||
<asp:BoundField DataField="KZRQ05" HeaderText="" visible="false">
|
||||
<itemstyle width="72px" horizontalalign="Left" />
|
||||
</asp:BoundField>
|
||||
<asp:BoundField DataField="KZWB01" HeaderText="" visible="false">
|
||||
<itemstyle width="150px" horizontalalign="Left" />
|
||||
</asp:BoundField>
|
||||
<asp:BoundField DataField="KZWB02" HeaderText="" visible="false">
|
||||
<itemstyle width="150px" horizontalalign="Left" />
|
||||
</asp:BoundField>
|
||||
<asp:BoundField DataField="KZWB03" HeaderText="" visible="false">
|
||||
<itemstyle width="150px" horizontalalign="Left" />
|
||||
</asp:BoundField>
|
||||
<asp:BoundField DataField="KZWB04" HeaderText="" visible="false">
|
||||
<itemstyle width="150px" horizontalalign="Left" />
|
||||
</asp:BoundField>
|
||||
<asp:BoundField DataField="KZWB05" HeaderText="" visible="false">
|
||||
<itemstyle width="150px" horizontalalign="Left" />
|
||||
</asp:BoundField>
|
||||
<asp:BoundField HeaderText="附件数" DataField="XLXSBJD_FJS">
|
||||
<itemstyle horizontalalign="Right" width="80px"></itemstyle>
|
||||
<headerstyle width="80px"></headerstyle>
|
||||
</asp:BoundField>
|
||||
<asp:BoundField HeaderText="待处理人" DataField="XLXSBJD_WFAWAITER">
|
||||
<itemstyle width="200px"></itemstyle>
|
||||
<headerstyle width="200px"></headerstyle>
|
||||
</asp:BoundField>
|
||||
<asp:BoundField HeaderText="已处理人" DataField="XLXSBJD_WFHANDLER">
|
||||
<itemstyle width="200px"></itemstyle>
|
||||
<headerstyle width="200px"></headerstyle>
|
||||
</asp:BoundField>
|
||||
<asp:BoundField HeaderText="报价备注" DataField="XLXSBJD_BZ">
|
||||
<itemstyle width="250px"></itemstyle>
|
||||
<headerstyle width="250px"></headerstyle>
|
||||
</asp:BoundField>
|
||||
<asp:BoundField HeaderText="维护人" DataField="XLXSBJD_WHR">
|
||||
<itemstyle width="72px"></itemstyle>
|
||||
<headerstyle width="72px"></headerstyle>
|
||||
</asp:BoundField>
|
||||
<asp:BoundField HeaderText="维护时间" DataField="XLXSBJD_WHSJ">
|
||||
<itemstyle width="125px"></itemstyle>
|
||||
<headerstyle width="125px"></headerstyle>
|
||||
</asp:BoundField>
|
||||
</Columns>
|
||||
<ColumnsEx>
|
||||
<gtc:gtGridView_Column DataField="XLXSBJD_BJFLID" EditType="etString" ShowHint="true">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="XLXSBJD_BJDID" EditType="etString" ShowHint="true">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="XLXSBJD_KHDH" EditType="etString" ShowHint="true">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="XSJGB" EditType="etString" ShowHint="true">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="XLXSBJD_TJ" EditType="etNumber" ShowZero="false"
|
||||
NumberDecimalPlace="2">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="XLXSBJD_LJ" EditType="etNumber" ShowZero="false"
|
||||
NumberDecimalPlace="2">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="XHDW" EditType="etString" ShowHint="true">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="XSBM" EditType="etString" ShowHint="true">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="XLXSBJD_BJRQ" EditType="etDateTime" DateTimeEditKins="dtDate">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="XLXSBJD_XSJLMC" EditType="etString" ShowHint="true">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="XLXSBJD_TXY" EditType="etString" ShowHint="true">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="XSQY" EditType="etString" ShowHint="true">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="XLXSBJD_KH" EditType="etString" ShowHint="true">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="XLXSBJD_KHLXR" EditType="etString" ShowHint="true">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="XLXSBJD_LXDH" EditType="etString" ShowHint="true">
|
||||
</gtc:gtGridView_Column>
|
||||
<%-- <gtc:gtGridView_Column DataField="XLXSBJD_CZ" EditType="etString" ShowHint="true">
|
||||
</gtc:gtGridView_Column>--%>
|
||||
<gtc:gtGridView_Column DataField="XLXSBJD_XMMC" EditType="etString" ShowHint="true">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="XLXSBJD_XXDZ" EditType="etString" ShowHint="true">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="XLXSBJD_FKQXNR" EditType="etString" ShowHint="true">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="XLXSBJD_FKSM" EditType="etString" ShowHint="true">
|
||||
</gtc:gtGridView_Column>
|
||||
<%--<gtc:gtGridView_Column DataField="XLXSBJD_LRL" EditType="etNumber" ShowZero="false"
|
||||
NumberDecimalPlace="2">
|
||||
</gtc:gtGridView_Column>--%>
|
||||
<gtc:gtGridView_Column DataField="XLXSBJD_ZJE" EditType="etNumber" ShowZero="false"
|
||||
NumberDecimalPlace="2">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="XLXSBJD_LRL" EditType="etNumber" ShowZero="false"
|
||||
NumberDecimalPlace="2">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="XLXSBJD_ZDXJJCL" EditType="etNumber" ShowZero="false"
|
||||
NumberDecimalPlace="2">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="ZDFXYQR" EditType="etCheckBox" >
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="XLXSBJD_FKRQ" EditType="etDateTime" DateTimeEditKins="dtDate">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="FKJG" EditType="etString" ShowHint="true">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="KZSZ01" EditType="etNumber" NumberDecimalPlace="2"
|
||||
ShowHint="true">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="KZSZ02" EditType="etNumber" NumberDecimalPlace="2"
|
||||
ShowHint="true">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="KZSZ03" EditType="etNumber" NumberDecimalPlace="2"
|
||||
ShowHint="true">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="KZSZ04" EditType="etNumber" NumberDecimalPlace="2"
|
||||
ShowHint="true">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="KZSZ05" EditType="etNumber" NumberDecimalPlace="2"
|
||||
ShowHint="true">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="KZZF01" EditType="etString" ShowHint="true">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="KZZF02" EditType="etString" ShowHint="true">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="KZZF03" EditType="etString" ShowHint="true">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="KZZF04" EditType="etString" ShowHint="true">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="KZZF05" EditType="etString" ShowHint="true">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="KZZF06" EditType="etString" ShowHint="true">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="KZZF07" EditType="etString" ShowHint="true">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="KZZF08" EditType="etString" ShowHint="true">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="KZZF09" EditType="etString" ShowHint="true">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="KZZF10" EditType="etString" ShowHint="true">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="KZRQ01" EditType="etDateTime" DateTimeEditKins="dtDate"
|
||||
ShowHint="true">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="KZRQ02" EditType="etDateTime" DateTimeEditKins="dtDate"
|
||||
ShowHint="true">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="KZRQ03" EditType="etDateTime" DateTimeEditKins="dtDate"
|
||||
ShowHint="true">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="KZRQ04" EditType="etDateTime" DateTimeEditKins="dtDate"
|
||||
ShowHint="true">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="KZRQ05" EditType="etDateTime" DateTimeEditKins="dtDate"
|
||||
ShowHint="true">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="KZWB01" EditType="etString" ShowHint="true">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="KZWB02" EditType="etString" ShowHint="true">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="KZWB03" EditType="etString" ShowHint="true">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="KZWB04" EditType="etString" ShowHint="true">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="KZWB05" EditType="etString" ShowHint="true">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="XLXSBJD_FJS" EditType="etNumber" ShowZero="false"
|
||||
NumberDecimalPlace="0">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="XLXSBJD_BZ" EditType="etString" ShowHint="true">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="XLXSBJD_WHR" EditType="etString" ShowHint="true">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="XLXSBJD_WHSJ" EditType="etDateTime" DateTimeEditKins="dtDateTime">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="XLXSBJD_WPID" ShowHint="true" EditType="etString">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="XLXSBJD_ACTNAME" ShowHint="true" EditType="etString">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="XLXSBJD_WFAWAITER" ShowHint="true" EditType="etString">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="XLXSBJD_WFHANDLER" ShowHint="true" EditType="etString">
|
||||
</gtc:gtGridView_Column>
|
||||
</ColumnsEx>
|
||||
</gtc:gtGridView>
|
||||
</asp:Content>
|
||||
<asp:Content ID="ContentSync" ContentPlaceHolderID="CPHSync" runat="server">
|
||||
</asp:Content>
|
||||
@@ -0,0 +1,255 @@
|
||||
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.U20261363_N_XLXSBJ
|
||||
{
|
||||
[TableMap(DB = "DBERP", DbTableName = "XLXSBJD", Umid = 100860174, IsWorkFlow = true, IsAttach = true,
|
||||
DOCGRPIDFieldName = "XLXSBJD_DOCGRPID", DOCFJSFieldName = "XLXSBJD_FJS",
|
||||
QuerySelSql = "",
|
||||
DefaultFilter = " ",
|
||||
EntitySelSql = "select XLXSBJD_BJDID, XLXSBJD_SYDWID, XLXSBJD_BJRQ, XLXSBJD_XSJLMC,\r\n"
|
||||
+ " XLXSBJD_TXY, XLXSBJD_KH, XLXSBJD_XMMC, XLXSBJD_XXDZ, XLXSBJD_BZ,XLXSBJD_ZJE,XLXSBJD_LRL, XLXSBJD_FJS, XLXSBJD_DOCGRPID, XLXSBJD_WHR, XLXSBJD_WHRID, XLXSBJD_WHSJ, XLXSBJD_WFID, XLXSBJD_WFINST, XLXSBJD_WPID, XLXSBJD_WFAWAITER, XLXSBJD_WFHANDLER, XLXSBJD_ACTNAME \r\n"
|
||||
+ " from XLXSBJD where XLXSBJD_WFID=:XLXSBJD_WFID and XLXSBJD_WFINST=:XLXSBJD_WFINST",
|
||||
UpdateSql = "update XLXSBJD set \r\n"
|
||||
+ " XLXSBJD_BJDID=:XLXSBJD_BJDID,\r\n"
|
||||
+ "XLXSBJD_SYDWID=:XLXSBJD_SYDWID,\r\n"
|
||||
+ "XLXSBJD_BJRQ=:XLXSBJD_BJRQ,\r\n"
|
||||
+ "XLXSBJD_XSJLMC=:XLXSBJD_XSJLMC,\r\n"
|
||||
+ "XLXSBJD_TXY=:XLXSBJD_TXY,\r\n"
|
||||
+ "XLXSBJD_KH=:XLXSBJD_KH,\r\n"
|
||||
+ "XLXSBJD_XMMC=:XLXSBJD_XMMC,\r\n"
|
||||
+ "XLXSBJD_XXDZ=:XLXSBJD_XXDZ,\r\n"
|
||||
+ "XLXSBJD_BZ=:XLXSBJD_BZ,\r\n"
|
||||
+ "XLXSBJD_ZJE=:XLXSBJD_ZJE,\r\n"
|
||||
+ "XLXSBJD_LRL=:XLXSBJD_LRL,\r\n"
|
||||
+ "XLXSBJD_FJS=:XLXSBJD_FJS,\r\n"
|
||||
+ "XLXSBJD_DOCGRPID=:XLXSBJD_DOCGRPID,\r\n"
|
||||
+ "XLXSBJD_WHR=:XLXSBJD_WHR,\r\n"
|
||||
+ "XLXSBJD_WHRID=:XLXSBJD_WHRID,\r\n"
|
||||
+ "XLXSBJD_WHSJ=:XLXSBJD_WHSJ\r\n"
|
||||
+ " where XLXSBJD_BJDID=:XLXSBJD_BJDID ",
|
||||
|
||||
InsertSql = "insert into XLXSBJD( XLXSBJD_BJDID, XLXSBJD_SYDWID, XLXSBJD_BJRQ, XLXSBJD_XSJLMC,\r\n"
|
||||
+ " XLXSBJD_TXY, XLXSBJD_KH, XLXSBJD_XMMC, XLXSBJD_XXDZ, XLXSBJD_BZ,XLXSBJD_ZJE,XLXSBJD_LRL, XLXSBJD_FJS, XLXSBJD_DOCGRPID, XLXSBJD_WHR, XLXSBJD_WHRID, XLXSBJD_WHSJ)"
|
||||
+ " values(:XLXSBJD_BJDID, :XLXSBJD_SYDWID, :XLXSBJD_BJRQ, :XLXSBJD_XSJLMC,\r\n"
|
||||
+ " :XLXSBJD_TXY, :XLXSBJD_KH, :XLXSBJD_XMMC, :XLXSBJD_XXDZ, :XLXSBJD_BZ,:XLXSBJD_ZJE,:XLXSBJD_LRL, :XLXSBJD_FJS, :XLXSBJD_DOCGRPID, :XLXSBJD_WHR, :XLXSBJD_WHRID, :XLXSBJD_WHSJ)",
|
||||
|
||||
DeleteSql = "delete from XLXSBJD where XLXSBJD_BJDID=:XLXSBJD_BJDID ")]
|
||||
public class XLBJD : EntityManager
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
|
||||
[TableMap(DB = "DBERP", DbTableName = "XLXSBJDMX", Umid = 100860174, IsWorkFlow = false,
|
||||
QuerySelSql = "select XLXSBJDMX_BJDID,XLXSBJDMX_XH, XLXSBJDMX_XLXHID, XLXSBJDMX_XLGGID, XLXSBJDMX_XLBZID,XLXSBJDMX_XLYSID,XLXSBJDMX_BJCP,XLXSBJDMX_JLDW,XLXSBJDMX_BJSL,XLXSBJDMX_JGBBJ,"
|
||||
+ " XLXSBJDMX_CPBJ,XLXSBJDMX_BJJE,XLXSBJDMX_CLCB,XLXSBJDMX_JGBBJJCL,XLXSBJDMX_JGBBJJCE,XLXSBJDMX_BZ ,XLXSBJDMX_WHRID, XLXSBJDMX_WHR ,XLXSBJDMX_WHSJ from XLXSBJDMX "
|
||||
+ " where XLXSBJDMX_BJDID=:XLXSBJDMX_BJDID order by XLXSBJDMX_XH",
|
||||
DefaultFilter = " ",
|
||||
EntitySelSql = "select XLXSBJDMX_BJDID,XLXSBJDMX_XH, XLXSBJDMX_XLXHID, XLXSBJDMX_XLGGID, XLXSBJDMX_XLBZID,XLXSBJDMX_XLYSID,XLXSBJDMX_BJCP,XLXSBJDMX_JLDW,XLXSBJDMX_BJSL,XLXSBJDMX_JGBBJ,"
|
||||
+ " XLXSBJDMX_CPBJ,XLXSBJDMX_BJJE,XLXSBJDMX_CLCB,XLXSBJDMX_JGBBJJCL,XLXSBJDMX_JGBBJJCE,XLXSBJDMX_BZ ,XLXSBJDMX_WHRID, XLXSBJDMX_WHR ,XLXSBJDMX_WHSJ from XLXSBJDMX "
|
||||
+ " where XLXSBJDMX_BJDID=:XLXSBJDMX_BJDID and XLXSBJDMX_XH=:XLXSBJDMX_XH",
|
||||
UpdateSql = "update XLXSBJDMX set \r\n"
|
||||
+ " XLXSBJDMX_BJDID =:XLXSBJDMX_BJDID,\r\n"
|
||||
+ "XLXSBJDMX_XH =:XLXSBJDMX_XH,\r\n"
|
||||
+ "XLXSBJDMX_XLXHID =:XLXSBJDMX_XLXHID,\r\n"
|
||||
+ "XLXSBJDMX_XLGGID =:XLXSBJDMX_XLGGID,\r\n"
|
||||
+ "XLXSBJDMX_XLBZID =:XLXSBJDMX_XLBZID,\r\n"
|
||||
+ "XLXSBJDMX_XLYSID =:XLXSBJDMX_XLYSID,\r\n"
|
||||
+ "XLXSBJDMX_BJCP =:XLXSBJDMX_BJCP,\r\n"
|
||||
+ "XLXSBJDMX_JLDW =:XLXSBJDMX_JLDW,\r\n"
|
||||
+ "XLXSBJDMX_BJSL =isnull(:XLXSBJDMX_BJSL,0),\r\n"
|
||||
+ "XLXSBJDMX_JGBBJ =isnull(:XLXSBJDMX_JGBBJ,0),\r\n"
|
||||
+ "XLXSBJDMX_CPBJ =isnull(:XLXSBJDMX_CPBJ,0),\r\n"
|
||||
+ "XLXSBJDMX_BJJE =isnull(:XLXSBJDMX_BJJE,0),\r\n"
|
||||
+ "XLXSBJDMX_CLCB =isnull(:XLXSBJDMX_CLCB,0),\r\n"
|
||||
+ "XLXSBJDMX_JGBBJJCL =isnull(:XLXSBJDMX_JGBBJJCL,0),\r\n"
|
||||
+ "XLXSBJDMX_JGBBJJCE =isnull(:XLXSBJDMX_JGBBJJCE,0),\r\n"
|
||||
+ "XLXSBJDMX_BZ =:XLXSBJDMX_BZ,\r\n"
|
||||
+ "XLXSBJDMX_WHRID =:XLXSBJDMX_WHRID,\r\n"
|
||||
+ "XLXSBJDMX_WHR =:XLXSBJDMX_WHR,\r\n"
|
||||
+ "XLXSBJDMX_WHSJ =:XLXSBJDMX_WHSJ \r\n"
|
||||
+ " where XLXSBJDMX_BJDID=:XLXSBJDMX_BJDID and XLXSBJDMX_XH=:XLXSBJDMX_XH",
|
||||
InsertSql = "insert into XLXSBJDMX("
|
||||
+ " XLXSBJDMX_BJDID, XLXSBJDMX_XH, XLXSBJDMX_XLXHID, XLXSBJDMX_XLGGID, XLXSBJDMX_XLBZID,XLXSBJDMX_XLYSID,XLXSBJDMX_BJCP,XLXSBJDMX_JLDW,XLXSBJDMX_BJSL,XLXSBJDMX_JGBBJ,"
|
||||
+ " XLXSBJDMX_CPBJ,XLXSBJDMX_BJJE,XLXSBJDMX_CLCB,XLXSBJDMX_JGBBJJCL,XLXSBJDMX_JGBBJJCE,XLXSBJDMX_BZ ,XLXSBJDMX_DZSC,XLXSBJDMX_WHRID, XLXSBJDMX_WHR ,XLXSBJDMX_WHSJ )"
|
||||
+ " values(:XLXSBJDMX_BJDID, :XLXSBJDMX_XH, :XLXSBJDMX_XLXHID, :XLXSBJDMX_XLGGID, :XLXSBJDMX_XLBZID,:XLXSBJDMX_XLYSID,:XLXSBJDMX_BJCP,:XLXSBJDMX_JLDW,:XLXSBJDMX_BJSL,:XLXSBJDMX_JGBBJ,"
|
||||
+ " :XLXSBJDMX_CPBJ,:XLXSBJDMX_BJJE,:XLXSBJDMX_CLCB,:XLXSBJDMX_JGBBJJCL,:XLXSBJDMX_JGBBJJCE,:XLXSBJDMX_BZ ,:XLXSBJDMX_DZSC,:XLXSBJDMX_WHRID, :XLXSBJDMX_WHR ,:XLXSBJDMX_WHSJ )",
|
||||
DeleteSql = " delete from XLXSBJDMX where XLXSBJDMX_BJDID=:XLXSBJDMX_BJDID and XLXSBJDMX_XH=:XLXSBJDMX_XH")]
|
||||
public class XLBJDMX : EntityManager
|
||||
{
|
||||
private string _XLXSBJDMX_XH;
|
||||
[ColumnMap(DbField = "XLXSBJDMX_XH", CtrlName = "txtXLXSBJDMX_XH", DbTitle = "序号", Type = FieldType.F, DefaultValue = "0",
|
||||
IsAllowNull = false, IsKey = true, Length = 8)]
|
||||
public string XLXSBJDMX_XH
|
||||
{
|
||||
get { return _XLXSBJDMX_XH; }
|
||||
set { _XLXSBJDMX_XH = value; }
|
||||
}
|
||||
|
||||
private string _XLXSBJDMX_XLXHID;
|
||||
[ColumnMap(DbField = "XLXSBJDMX_XLXHID", CtrlName = "txtXLXSBJDMX_XLXHID", DbTitle = "型号", Type = FieldType.C, DefaultValue = "",
|
||||
IsAllowNull = true, IsKey = false, Length = 40)]
|
||||
public string XLXSBJDMX_XLXHID
|
||||
{
|
||||
get { return _XLXSBJDMX_XLXHID; }
|
||||
set { _XLXSBJDMX_XLXHID = value; }
|
||||
}
|
||||
private string _XLXSBJDMX_XLGGID;
|
||||
[ColumnMap(DbField = "XLXSBJDMX_XLGGID", CtrlName = "txtXLXSBJDMX_XLGGID", DbTitle = "规格", Type = FieldType.C, DefaultValue = "",
|
||||
IsAllowNull = true, IsKey = false, Length = 60)]
|
||||
public string XLXSBJDMX_XLGGID
|
||||
{
|
||||
get { return _XLXSBJDMX_XLGGID; }
|
||||
set { _XLXSBJDMX_XLGGID = value; }
|
||||
}
|
||||
private string _XLXSBJDMX_XLBZID;
|
||||
[ColumnMap(DbField = "XLXSBJDMX_XLBZID", CtrlName = "cbxXLXSBJDMX_XLBZID", DbTitle = "标准", Type = FieldType.CBX, DefaultValue = "",
|
||||
IsAllowNull = true, IsKey = false, Length = 10)]
|
||||
public string XLXSBJDMX_XLBZID
|
||||
{
|
||||
get { return _XLXSBJDMX_XLBZID; }
|
||||
set { _XLXSBJDMX_XLBZID = value; }
|
||||
}
|
||||
private string _XLXSBJDMX_XLYSID;
|
||||
[ColumnMap(DbField = "XLXSBJDMX_XLYSID", CtrlName = "cbxXLXSBJDMX_XLYSID", DbTitle = "颜色", Type = FieldType.CBX, DefaultValue = "",
|
||||
IsAllowNull = true, IsKey = false, Length = 10)]
|
||||
public string XLXSBJDMX_XLYSID
|
||||
{
|
||||
get { return _XLXSBJDMX_XLYSID; }
|
||||
set { _XLXSBJDMX_XLYSID = value; }
|
||||
}
|
||||
private string _XLXSBJDMX_BJCP;
|
||||
[ColumnMap(DbField = "XLXSBJDMX_BJCP", CtrlName = "txtXLXSBJDMX_BJCP", DbTitle = "报价产品", Type = FieldType.C, DefaultValue = "",
|
||||
IsAllowNull = true, IsKey = false, Length = 250)]
|
||||
public string XLXSBJDMX_BJCP
|
||||
{
|
||||
get { return _XLXSBJDMX_BJCP; }
|
||||
set { _XLXSBJDMX_BJCP = value; }
|
||||
}
|
||||
private string _XLXSBJDMX_JLDW;
|
||||
[ColumnMap(DbField = "XLXSBJDMX_JLDW", CtrlName = "cbxXLXSBJDMX_JLDW", DbTitle = "计量单位", Type = FieldType.CBX, DefaultValue = "",
|
||||
IsAllowNull = true, IsKey = false, Length = 8)]
|
||||
public string XLXSBJDMX_JLDW
|
||||
{
|
||||
get { return _XLXSBJDMX_JLDW; }
|
||||
set { _XLXSBJDMX_JLDW = value; }
|
||||
}
|
||||
private string _XLXSBJDMX_BJSL;
|
||||
[ColumnMap(DbField = "XLXSBJDMX_BJSL", CtrlName = "txtXLXSBJDMX_BJSL", DbTitle = "报价数量", Type = FieldType.F, DefaultValue = "0",
|
||||
IsAllowNull = true, IsKey = false, Length = 8)]
|
||||
public string XLXSBJDMX_BJSL
|
||||
{
|
||||
get { return _XLXSBJDMX_BJSL; }
|
||||
set { _XLXSBJDMX_BJSL = value; }
|
||||
}
|
||||
//含税基准报价
|
||||
private string _XLXSBJDMX_JGBBJ;
|
||||
[ColumnMap(DbField = "XLXSBJDMX_JGBBJ", CtrlName = "txtXLXSBJDMX_JGBBJ", DbTitle = "价格表表价", Type = FieldType.F, DefaultValue = "0",
|
||||
IsAllowNull = true, IsKey = false, Length = 8)]
|
||||
public string XLXSBJDMX_JGBBJ
|
||||
{
|
||||
get { return _XLXSBJDMX_JGBBJ; }
|
||||
set { _XLXSBJDMX_JGBBJ = value; }
|
||||
}
|
||||
//线缆产品报价
|
||||
private string _XLXSBJDMX_CPBJ;
|
||||
[ColumnMap(DbField = "XLXSBJDMX_CPBJ", CtrlName = "txtXLXSBJDMX_CPBJ", DbTitle = "报价", Type = FieldType.F, DefaultValue = "0",
|
||||
IsAllowNull = true, IsKey = false, Length = 8)]
|
||||
public string XLXSBJDMX_CPBJ
|
||||
{
|
||||
get { return _XLXSBJDMX_CPBJ; }
|
||||
set { _XLXSBJDMX_CPBJ = value; }
|
||||
}
|
||||
private string _XLXSBJDMX_BJJE;
|
||||
[ColumnMap(DbField = "XLXSBJDMX_BJJE", CtrlName = "txtXLXSBJDMX_BJJE", DbTitle = "报价金额", Type = FieldType.F, DefaultValue = "0",
|
||||
IsAllowNull = true, IsKey = false, Length = 8)]
|
||||
public string XLXSBJDMX_BJJE
|
||||
{
|
||||
get { return _XLXSBJDMX_BJJE; }
|
||||
set { _XLXSBJDMX_BJJE = value; }
|
||||
}
|
||||
private string _XLXSBJDMX_CLCB;
|
||||
[ColumnMap(DbField = "XLXSBJDMX_CLCB", CtrlName = "txtXLXSBJDMX_CLCB", DbTitle = "线缆材料成本", Type = FieldType.F, DefaultValue = "0",
|
||||
IsAllowNull = true, IsKey = false, Length = 8)]
|
||||
public string XLXSBJDMX_CLCB
|
||||
{
|
||||
get { return _XLXSBJDMX_CLCB; }
|
||||
set { _XLXSBJDMX_CLCB = value; }
|
||||
}
|
||||
private string _XLXSBJDMX_JGBBJJCL;
|
||||
[ColumnMap(DbField = "XLXSBJDMX_JGBBJJCL", CtrlName = "txtXLXSBJDMX_JGBBJJCL", DbTitle = "价格表表价价差率(%)", Type = FieldType.F, DefaultValue = "0",
|
||||
IsAllowNull = true, IsKey = false, Length = 8)]
|
||||
public string XLXSBJDMX_JGBBJJCL
|
||||
{
|
||||
get { return _XLXSBJDMX_JGBBJJCL; }
|
||||
set { _XLXSBJDMX_JGBBJJCL = value; }
|
||||
}
|
||||
private string _XLXSBJDMX_JGBBJJCE;
|
||||
[ColumnMap(DbField = "XLXSBJDMX_JGBBJJCE", CtrlName = "txtXLXSBJDMX_JGBBJJCE", DbTitle = "价格表表价价差额", Type = FieldType.F, DefaultValue = "0",
|
||||
IsAllowNull = true, IsKey = false, Length = 8)]
|
||||
public string XLXSBJDMX_JGBBJJCE
|
||||
{
|
||||
get { return _XLXSBJDMX_JGBBJJCE; }
|
||||
set { _XLXSBJDMX_JGBBJJCE = value; }
|
||||
}
|
||||
private string _XLXSBJDMX_BZ;
|
||||
[ColumnMap(DbField = "XLXSBJDMX_BZ", CtrlName = "txtXLXSBJDMX_BZ", DbTitle = "备注", Type = FieldType.C, DefaultValue = "",
|
||||
IsAllowNull = true, IsKey = false, Length = 250)]
|
||||
public string XLXSBJDMX_BZ
|
||||
{
|
||||
get { return _XLXSBJDMX_BZ; }
|
||||
set { _XLXSBJDMX_BZ = value; }
|
||||
}
|
||||
private string _XLXSBJDMX_DZSC;
|
||||
[ColumnMap(DbField = "XLXSBJDMX_DZSC", CtrlName = "txtXLXSBJDMX_DZSC", DbTitle = "定制生产", Type = FieldType.C, DefaultValue = "",
|
||||
IsAllowNull = true, IsKey = false, Length = 1)]
|
||||
public string XLXSBJDMX_DZSC
|
||||
{
|
||||
get { return _XLXSBJDMX_DZSC; }
|
||||
set { _XLXSBJDMX_DZSC = value; }
|
||||
}
|
||||
|
||||
private string _XLXSBJDMX_WHR;
|
||||
[ColumnMap(DbField = "XLXSBJDMX_WHR", CtrlName = "txtWHR", DbTitle = "维护人", Type = FieldType.C, DefaultValue = "",
|
||||
IsAllowNull = true, IsKey = false, Length = 30)]
|
||||
public string XLXSBJDMX_WHR
|
||||
{
|
||||
get { return _XLXSBJDMX_WHR; }
|
||||
set { _XLXSBJDMX_WHR = value; }
|
||||
}
|
||||
private string _XLXSBJDMX_WHRID;
|
||||
[ColumnMap(DbField = "XLXSBJDMX_WHRID", CtrlName = "txtWHRID", DbTitle = "维护人工号", Type = FieldType.HiddenField, DefaultValue = "",
|
||||
IsAllowNull = true, IsKey = false, Length = 10)]
|
||||
public string XLXSBJDMX_WHRID
|
||||
{
|
||||
get { return _XLXSBJDMX_WHRID; }
|
||||
set { _XLXSBJDMX_WHRID = value; }
|
||||
}
|
||||
private string _XLXSBJDMX_WHSJ;
|
||||
[ColumnMap(DbField = "XLXSBJDMX_WHSJ", CtrlName = "datWHSJ", DbTitle = "维护时间", Type = FieldType.DT, DefaultValue = "",
|
||||
IsAllowNull = true, IsKey = false, Length = 8)]
|
||||
public string XLXSBJDMX_WHSJ
|
||||
{
|
||||
get { return _XLXSBJDMX_WHSJ; }
|
||||
set { _XLXSBJDMX_WHSJ = value; }
|
||||
}
|
||||
private string _XLXSBJDMX_BJDID;
|
||||
[ColumnMap(DbField = "XLXSBJDMX_BJDID", CtrlName = "txtBJDID", DbTitle = "报价单号", Type = FieldType.HiddenField, DefaultValue = "",
|
||||
IsAllowNull = true, IsKey = false, Length = 20)]
|
||||
public string XLXSBJDMX_BJDID
|
||||
{
|
||||
get { return _XLXSBJDMX_BJDID; }
|
||||
set { _XLXSBJDMX_BJDID = value; }
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,690 @@
|
||||
<%@ Page Language="C#" MasterPageFile="~/N_MODEL/Page/MasterSingleQuery.Master" AutoEventWireup="True"
|
||||
Codebehind="XLBJDQuery.aspx.cs" Inherits="GThinking.U20261363_N_XLXSBJ.XLBJDQuery" Title="查询" %>
|
||||
|
||||
<%@ MasterType VirtualPath="~/N_MODEL/Page/MasterSingleQuery.Master" %>
|
||||
<asp:Content ID="ContentQuery" ContentPlaceHolderID="CPHQuery" runat="server">
|
||||
<asp:Table ID="QueryTalbe" runat="server">
|
||||
<asp:TableRow>
|
||||
<asp:TableCell></asp:TableCell>
|
||||
<asp:TableCell HorizontalAlign="Right" Width="100px" Height="22px">
|
||||
<gtc:gtLabel ID="lblSW" runat="server">事务:</gtc:gtLabel>
|
||||
</asp:TableCell>
|
||||
<asp:TableCell Height="22px">
|
||||
<gtc:gtComboBox ID="cbxSW" Width="120px" DataField="SW" runat="server" AutoPostBack="true" OnSelectedIndexChanged="cbxSW_SelectedIndexChanged">
|
||||
</gtc:gtComboBox>
|
||||
</asp:TableCell>
|
||||
</asp:TableRow>
|
||||
<asp:TableRow>
|
||||
<asp:TableCell></asp:TableCell>
|
||||
<asp:TableCell HorizontalAlign="Right" Width="100px" Height="22px">
|
||||
<gtc:gtLabel ID="GtLabel9" runat="server">待处理人:</gtc:gtLabel>
|
||||
</asp:TableCell>
|
||||
<asp:TableCell Height="22px">
|
||||
<gtc:gtComboBox ID="cbxDCLR" Width="120px" DataField="WFAWAITER" runat="server">
|
||||
</gtc:gtComboBox>
|
||||
</asp:TableCell>
|
||||
</asp:TableRow>
|
||||
<asp:TableRow ID="TableRow4" runat="server">
|
||||
<asp:TableCell ID="TableCell10" runat="server"></asp:TableCell>
|
||||
<asp:TableCell ID="TableCell11" HorizontalAlign="Right" Width="100px" Height="22px"
|
||||
runat="server">
|
||||
<gtc:gtLabel ID="GtLabel10" runat="server">流程状态:</gtc:gtLabel></asp:TableCell>
|
||||
<asp:TableCell ID="TableCell12" Height="22px" runat="server">
|
||||
<gtc:gtCheckedDropDownList ID="cbxWFState" runat="server" DataField="STATE" Width="120px"
|
||||
Height="20px">
|
||||
</gtc:gtCheckedDropDownList>
|
||||
</asp:TableCell>
|
||||
</asp:TableRow>
|
||||
<asp:TableRow>
|
||||
<asp:TableCell></asp:TableCell>
|
||||
<asp:TableCell HorizontalAlign="Right" Width="100px" Height="22px">
|
||||
<gtc:gtLabel ID="GtLabel11" runat="server">报价分类:</gtc:gtLabel>
|
||||
</asp:TableCell>
|
||||
<asp:TableCell Height="22px">
|
||||
<gtc:gtComboBox ID="cbxBJFLID" runat="server" DataField="BJFLID" Width="150px">
|
||||
</gtc:gtComboBox>
|
||||
</asp:TableCell>
|
||||
</asp:TableRow>
|
||||
<asp:TableRow>
|
||||
<asp:TableCell></asp:TableCell>
|
||||
<asp:TableCell HorizontalAlign="Right" Width="100px" Height="22px">
|
||||
<gtc:gtLabel ID="GtLabel3" runat="server">报价单号:</gtc:gtLabel>
|
||||
</asp:TableCell>
|
||||
<asp:TableCell Height="22px">
|
||||
<gtc:gtTextBox ID="txtBJDID" runat="server" DataField="BJDID" Width="116px" CharCase="ecUpperCase"
|
||||
Tag="Percent"></gtc:gtTextBox>
|
||||
</asp:TableCell>
|
||||
</asp:TableRow>
|
||||
<asp:TableRow>
|
||||
<asp:TableCell></asp:TableCell>
|
||||
<asp:TableCell HorizontalAlign="Right" Width="100px" Height="22px">
|
||||
<gtc:gtLabel ID="GtLabel1" runat="server">报价日期始:</gtc:gtLabel>
|
||||
</asp:TableCell>
|
||||
<asp:TableCell Height="22px">
|
||||
<gtc:gtDateTimeTextBox ID="datBJRQS" runat="server" DataField="BJRQS" EnableRelevant="true"
|
||||
RelevantControl="datBJRQZ"></gtc:gtDateTimeTextBox>
|
||||
</asp:TableCell>
|
||||
</asp:TableRow>
|
||||
<asp:TableRow>
|
||||
<asp:TableCell></asp:TableCell>
|
||||
<asp:TableCell HorizontalAlign="Right" Width="100px" Height="22px">
|
||||
<gtc:gtLabel ID="GtLabel2" runat="server">报价日期止:</gtc:gtLabel>
|
||||
</asp:TableCell>
|
||||
<asp:TableCell Height="22px">
|
||||
<gtc:gtDateTimeTextBox ID="datBJRQZ" runat="server" DataField="BJRQZ" EnableRelevant="true"></gtc:gtDateTimeTextBox>
|
||||
</asp:TableCell>
|
||||
</asp:TableRow>
|
||||
<asp:TableRow>
|
||||
<asp:TableCell></asp:TableCell>
|
||||
<asp:TableCell HorizontalAlign="Right" Width="100px" Height="22px">
|
||||
<gtc:gtLabel ID="GtLabel22" runat="server">申请人:</gtc:gtLabel>
|
||||
</asp:TableCell>
|
||||
<asp:TableCell Height="22px">
|
||||
<gtc:gtCheckedDropDownList ID="cbxSQR" runat="server" DataField="SQRGH" Width="116px" ShowValue="false">
|
||||
</gtc:gtCheckedDropDownList>
|
||||
</asp:TableCell>
|
||||
</asp:TableRow>
|
||||
<asp:TableRow>
|
||||
<asp:TableCell></asp:TableCell>
|
||||
<asp:TableCell HorizontalAlign="Right" Width="100px" Height="22px">
|
||||
<gtc:gtLabel ID="GtLabel7" runat="server">销售单位:</gtc:gtLabel>
|
||||
</asp:TableCell>
|
||||
<asp:TableCell Height="22px">
|
||||
<gtc:gtTextBox ID="txtXHDW" runat="server" DataField="XHDW" Width="116px" Tag="Percent"></gtc:gtTextBox>
|
||||
</asp:TableCell>
|
||||
</asp:TableRow>
|
||||
<asp:TableRow>
|
||||
<asp:TableCell></asp:TableCell>
|
||||
<asp:TableCell HorizontalAlign="Right" Width="100px" Height="22px">
|
||||
<gtc:gtLabel ID="GtLabel12" runat="server">销售部门:</gtc:gtLabel>
|
||||
</asp:TableCell>
|
||||
<asp:TableCell Height="22px">
|
||||
<gtc:gtCheckedDropDownList ID="cbxXSBM" DataField="XSBM" runat="server" Width="150px">
|
||||
</gtc:gtCheckedDropDownList>
|
||||
</asp:TableCell>
|
||||
</asp:TableRow>
|
||||
<asp:TableRow>
|
||||
<asp:TableCell></asp:TableCell>
|
||||
<asp:TableCell HorizontalAlign="Right" Width="100px" Height="22px">
|
||||
<gtc:gtLabel ID="GtLabel5" runat="server">销售员:</gtc:gtLabel>
|
||||
</asp:TableCell>
|
||||
<asp:TableCell Height="22px">
|
||||
<gtc:gtComboBox ID="cbxTXY" runat="server" DataField="TXY" Width="116px" Tag="None"
|
||||
ShowValue="false">
|
||||
</gtc:gtComboBox>
|
||||
</asp:TableCell>
|
||||
</asp:TableRow>
|
||||
<asp:TableRow>
|
||||
<asp:TableCell></asp:TableCell>
|
||||
<asp:TableCell HorizontalAlign="Right" Width="100px" Height="22px">
|
||||
<gtc:gtLabel ID="GtLabel6" runat="server">客户:</gtc:gtLabel>
|
||||
</asp:TableCell>
|
||||
<asp:TableCell Height="22px">
|
||||
<gtc:gtTextBox ID="txtKH" runat="server" DataField="KH" Width="116px" Tag="Percent"></gtc:gtTextBox>
|
||||
</asp:TableCell>
|
||||
</asp:TableRow>
|
||||
<asp:TableRow>
|
||||
<asp:TableCell></asp:TableCell>
|
||||
<asp:TableCell HorizontalAlign="Right" Width="100px" Height="22px">
|
||||
<gtc:gtLabel ID="GtLabel8" runat="server">项目:</gtc:gtLabel>
|
||||
</asp:TableCell>
|
||||
<asp:TableCell Height="22px">
|
||||
<gtc:gtTextBox ID="txtXM" runat="server" DataField="XM" Width="116px" Tag="Percent"></gtc:gtTextBox>
|
||||
</asp:TableCell>
|
||||
</asp:TableRow>
|
||||
<asp:TableRow>
|
||||
<asp:TableCell></asp:TableCell>
|
||||
<asp:TableCell HorizontalAlign="Right" Height="23px">
|
||||
<gtc:gtLabel ID="GtLabel25" runat="server">报价总金额始:</gtc:gtLabel>
|
||||
</asp:TableCell>
|
||||
<asp:TableCell Height="23px">
|
||||
<gtc:gtNumTextBox ID="txtBJZJES" runat="server" Width="72px" DataField="BJZJES" DecimalPlaces="2"></gtc:gtNumTextBox>
|
||||
</asp:TableCell>
|
||||
</asp:TableRow>
|
||||
<asp:TableRow>
|
||||
<asp:TableCell></asp:TableCell>
|
||||
<asp:TableCell HorizontalAlign="Right" Height="23px">
|
||||
<gtc:gtLabel ID="GtLabel26" runat="server">报价总金额止:</gtc:gtLabel>
|
||||
</asp:TableCell>
|
||||
<asp:TableCell Height="23px">
|
||||
<gtc:gtNumTextBox ID="txtBJZJEZ" runat="server" Width="72px" DataField="BJZJEZ" DecimalPlaces="2"></gtc:gtNumTextBox>
|
||||
</asp:TableCell>
|
||||
</asp:TableRow>
|
||||
<asp:TableRow>
|
||||
<asp:TableCell></asp:TableCell>
|
||||
<asp:TableCell HorizontalAlign="Right" Width="100px" Height="22px">
|
||||
<gtc:gtLabel ID="GtLabel4" runat="server">排序方式:</gtc:gtLabel>
|
||||
</asp:TableCell>
|
||||
<asp:TableCell Height="22px">
|
||||
<gtc:gtComboBox ID="cbxPXFS" runat="server" DataField="PXFS" Width="150px" ShowValue="false">
|
||||
</gtc:gtComboBox>
|
||||
</asp:TableCell>
|
||||
</asp:TableRow>
|
||||
<asp:TableRow>
|
||||
<asp:TableCell></asp:TableCell>
|
||||
<asp:TableCell HorizontalAlign="Right" Width="100px" Height="22px">
|
||||
<gtc:gtLabel ID="GtLabel13" runat="server">报价备注:</gtc:gtLabel>
|
||||
</asp:TableCell>
|
||||
<asp:TableCell Height="22px">
|
||||
<gtc:gtTextBox ID="txtBJBZ" runat="server" DataField="BJBZ" Width="150px" Tag="Percent"></gtc:gtTextBox>
|
||||
</asp:TableCell>
|
||||
</asp:TableRow>
|
||||
<asp:TableRow>
|
||||
<asp:TableCell></asp:TableCell>
|
||||
<asp:TableCell HorizontalAlign="Right" Width="100px" Height="22px">
|
||||
<gtc:gtLabel ID="GtLabel17" runat="server">维护时间始:</gtc:gtLabel>
|
||||
</asp:TableCell>
|
||||
<asp:TableCell Height="22px">
|
||||
<gtc:gtDateTime ID="dtWHSJS" runat="server" DataField="WHSJS" EnableRelevant="true"
|
||||
RelevantControl="dtWHSJZ"></gtc:gtDateTime>
|
||||
</asp:TableCell>
|
||||
</asp:TableRow>
|
||||
<asp:TableRow>
|
||||
<asp:TableCell></asp:TableCell>
|
||||
<asp:TableCell HorizontalAlign="Right" Width="100px" Height="22px">
|
||||
<gtc:gtLabel ID="GtLabel18" runat="server">维护时间止:</gtc:gtLabel>
|
||||
</asp:TableCell>
|
||||
<asp:TableCell Height="22px">
|
||||
<gtc:gtDateTime ID="dtWHSJZ" runat="server" DataField="WHSJZ" EnableRelevant="true"></gtc:gtDateTime>
|
||||
</asp:TableCell>
|
||||
</asp:TableRow>
|
||||
<asp:TableRow>
|
||||
<asp:TableCell></asp:TableCell>
|
||||
<asp:TableCell HorizontalAlign="Right" Width="100px" Height="22px">
|
||||
<gtc:gtLabel ID="GtLabel14" runat="server">反馈日期始:</gtc:gtLabel>
|
||||
</asp:TableCell>
|
||||
<asp:TableCell Height="22px">
|
||||
<gtc:gtDateTimeTextBox ID="datFKRQS" runat="server" DataField="FKRQS" EnableRelevant="true"
|
||||
RelevantControl="datFKRQZ"></gtc:gtDateTimeTextBox>
|
||||
</asp:TableCell>
|
||||
</asp:TableRow>
|
||||
<asp:TableRow>
|
||||
<asp:TableCell></asp:TableCell>
|
||||
<asp:TableCell HorizontalAlign="Right" Width="100px" Height="22px">
|
||||
<gtc:gtLabel ID="GtLabel15" runat="server">反馈日期止:</gtc:gtLabel>
|
||||
</asp:TableCell>
|
||||
<asp:TableCell Height="22px">
|
||||
<gtc:gtDateTimeTextBox ID="datFKRQZ" runat="server" DataField="FKRQZ" EnableRelevant="true"></gtc:gtDateTimeTextBox>
|
||||
</asp:TableCell>
|
||||
</asp:TableRow>
|
||||
<asp:TableRow>
|
||||
<asp:TableCell></asp:TableCell>
|
||||
<asp:TableCell HorizontalAlign="Right" Width="100px" Height="22px">
|
||||
<gtc:gtLabel ID="GtLabel16" runat="server">反馈结果:</gtc:gtLabel>
|
||||
</asp:TableCell>
|
||||
<asp:TableCell Height="22px">
|
||||
<gtc:gtCheckedDropDownList ID="cbxFKJG" runat="server" DataField="FKJG" Width="72px" ShowValue="false">
|
||||
</gtc:gtCheckedDropDownList>
|
||||
</asp:TableCell>
|
||||
</asp:TableRow>
|
||||
<asp:TableRow>
|
||||
<asp:TableCell></asp:TableCell>
|
||||
<asp:TableCell HorizontalAlign="Right" Width="100px" Height="22px">
|
||||
<gtc:gtLabel ID="lblKHDH" runat="server">客户单号:</gtc:gtLabel>
|
||||
</asp:TableCell>
|
||||
<asp:TableCell Height="22px">
|
||||
<gtc:gtTextBox ID="txtKHDH" runat="server" DataField="KHDH" Width="116px" Tag="Percent">
|
||||
</gtc:gtTextBox>
|
||||
</asp:TableCell>
|
||||
</asp:TableRow>
|
||||
<asp:TableRow>
|
||||
<asp:TableCell></asp:TableCell>
|
||||
<asp:TableCell HorizontalAlign="Right" Width="120px" Height="22px">
|
||||
<gtc:gtLabel ID="lblZCJH" runat="server">主材计划生成情况:</gtc:gtLabel>
|
||||
</asp:TableCell>
|
||||
<asp:TableCell Height="22px">
|
||||
<gtc:gtComboBox ID="cbxZCJH" runat="server" DataField="ZCJHSCQK" Width="150px" ShowValue="false">
|
||||
</gtc:gtComboBox>
|
||||
</asp:TableCell>
|
||||
</asp:TableRow>
|
||||
|
||||
<asp:TableRow>
|
||||
<asp:TableCell></asp:TableCell>
|
||||
<asp:TableCell HorizontalAlign="Right" Width="100px" Height="22px">
|
||||
</asp:TableCell>
|
||||
<asp:TableCell Height="22px">
|
||||
<gtc:gtCheckBox ID="chkZDFXYQR" DataField="ZDFXYQR" runat="server" Width="120px"
|
||||
Text="撞单分析已确认" ></gtc:gtCheckBox>
|
||||
</asp:TableCell>
|
||||
</asp:TableRow>
|
||||
<asp:TableRow>
|
||||
<asp:TableCell></asp:TableCell>
|
||||
<asp:TableCell HorizontalAlign="Right" Width="100px" Height="22px">
|
||||
</asp:TableCell>
|
||||
<asp:TableCell Height="22px">
|
||||
<gtc:gtCheckBox ID="chkJCFZCS" DataField="JCFZCS" runat="server" Width="120px"
|
||||
Text="仅查复制记录" ></gtc:gtCheckBox>
|
||||
</asp:TableCell>
|
||||
</asp:TableRow>
|
||||
<asp:TableRow ID="KZSZ01" runat="server" Visible="false">
|
||||
<asp:TableCell ID="TableCell7" runat="server"></asp:TableCell>
|
||||
<asp:TableCell ID="TableCell8" HorizontalAlign="Right" Width="100px" Height="22px"
|
||||
runat="server">
|
||||
<gtc:gtLabel ID="lblKZSZ01" runat="server">扩展数值01:</gtc:gtLabel>
|
||||
</asp:TableCell>
|
||||
<asp:TableCell ID="TableCell9" Height="22px" runat="server">
|
||||
<gtc:gtNumTextBox ID="txtKZSZ01" runat="server" DecimalPlaces="2" DataField="KZSZ01"
|
||||
Width="80px"></gtc:gtNumTextBox>
|
||||
</asp:TableCell>
|
||||
</asp:TableRow>
|
||||
<asp:TableRow ID="KZSZ02" runat="server" Visible="false">
|
||||
<asp:TableCell ID="TableCell22" runat="server"></asp:TableCell>
|
||||
<asp:TableCell ID="TableCell23" HorizontalAlign="Right" Width="100px" Height="22px"
|
||||
runat="server">
|
||||
<gtc:gtLabel ID="lblKZSZ02" runat="server">扩展数值02:</gtc:gtLabel>
|
||||
</asp:TableCell>
|
||||
<asp:TableCell ID="TableCell24" Height="22px" runat="server">
|
||||
<gtc:gtNumTextBox ID="txtKZSZ02" runat="server" DecimalPlaces="2" DataField="KZSZ02"
|
||||
Width="80px"></gtc:gtNumTextBox>
|
||||
</asp:TableCell>
|
||||
</asp:TableRow>
|
||||
<asp:TableRow ID="KZSZ03" runat="server" Visible="false">
|
||||
<asp:TableCell ID="TableCell28" runat="server"></asp:TableCell>
|
||||
<asp:TableCell ID="TableCell31" HorizontalAlign="Right" Width="100px" Height="22px"
|
||||
runat="server">
|
||||
<gtc:gtLabel ID="lblKZSZ03" runat="server">扩展数值03:</gtc:gtLabel>
|
||||
</asp:TableCell>
|
||||
<asp:TableCell ID="TableCell32" Height="22px" runat="server">
|
||||
<gtc:gtNumTextBox ID="txtKZSZ03" runat="server" DecimalPlaces="2" DataField="KZSZ03"
|
||||
Width="80px"></gtc:gtNumTextBox>
|
||||
</asp:TableCell>
|
||||
</asp:TableRow>
|
||||
<asp:TableRow ID="KZSZ04" runat="server" Visible="false">
|
||||
<asp:TableCell ID="TableCell33" runat="server"></asp:TableCell>
|
||||
<asp:TableCell ID="TableCell34" HorizontalAlign="Right" Width="100px" Height="22px"
|
||||
runat="server">
|
||||
<gtc:gtLabel ID="lblKZSZ04" runat="server">扩展数值04:</gtc:gtLabel>
|
||||
</asp:TableCell>
|
||||
<asp:TableCell ID="TableCell35" Height="22px" runat="server">
|
||||
<gtc:gtNumTextBox ID="txtKZSZ04" runat="server" DecimalPlaces="2" DataField="KZSZ04"
|
||||
Width="80px"></gtc:gtNumTextBox>
|
||||
</asp:TableCell>
|
||||
</asp:TableRow>
|
||||
<asp:TableRow ID="KZSZ05" runat="server" Visible="false">
|
||||
<asp:TableCell ID="TableCell36" runat="server"></asp:TableCell>
|
||||
<asp:TableCell ID="TableCell37" HorizontalAlign="Right" Width="100px" Height="22px"
|
||||
runat="server">
|
||||
<gtc:gtLabel ID="lblKZSZ05" runat="server">扩展数值05:</gtc:gtLabel>
|
||||
</asp:TableCell>
|
||||
<asp:TableCell ID="TableCell38" Height="22px" runat="server">
|
||||
<gtc:gtNumTextBox ID="txtKZSZ05" runat="server" DecimalPlaces="2" DataField="KZSZ05"
|
||||
Width="80px"></gtc:gtNumTextBox>
|
||||
</asp:TableCell>
|
||||
</asp:TableRow>
|
||||
<asp:TableRow ID="KZZF011" runat="server" Visible="false">
|
||||
<asp:TableCell ID="TableCell54" runat="server"></asp:TableCell>
|
||||
<asp:TableCell ID="TableCell55" HorizontalAlign="Right" Width="100px" Height="22px"
|
||||
runat="server">
|
||||
<gtc:gtLabel ID="lblKZZF011" runat="server">扩展字符01:</gtc:gtLabel>
|
||||
</asp:TableCell>
|
||||
<asp:TableCell ID="TableCell56" Height="22px" runat="server">
|
||||
<gtc:gtTextBox ID="txtKZZF01" runat="server" Tag="Percent" Width="138px" DataField="KZZF011"></gtc:gtTextBox>
|
||||
</asp:TableCell>
|
||||
</asp:TableRow>
|
||||
<asp:TableRow ID="KZZF012" runat="server" Visible="false">
|
||||
<asp:TableCell ID="TableCell138" runat="server"></asp:TableCell>
|
||||
<asp:TableCell ID="TableCell139" HorizontalAlign="Right" Width="100px" Height="22px"
|
||||
runat="server">
|
||||
<gtc:gtLabel ID="lblKZZF012" runat="server">扩展字符01:</gtc:gtLabel>
|
||||
</asp:TableCell>
|
||||
<asp:TableCell ID="TableCell140" Height="22px" runat="server">
|
||||
<gtc:gtComboBox ID="cbxKZZF01" runat="server" Width="142px" DataField="KZZF012">
|
||||
</gtc:gtComboBox>
|
||||
</asp:TableCell>
|
||||
</asp:TableRow>
|
||||
<asp:TableRow ID="KZZF021" runat="server" Visible="false">
|
||||
<asp:TableCell ID="TableCell57" runat="server"></asp:TableCell>
|
||||
<asp:TableCell ID="TableCell58" HorizontalAlign="Right" Width="100px" Height="22px"
|
||||
runat="server">
|
||||
<gtc:gtLabel ID="lblKZZF021" runat="server">扩展字符02:</gtc:gtLabel>
|
||||
</asp:TableCell>
|
||||
<asp:TableCell ID="TableCell59" Height="22px" runat="server">
|
||||
<gtc:gtTextBox ID="txtKZZF02" runat="server" Tag="Percent" Width="138px" DataField="KZZF021"></gtc:gtTextBox>
|
||||
</asp:TableCell>
|
||||
</asp:TableRow>
|
||||
<asp:TableRow ID="KZZF022" runat="server" Visible="false">
|
||||
<asp:TableCell ID="TableCell141" runat="server"></asp:TableCell>
|
||||
<asp:TableCell ID="TableCell142" HorizontalAlign="Right" Width="100px" Height="22px"
|
||||
runat="server">
|
||||
<gtc:gtLabel ID="lblKZZF022" runat="server">扩展字符02:</gtc:gtLabel>
|
||||
</asp:TableCell>
|
||||
<asp:TableCell ID="TableCell143" Height="22px" runat="server">
|
||||
<gtc:gtComboBox ID="cbxKZZF02" runat="server" Width="142px" DataField="KZZF022">
|
||||
</gtc:gtComboBox>
|
||||
</asp:TableCell>
|
||||
</asp:TableRow>
|
||||
<asp:TableRow ID="KZZF031" runat="server" Visible="false">
|
||||
<asp:TableCell ID="TableCell60" runat="server"></asp:TableCell>
|
||||
<asp:TableCell ID="TableCell61" HorizontalAlign="Right" Width="100px" Height="22px"
|
||||
runat="server">
|
||||
<gtc:gtLabel ID="lblKZZF031" runat="server">扩展字符03:</gtc:gtLabel>
|
||||
</asp:TableCell>
|
||||
<asp:TableCell ID="TableCell62" Height="22px" runat="server">
|
||||
<gtc:gtTextBox ID="txtKZZF03" runat="server" Tag="Percent" Width="138px" DataField="KZZF031"></gtc:gtTextBox>
|
||||
</asp:TableCell>
|
||||
</asp:TableRow>
|
||||
<asp:TableRow ID="KZZF032" runat="server" Visible="false">
|
||||
<asp:TableCell ID="TableCell144" runat="server"></asp:TableCell>
|
||||
<asp:TableCell ID="TableCell145" HorizontalAlign="Right" Width="100px" Height="22px"
|
||||
runat="server">
|
||||
<gtc:gtLabel ID="lblKZZF032" runat="server">扩展字符03:</gtc:gtLabel>
|
||||
</asp:TableCell>
|
||||
<asp:TableCell ID="TableCell146" Height="22px" runat="server">
|
||||
<gtc:gtComboBox ID="cbxKZZF03" runat="server" Width="142px" DataField="KZZF032">
|
||||
</gtc:gtComboBox>
|
||||
</asp:TableCell>
|
||||
</asp:TableRow>
|
||||
<asp:TableRow ID="KZZF041" runat="server" Visible="false">
|
||||
<asp:TableCell ID="TableCell63" runat="server"></asp:TableCell>
|
||||
<asp:TableCell ID="TableCell64" HorizontalAlign="Right" Width="100px" Height="22px"
|
||||
runat="server">
|
||||
<gtc:gtLabel ID="lblKZZF041" runat="server">扩展字符04:</gtc:gtLabel>
|
||||
</asp:TableCell>
|
||||
<asp:TableCell ID="TableCell65" Height="22px" runat="server">
|
||||
<gtc:gtTextBox ID="txtKZZF04" runat="server" Tag="Percent" Width="138px" DataField="KZZF041"></gtc:gtTextBox>
|
||||
</asp:TableCell>
|
||||
</asp:TableRow>
|
||||
<asp:TableRow ID="KZZF042" runat="server" Visible="false">
|
||||
<asp:TableCell ID="TableCell147" runat="server"></asp:TableCell>
|
||||
<asp:TableCell ID="TableCell148" HorizontalAlign="Right" Width="100px" Height="22px"
|
||||
runat="server">
|
||||
<gtc:gtLabel ID="lblKZZF042" runat="server">扩展字符04:</gtc:gtLabel>
|
||||
</asp:TableCell>
|
||||
<asp:TableCell ID="TableCell149" Height="22px" runat="server">
|
||||
<gtc:gtComboBox ID="cbxKZZF04" runat="server" Width="142px" DataField="KZZF042">
|
||||
</gtc:gtComboBox>
|
||||
</asp:TableCell>
|
||||
</asp:TableRow>
|
||||
<asp:TableRow ID="KZZF051" runat="server" Visible="false">
|
||||
<asp:TableCell ID="TableCell66" runat="server"></asp:TableCell>
|
||||
<asp:TableCell ID="TableCell67" HorizontalAlign="Right" Width="100px" Height="22px"
|
||||
runat="server">
|
||||
<gtc:gtLabel ID="lblKZZF051" runat="server">扩展字符05:</gtc:gtLabel>
|
||||
</asp:TableCell>
|
||||
<asp:TableCell ID="TableCell68" Height="22px" runat="server">
|
||||
<gtc:gtTextBox ID="txtKZZF05" runat="server" Tag="Percent" Width="138px" DataField="KZZF051"></gtc:gtTextBox>
|
||||
</asp:TableCell>
|
||||
</asp:TableRow>
|
||||
<asp:TableRow ID="KZZF052" runat="server" Visible="false">
|
||||
<asp:TableCell ID="TableCell150" runat="server"></asp:TableCell>
|
||||
<asp:TableCell ID="TableCell151" HorizontalAlign="Right" Width="100px" Height="22px"
|
||||
runat="server">
|
||||
<gtc:gtLabel ID="lblKZZF052" runat="server">扩展字符05:</gtc:gtLabel>
|
||||
</asp:TableCell>
|
||||
<asp:TableCell ID="TableCell152" Height="22px" runat="server">
|
||||
<gtc:gtComboBox ID="cbxKZZF05" runat="server" Width="142px" DataField="KZZF052">
|
||||
</gtc:gtComboBox>
|
||||
</asp:TableCell>
|
||||
</asp:TableRow>
|
||||
<asp:TableRow ID="KZZF061" runat="server" Visible="false">
|
||||
<asp:TableCell ID="TableCell69" runat="server"></asp:TableCell>
|
||||
<asp:TableCell ID="TableCell70" HorizontalAlign="Right" Width="100px" Height="22px"
|
||||
runat="server">
|
||||
<gtc:gtLabel ID="lblKZZF061" runat="server">扩展字符06:</gtc:gtLabel>
|
||||
</asp:TableCell>
|
||||
<asp:TableCell ID="TableCell71" Height="22px" runat="server">
|
||||
<gtc:gtTextBox ID="txtKZZF06" runat="server" Tag="Percent" Width="138px" DataField="KZZF061"></gtc:gtTextBox>
|
||||
</asp:TableCell>
|
||||
</asp:TableRow>
|
||||
<asp:TableRow ID="KZZF062" runat="server" Visible="false">
|
||||
<asp:TableCell ID="TableCell153" runat="server"></asp:TableCell>
|
||||
<asp:TableCell ID="TableCell154" HorizontalAlign="Right" Width="100px" Height="22px"
|
||||
runat="server">
|
||||
<gtc:gtLabel ID="lblKZZF062" runat="server">扩展字符06:</gtc:gtLabel>
|
||||
</asp:TableCell>
|
||||
<asp:TableCell ID="TableCell155" Height="22px" runat="server">
|
||||
<gtc:gtComboBox ID="cbxKZZF06" runat="server" Width="142px" DataField="KZZF062">
|
||||
</gtc:gtComboBox>
|
||||
</asp:TableCell>
|
||||
</asp:TableRow>
|
||||
<asp:TableRow ID="KZZF071" runat="server" Visible="false">
|
||||
<asp:TableCell ID="TableCell272" runat="server"></asp:TableCell>
|
||||
<asp:TableCell ID="TableCell273" HorizontalAlign="Right" Width="100px" Height="22px"
|
||||
runat="server">
|
||||
<gtc:gtLabel ID="lblKZZF071" runat="server">扩展字符07:</gtc:gtLabel>
|
||||
</asp:TableCell>
|
||||
<asp:TableCell ID="TableCell274" Height="22px" runat="server">
|
||||
<gtc:gtTextBox ID="txtKZZF07" runat="server" Tag="Percent" Width="138px" DataField="KZZF071"></gtc:gtTextBox>
|
||||
</asp:TableCell>
|
||||
</asp:TableRow>
|
||||
<asp:TableRow ID="KZZF072" runat="server" Visible="false">
|
||||
<asp:TableCell ID="TableCell156" runat="server"></asp:TableCell>
|
||||
<asp:TableCell ID="TableCell157" HorizontalAlign="Right" Width="100px" Height="22px"
|
||||
runat="server">
|
||||
<gtc:gtLabel ID="lblKZZF072" runat="server">扩展字符07:</gtc:gtLabel>
|
||||
</asp:TableCell>
|
||||
<asp:TableCell ID="TableCell158" Height="22px" runat="server">
|
||||
<gtc:gtComboBox ID="cbxKZZF07" runat="server" Width="142px" DataField="KZZF072">
|
||||
</gtc:gtComboBox>
|
||||
</asp:TableCell>
|
||||
</asp:TableRow>
|
||||
<asp:TableRow ID="KZZF081" runat="server" Visible="false">
|
||||
<asp:TableCell ID="TableCell180" runat="server"></asp:TableCell>
|
||||
<asp:TableCell ID="TableCell181" HorizontalAlign="Right" Width="100px" Height="22px"
|
||||
runat="server">
|
||||
<gtc:gtLabel ID="lblKZZF081" runat="server">扩展字符08:</gtc:gtLabel>
|
||||
</asp:TableCell>
|
||||
<asp:TableCell ID="TableCell271" Height="22px" runat="server">
|
||||
<gtc:gtTextBox ID="txtKZZF08" runat="server" Tag="Percent" Width="138px" DataField="KZZF081"></gtc:gtTextBox>
|
||||
</asp:TableCell>
|
||||
</asp:TableRow>
|
||||
<asp:TableRow ID="KZZF082" runat="server" Visible="false">
|
||||
<asp:TableCell ID="TableCell159" runat="server"></asp:TableCell>
|
||||
<asp:TableCell ID="TableCell160" HorizontalAlign="Right" Width="100px" Height="22px"
|
||||
runat="server">
|
||||
<gtc:gtLabel ID="lblKZZF082" runat="server">扩展字符08:</gtc:gtLabel>
|
||||
</asp:TableCell>
|
||||
<asp:TableCell ID="TableCell161" Height="22px" runat="server">
|
||||
<gtc:gtComboBox ID="cbxKZZF08" runat="server" Width="142px" DataField="KZZF082">
|
||||
</gtc:gtComboBox>
|
||||
</asp:TableCell>
|
||||
</asp:TableRow>
|
||||
<asp:TableRow ID="KZZF091" runat="server" Visible="false">
|
||||
<asp:TableCell ID="TableCell72" runat="server"></asp:TableCell>
|
||||
<asp:TableCell ID="TableCell73" HorizontalAlign="Right" Width="100px" Height="22px"
|
||||
runat="server">
|
||||
<gtc:gtLabel ID="lblKZZF091" runat="server">扩展字符09:</gtc:gtLabel>
|
||||
</asp:TableCell>
|
||||
<asp:TableCell ID="TableCell74" Height="22px" runat="server">
|
||||
<gtc:gtTextBox ID="txtKZZF09" runat="server" Tag="Percent" Width="138px" DataField="KZZF091"></gtc:gtTextBox>
|
||||
|
||||
</asp:TableCell>
|
||||
</asp:TableRow>
|
||||
<asp:TableRow ID="KZZF092" runat="server" Visible="false">
|
||||
<asp:TableCell ID="TableCell162" runat="server"></asp:TableCell>
|
||||
<asp:TableCell ID="TableCell163" HorizontalAlign="Right" Width="100px" Height="22px"
|
||||
runat="server">
|
||||
<gtc:gtLabel ID="lblKZZF092" runat="server">扩展字符09:</gtc:gtLabel>
|
||||
</asp:TableCell>
|
||||
<asp:TableCell ID="TableCell164" Height="22px" runat="server">
|
||||
<gtc:gtComboBox ID="cbxKZZF09" runat="server" Width="142px" DataField="KZZF092">
|
||||
</gtc:gtComboBox>
|
||||
</asp:TableCell>
|
||||
</asp:TableRow>
|
||||
<asp:TableRow ID="KZZF101" runat="server" Visible="false">
|
||||
<asp:TableCell ID="TableCell75" runat="server"></asp:TableCell>
|
||||
<asp:TableCell ID="TableCell76" HorizontalAlign="Right" Width="100px" Height="22px"
|
||||
runat="server">
|
||||
<gtc:gtLabel ID="lblKZZF101" runat="server">扩展字符10:</gtc:gtLabel>
|
||||
</asp:TableCell>
|
||||
<asp:TableCell ID="TableCell77" Height="22px" runat="server">
|
||||
<gtc:gtTextBox ID="txtKZZF10" runat="server" Tag="Percent" Width="138px" DataField="KZZF101"></gtc:gtTextBox>
|
||||
</asp:TableCell>
|
||||
</asp:TableRow>
|
||||
<asp:TableRow ID="KZZF102" runat="server" Visible="false">
|
||||
<asp:TableCell ID="TableCell165" runat="server"></asp:TableCell>
|
||||
<asp:TableCell ID="TableCell166" HorizontalAlign="Right" Width="100px" Height="22px"
|
||||
runat="server">
|
||||
<gtc:gtLabel ID="lblKZZF102" runat="server">扩展字符10:</gtc:gtLabel>
|
||||
</asp:TableCell>
|
||||
<asp:TableCell ID="TableCell167" Height="22px" runat="server">
|
||||
<gtc:gtComboBox ID="cbxKZZF10" runat="server" Width="142px" DataField="KZZF102">
|
||||
</gtc:gtComboBox>
|
||||
</asp:TableCell>
|
||||
</asp:TableRow>
|
||||
<asp:TableRow ID="KZRQ01S" runat="server" Visible="false">
|
||||
<asp:TableCell ID="TableCell78" runat="server"></asp:TableCell>
|
||||
<asp:TableCell ID="TableCell79" HorizontalAlign="Right" Width="100px" Height="22px"
|
||||
runat="server">
|
||||
<gtc:gtLabel ID="lblKZRQ01S" runat="server">扩展日期01始:</gtc:gtLabel>
|
||||
</asp:TableCell>
|
||||
<asp:TableCell ID="TableCell80" Height="22px" runat="server">
|
||||
<gtc:gtDateTimeTextBox ID="datKZRQ01S" DataField="KZRQ01S" runat="server" Width="72px"
|
||||
EnableRelevant="true" RelevantControl="datKZRQ01Z"></gtc:gtDateTimeTextBox>
|
||||
</asp:TableCell>
|
||||
</asp:TableRow>
|
||||
<asp:TableRow ID="KZRQ01Z" runat="server" Visible="false">
|
||||
<asp:TableCell ID="TableCell81" runat="server"></asp:TableCell>
|
||||
<asp:TableCell ID="TableCell82" HorizontalAlign="Right" Width="100px" Height="22px"
|
||||
runat="server">
|
||||
<gtc:gtLabel ID="lblKZRQ01Z" runat="server">扩展日期01止:</gtc:gtLabel>
|
||||
</asp:TableCell>
|
||||
<asp:TableCell ID="TableCell83" Height="22px" runat="server">
|
||||
<gtc:gtDateTimeTextBox ID="datKZRQ01Z" DataField="KZRQ01Z" runat="server" Width="72px"
|
||||
EnableRelevant="true"></gtc:gtDateTimeTextBox>
|
||||
</asp:TableCell>
|
||||
</asp:TableRow>
|
||||
<asp:TableRow ID="KZRQ02S" runat="server" Visible="false">
|
||||
<asp:TableCell ID="TableCell84" runat="server"></asp:TableCell>
|
||||
<asp:TableCell ID="TableCell85" HorizontalAlign="Right" Width="100px" Height="22px"
|
||||
runat="server">
|
||||
<gtc:gtLabel ID="lblKZRQ02S" runat="server">扩展日期02始:</gtc:gtLabel>
|
||||
</asp:TableCell>
|
||||
<asp:TableCell ID="TableCell86" Height="22px" runat="server">
|
||||
<gtc:gtDateTimeTextBox ID="datKZRQ02S" DataField="KZRQ02S" runat="server" Width="72px"
|
||||
EnableRelevant="true" RelevantControl="datKZRQ02Z"></gtc:gtDateTimeTextBox>
|
||||
</asp:TableCell>
|
||||
</asp:TableRow>
|
||||
<asp:TableRow ID="KZRQ02Z" runat="server" Visible="false">
|
||||
<asp:TableCell ID="TableCell87" runat="server"></asp:TableCell>
|
||||
<asp:TableCell ID="TableCell88" HorizontalAlign="Right" Width="100px" Height="22px"
|
||||
runat="server">
|
||||
<gtc:gtLabel ID="lblKZRQ02Z" runat="server">扩展日期02止:</gtc:gtLabel>
|
||||
</asp:TableCell>
|
||||
<asp:TableCell ID="TableCell89" Height="22px" runat="server">
|
||||
<gtc:gtDateTimeTextBox ID="datKZRQ02Z" DataField="KZRQ02Z" runat="server" Width="72px"
|
||||
EnableRelevant="true"></gtc:gtDateTimeTextBox>
|
||||
</asp:TableCell>
|
||||
</asp:TableRow>
|
||||
<asp:TableRow ID="KZRQ03S" runat="server" Visible="false">
|
||||
<asp:TableCell ID="TableCell90" runat="server"></asp:TableCell>
|
||||
<asp:TableCell ID="TableCell91" HorizontalAlign="Right" Width="100px" Height="22px"
|
||||
runat="server">
|
||||
<gtc:gtLabel ID="lblKZRQ03S" runat="server">扩展日期03始:</gtc:gtLabel>
|
||||
</asp:TableCell>
|
||||
<asp:TableCell ID="TableCell92" Height="22px" runat="server">
|
||||
<gtc:gtDateTimeTextBox ID="datKZRQ03S" DataField="KZRQ03S" runat="server" Width="72px"
|
||||
EnableRelevant="true" RelevantControl="datKZRQ03Z"></gtc:gtDateTimeTextBox>
|
||||
</asp:TableCell>
|
||||
</asp:TableRow>
|
||||
<asp:TableRow ID="KZRQ03Z" runat="server" Visible="false">
|
||||
<asp:TableCell ID="TableCell93" runat="server"></asp:TableCell>
|
||||
<asp:TableCell ID="TableCell94" HorizontalAlign="Right" Width="100px" Height="22px"
|
||||
runat="server">
|
||||
<gtc:gtLabel ID="lblKZRQ03Z" runat="server">扩展日期03止:</gtc:gtLabel>
|
||||
</asp:TableCell>
|
||||
<asp:TableCell ID="TableCell95" Height="22px" runat="server">
|
||||
<gtc:gtDateTimeTextBox ID="datKZRQ03Z" DataField="KZRQ03Z" runat="server" Width="72px"
|
||||
EnableRelevant="true"></gtc:gtDateTimeTextBox>
|
||||
</asp:TableCell>
|
||||
</asp:TableRow>
|
||||
<asp:TableRow ID="KZRQ04S" runat="server" Visible="false">
|
||||
<asp:TableCell ID="TableCell96" runat="server"></asp:TableCell>
|
||||
<asp:TableCell ID="TableCell97" HorizontalAlign="Right" Width="100px" Height="22px"
|
||||
runat="server">
|
||||
<gtc:gtLabel ID="lblKZRQ04S" runat="server">扩展日期04始:</gtc:gtLabel>
|
||||
</asp:TableCell>
|
||||
<asp:TableCell ID="TableCell98" Height="22px" runat="server">
|
||||
<gtc:gtDateTimeTextBox ID="datKZRQ04S" DataField="KZRQ04S" runat="server" Width="72px"
|
||||
EnableRelevant="true" RelevantControl="datKZRQ04Z"></gtc:gtDateTimeTextBox>
|
||||
</asp:TableCell>
|
||||
</asp:TableRow>
|
||||
<asp:TableRow ID="KZRQ04Z" runat="server" Visible="false">
|
||||
<asp:TableCell ID="TableCell99" runat="server"></asp:TableCell>
|
||||
<asp:TableCell ID="TableCell100" HorizontalAlign="Right" Width="100px" Height="22px"
|
||||
runat="server">
|
||||
<gtc:gtLabel ID="lblKZRQ04Z" runat="server">扩展日期04止:</gtc:gtLabel>
|
||||
</asp:TableCell>
|
||||
<asp:TableCell ID="TableCell101" Height="22px" runat="server">
|
||||
<gtc:gtDateTimeTextBox ID="datKZRQ04Z" DataField="KZRQ04Z" runat="server" Width="72px"
|
||||
EnableRelevant="true"></gtc:gtDateTimeTextBox>
|
||||
</asp:TableCell>
|
||||
</asp:TableRow>
|
||||
<asp:TableRow ID="KZRQ05S" runat="server" Visible="false">
|
||||
<asp:TableCell ID="TableCell102" runat="server"></asp:TableCell>
|
||||
<asp:TableCell ID="TableCell103" HorizontalAlign="Right" Width="100px" Height="22px"
|
||||
runat="server">
|
||||
<gtc:gtLabel ID="lblKZRQ05S" runat="server">扩展日期05始:</gtc:gtLabel>
|
||||
</asp:TableCell>
|
||||
<asp:TableCell ID="TableCell104" Height="22px" runat="server">
|
||||
<gtc:gtDateTimeTextBox ID="datKZRQ05S" DataField="KZRQ05S" runat="server" Width="72px"
|
||||
EnableRelevant="true" RelevantControl="datKZRQ05Z"></gtc:gtDateTimeTextBox>
|
||||
</asp:TableCell>
|
||||
</asp:TableRow>
|
||||
<asp:TableRow ID="KZRQ05Z" runat="server" Visible="false">
|
||||
<asp:TableCell ID="TableCell105" runat="server"></asp:TableCell>
|
||||
<asp:TableCell ID="TableCell106" HorizontalAlign="Right" Width="100px" Height="22px"
|
||||
runat="server">
|
||||
<gtc:gtLabel ID="lblKZRQ05Z" runat="server">扩展日期05止:</gtc:gtLabel>
|
||||
</asp:TableCell>
|
||||
<asp:TableCell ID="TableCell107" Height="22px" runat="server">
|
||||
<gtc:gtDateTimeTextBox ID="datKZRQ05Z" DataField="KZRQ05Z" runat="server" Width="72px"
|
||||
EnableRelevant="true"></gtc:gtDateTimeTextBox>
|
||||
</asp:TableCell>
|
||||
</asp:TableRow>
|
||||
<asp:TableRow ID="KZWB01" runat="server" Visible="false">
|
||||
<asp:TableCell ID="TableCell293" runat="server"></asp:TableCell>
|
||||
<asp:TableCell ID="TableCell294" HorizontalAlign="Right" Width="100px" Height="22px"
|
||||
runat="server">
|
||||
<gtc:gtLabel ID="lblKZWB01" runat="server">扩展文本01:</gtc:gtLabel>
|
||||
</asp:TableCell>
|
||||
<asp:TableCell ID="TableCell295" Height="22px" runat="server">
|
||||
<gtc:gtTextBox ID="txtKZWB01" runat="server" Tag="Percent" Width="138px" DataField="KZWB01"></gtc:gtTextBox>
|
||||
</asp:TableCell>
|
||||
</asp:TableRow>
|
||||
|
||||
<asp:TableRow ID="KZWB02" runat="server" Visible="false">
|
||||
<asp:TableCell ID="TableCell299" runat="server"></asp:TableCell>
|
||||
<asp:TableCell ID="TableCell300" HorizontalAlign="Right" Width="100px" Height="22px"
|
||||
runat="server">
|
||||
<gtc:gtLabel ID="lblKZWB02" runat="server">扩展文本02:</gtc:gtLabel>
|
||||
</asp:TableCell>
|
||||
<asp:TableCell ID="TableCell301" Height="22px" runat="server">
|
||||
<gtc:gtTextBox ID="txtKZWB02" runat="server" Tag="Percent" Width="138px" DataField="KZWB02"></gtc:gtTextBox>
|
||||
</asp:TableCell>
|
||||
</asp:TableRow>
|
||||
|
||||
<asp:TableRow ID="KZWB03" runat="server" Visible="false">
|
||||
<asp:TableCell ID="TableCell305" runat="server"></asp:TableCell>
|
||||
<asp:TableCell ID="TableCell306" HorizontalAlign="Right" Width="100px" Height="22px"
|
||||
runat="server">
|
||||
<gtc:gtLabel ID="lblKZWB03" runat="server">扩展文本03:</gtc:gtLabel>
|
||||
</asp:TableCell>
|
||||
<asp:TableCell ID="TableCell307" Height="22px" runat="server">
|
||||
<gtc:gtTextBox ID="txtKZWB03" runat="server" Tag="Percent" Width="138px" DataField="KZWB03"></gtc:gtTextBox>
|
||||
</asp:TableCell>
|
||||
</asp:TableRow>
|
||||
|
||||
<asp:TableRow ID="KZWB04" runat="server" Visible="false">
|
||||
<asp:TableCell ID="TableCell311" runat="server"></asp:TableCell>
|
||||
<asp:TableCell ID="TableCell312" HorizontalAlign="Right" Width="100px" Height="22px"
|
||||
runat="server">
|
||||
<gtc:gtLabel ID="lblKZWB04" runat="server">扩展文本04:</gtc:gtLabel>
|
||||
</asp:TableCell>
|
||||
<asp:TableCell ID="TableCell313" Height="22px" runat="server">
|
||||
<gtc:gtTextBox ID="txtKZWB04" runat="server" Tag="Percent" Width="138px" DataField="KZWB04"></gtc:gtTextBox>
|
||||
</asp:TableCell>
|
||||
</asp:TableRow>
|
||||
|
||||
<asp:TableRow ID="KZWB05" runat="server" Visible="false">
|
||||
<asp:TableCell ID="TableCell317" runat="server"></asp:TableCell>
|
||||
<asp:TableCell ID="TableCell318" HorizontalAlign="Right" Width="100px" Height="22px"
|
||||
runat="server">
|
||||
<gtc:gtLabel ID="lblKZWB05" runat="server">扩展文本05:</gtc:gtLabel>
|
||||
</asp:TableCell>
|
||||
<asp:TableCell ID="TableCell319" Height="22px" runat="server">
|
||||
<gtc:gtTextBox ID="txtKZWB05" runat="server" Tag="Percent" Width="138px" DataField="KZWB05"></gtc:gtTextBox>
|
||||
</asp:TableCell>
|
||||
</asp:TableRow>
|
||||
</asp:Table>
|
||||
</asp:Content>
|
||||
@@ -0,0 +1,95 @@
|
||||
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.U20261363_N_XLXSBJ
|
||||
{
|
||||
public class XLBJD_M : TBaseNamedQuery
|
||||
{
|
||||
public XLBJD_M()
|
||||
{
|
||||
AddFieldDefs("SW", "事务", false);
|
||||
AddFieldDefs("WFAWAITER", "待处理人", false);
|
||||
AddFieldDefs("STATE", "流程状态", false);
|
||||
AddFieldDefs("XHDW", "销售单位");
|
||||
AddFieldDefs("XSBM", "销售部门");
|
||||
AddFieldDefs("TXY", "销售员");
|
||||
AddFieldDefs("KH", "客户");
|
||||
AddFieldDefs("XM", "项目");
|
||||
AddFieldDefs("BJRQS", "报价日期始");
|
||||
AddFieldDefs("BJRQZ", "报价日期止");
|
||||
AddFieldDefs("BJDID", "报价单号");
|
||||
AddFieldDefs("SQR", "申请人");
|
||||
AddFieldDefs("BJFLID", "报价分类");
|
||||
AddFieldDefs("BJZJES", "报价总金额始");
|
||||
AddFieldDefs("BJZJEZ", "报价总金额止");
|
||||
AddFieldDefs("PXFS", "排序方式");
|
||||
AddFieldDefs("BJBZ", "报价备注");
|
||||
AddFieldDefs("SQRGH", "申请人");
|
||||
AddFieldDefs("FKRQS", "反馈日期始");
|
||||
AddFieldDefs("FKRQZ", "反馈日期止");
|
||||
AddFieldDefs("FKJG", "反馈结果");
|
||||
AddFieldDefs("ZDFXYQR", "撞单分析已确认");
|
||||
AddFieldDefs("JCFZCS", "仅查复制产生");
|
||||
AddFieldDefs("KHDH", "客户单号");
|
||||
AddFieldDefs("WHSJS", "维护时间始");
|
||||
AddFieldDefs("WHSJZ", "维护时间止");
|
||||
AddFieldDefs("ZCJHSCQK", "主材计划生成情况");
|
||||
AddFieldDefs("KZSZ01", "扩展数值01");
|
||||
AddFieldDefs("KZSZ02", "扩展数值02");
|
||||
AddFieldDefs("KZSZ03", "扩展数值03");
|
||||
AddFieldDefs("KZSZ04", "扩展数值04");
|
||||
AddFieldDefs("KZSZ05", "扩展数值05");
|
||||
|
||||
|
||||
AddFieldDefs("KZZF011", "扩展字符01");
|
||||
AddFieldDefs("KZZF021", "扩展字符02");
|
||||
AddFieldDefs("KZZF031", "扩展字符03");
|
||||
AddFieldDefs("KZZF041", "扩展字符04");
|
||||
AddFieldDefs("KZZF051", "扩展字符05");
|
||||
AddFieldDefs("KZZF061", "扩展字符06");
|
||||
AddFieldDefs("KZZF071", "扩展字符07");
|
||||
AddFieldDefs("KZZF081", "扩展字符08");
|
||||
AddFieldDefs("KZZF091", "扩展字符09");
|
||||
AddFieldDefs("KZZF101", "扩展字符10");
|
||||
|
||||
AddFieldDefs("KZZF012", "扩展字符01");
|
||||
AddFieldDefs("KZZF022", "扩展字符02");
|
||||
AddFieldDefs("KZZF032", "扩展字符03");
|
||||
AddFieldDefs("KZZF042", "扩展字符04");
|
||||
AddFieldDefs("KZZF052", "扩展字符05");
|
||||
AddFieldDefs("KZZF062", "扩展字符06");
|
||||
AddFieldDefs("KZZF072", "扩展字符07");
|
||||
AddFieldDefs("KZZF082", "扩展字符08");
|
||||
AddFieldDefs("KZZF092", "扩展字符09");
|
||||
AddFieldDefs("KZZF102", "扩展字符10");
|
||||
|
||||
|
||||
AddFieldDefs("KZRQ01S", "扩展日期01始");
|
||||
AddFieldDefs("KZRQ01Z", "扩展日期01止");
|
||||
AddFieldDefs("KZRQ02S", "扩展日期02始");
|
||||
AddFieldDefs("KZRQ02Z", "扩展日期02止");
|
||||
AddFieldDefs("KZRQ03S", "扩展日期03始");
|
||||
AddFieldDefs("KZRQ03Z", "扩展日期03止");
|
||||
AddFieldDefs("KZRQ04S", "扩展日期04始");
|
||||
AddFieldDefs("KZRQ04Z", "扩展日期04止");
|
||||
AddFieldDefs("KZRQ05S", "扩展日期05始");
|
||||
AddFieldDefs("KZRQ05Z", "扩展日期05止");
|
||||
|
||||
AddFieldDefs("KZWB01", "扩展文本01");
|
||||
AddFieldDefs("KZWB02", "扩展文本02");
|
||||
AddFieldDefs("KZWB03", "扩展文本03");
|
||||
AddFieldDefs("KZWB04", "扩展文本04");
|
||||
AddFieldDefs("KZWB05", "扩展文本05");
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,62 @@
|
||||
using System.Reflection;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
using System;
|
||||
using System.Data;
|
||||
using System.Configuration;
|
||||
using GThinking.N_MISPRO;
|
||||
using GThinking.N_MISPROAS.Logging;
|
||||
|
||||
[assembly: AssemblyTitle("U20261363_N_XLXSBJ")] // 部件ID,无版本号
|
||||
[assembly: AssemblyDescription("")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("江苏省金思维信息技术有限公司")]
|
||||
[assembly: AssemblyProduct("金思维软件")]
|
||||
[assembly: AssemblyCopyright("(c) 江苏省金思维信息技术有限公司 版权所有")]
|
||||
[assembly: AssemblyTrademark("")]
|
||||
[assembly: AssemblyCulture("")]
|
||||
[assembly: ComVisible(false)]
|
||||
// GUID。编号规则47544950-5333-4e45-5420-xxxxxxxxxxx。前四段固定。最后一段为部件ID字符串ASCII码,
|
||||
// 不含平台版本号,最长6字节,超长需要缩写,不足长度补空格。
|
||||
[assembly: Guid("47544950-5338-4E45-5420-4E5F584C5853")]
|
||||
// 程序集版本信息
|
||||
[assembly: AssemblyVersion("1.0.0.0")] // 固定为1.0.0.0
|
||||
[assembly: AssemblyFileVersion("8.0.0.0")] // 部件版本
|
||||
|
||||
|
||||
namespace GThinking.U20261363_N_XLXSBJ
|
||||
{
|
||||
public class Mac : GThinking.N_MISPRO.Mac
|
||||
{
|
||||
|
||||
internal static ILog MacLog;
|
||||
|
||||
static Mac()
|
||||
{
|
||||
// 注册哪些系统、跟踪到什么时间。只有当前系统的记录才保存。
|
||||
MacLog = LogManager.GetMacLogger("U20261363_N_XLXSBJ8", "", "2025-12-31");
|
||||
}
|
||||
|
||||
public Mac()
|
||||
{
|
||||
// 以下设置该部件的有关信息
|
||||
ID = "U20261363_N_XLXSBJ8";
|
||||
ClassID = "U20261363_N_XLXSBJ";
|
||||
Name = "线缆销售报价";
|
||||
Protocol = "NET";
|
||||
OACBVersion = 4;
|
||||
Version = 8;
|
||||
DBVersion = 2;
|
||||
DbExtVersion = 0;
|
||||
Vendor = "金思维信息技术有限公司";
|
||||
Comment = "标准版";
|
||||
|
||||
AddModuleInfo(100860174, 0, "线缆销售报价单", "F", "XLBJDList.aspx");
|
||||
AddModulePage(100860174, "XLBJDInfo.aspx", "W", "XLXSBJ_BJD");
|
||||
|
||||
// 仅保留[线缆销售报价单]模块注册,其余模块及服务的注册项已移除
|
||||
AddAjaxService(100860174, "XLBJDUtils", typeof(XLBJDUtils));
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,141 @@
|
||||
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ProductVersion>8.0.50727</ProductVersion>
|
||||
<SchemaVersion>2.0</SchemaVersion>
|
||||
<ProjectGuid>{E54A5D97-D580-4357-8FA6-A02670E31399}</ProjectGuid>
|
||||
<ProjectTypeGuids>{349c5851-65df-11da-9384-00065b846f21};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}</ProjectTypeGuids>
|
||||
<OutputType>Library</OutputType>
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>GThinking.U20261363_N_XLXSBJ</RootNamespace>
|
||||
<AssemblyName>U20261363_N_XLXSBJ8</AssemblyName>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>..\..\bin\</OutputPath>
|
||||
<DefineConstants>TRACE;DEBUG;GTIPS8NET</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<OutputPath>bin\</OutputPath>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="Newtonsoft.Json, Version=12.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\..\Bin\Newtonsoft.Json.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="N_COMPRESS8, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\..\Bin\N_COMPRESS8.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="N_CONTROL8, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\..\Bin\N_CONTROL8.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="N_FRAMEWORK8, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\..\Bin\N_FRAMEWORK8.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="N_MISPRO8, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\..\Bin\N_MISPRO8.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="N_MISPROAS8, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL" />
|
||||
<Reference Include="N_MODEL8, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\..\Bin\N_MODEL8.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="N_PUBLIC28, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL" />
|
||||
<Reference Include="N_PUBLIC8, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\..\Bin\N_PUBLIC8.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="N_WORKFLOW8, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\..\Bin\N_WORKFLOW8.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="PdfSharp, Version=1.50.4000.0, Culture=neutral, PublicKeyToken=f94615aa0424f9eb, processorArchitecture=MSIL" />
|
||||
<Reference Include="PdfSharp.Charting, Version=1.50.4000.0, Culture=neutral, PublicKeyToken=f94615aa0424f9eb, processorArchitecture=MSIL" />
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Data" />
|
||||
<Reference Include="System.Drawing" />
|
||||
<Reference Include="System.Web" />
|
||||
<Reference Include="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL" />
|
||||
<Reference Include="System.Windows.Forms" />
|
||||
<Reference Include="System.Xml" />
|
||||
<Reference Include="System.Configuration" />
|
||||
<Reference Include="System.Web.Services" />
|
||||
<Reference Include="System.EnterpriseServices" />
|
||||
<Reference Include="System.Web.Mobile" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="BJDCache.cs" />
|
||||
<Compile Include="BJDEntity.cs" />
|
||||
<Compile Include="MAC8.cs" />
|
||||
<Compile Include="XLBJD.cs" />
|
||||
<Compile Include="XLBJD_BDOBill.cs" />
|
||||
<Compile Include="XLBJD_M.cs" />
|
||||
<Compile Include="XLBJDCalcUtils.cs" />
|
||||
<Compile Include="XLBJDInfo.aspx.cs">
|
||||
<DependentUpon>XLBJDInfo.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="XLBJDInfo.aspx.designer.cs">
|
||||
<DependentUpon>XLBJDInfo.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="XLBJDList.aspx.cs">
|
||||
<DependentUpon>XLBJDList.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="XLBJDList.aspx.designer.cs">
|
||||
<DependentUpon>XLBJDList.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="XLBJDQuery.aspx.cs">
|
||||
<DependentUpon>XLBJDQuery.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="XLBJDQuery.aspx.designer.cs">
|
||||
<DependentUpon>XLBJDQuery.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="XLBJDUtils.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Content Include="XLBJDInfo.aspx" />
|
||||
<Content Include="XLBJDList.aspx" />
|
||||
<Content Include="XLBJDQuery.aspx" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
|
||||
<Import Project="$(MSBuildExtensionsPath)\Microsoft\VisualStudio\v8.0\WebApplications\Microsoft.WebApplication.targets" />
|
||||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
||||
Other similar extension points exist, see Microsoft.Common.targets.
|
||||
<Target Name="BeforeBuild">
|
||||
</Target>
|
||||
<Target Name="AfterBuild">
|
||||
</Target>
|
||||
-->
|
||||
<ProjectExtensions>
|
||||
<VisualStudio>
|
||||
<FlavorProperties GUID="{349c5851-65df-11da-9384-00065b846f21}">
|
||||
<WebProjectProperties>
|
||||
<UseIIS>True</UseIIS>
|
||||
<AutoAssignPort>True</AutoAssignPort>
|
||||
<DevelopmentServerPort>0</DevelopmentServerPort>
|
||||
<DevelopmentServerVPath>/</DevelopmentServerVPath>
|
||||
<IISUrl>http://localhost/GTHINKING</IISUrl>
|
||||
<OverrideIISAppRootUrl>True</OverrideIISAppRootUrl>
|
||||
<IISAppRootUrl>http://localhost/GTHINKING</IISAppRootUrl>
|
||||
<NTLMAuthentication>False</NTLMAuthentication>
|
||||
</WebProjectProperties>
|
||||
</FlavorProperties>
|
||||
</VisualStudio>
|
||||
</ProjectExtensions>
|
||||
</Project>
|
||||
@@ -0,0 +1,43 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// 此代码由工具生成。
|
||||
// 运行时版本:2.0.50727.9179
|
||||
//
|
||||
// 对此文件的更改可能会导致不正确的行为,并且如果
|
||||
// 重新生成代码,这些更改将会丢失。
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace GThinking.U20261363_N_XLXSBJ {
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// XLBJDList 类。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的类。
|
||||
/// </remarks>
|
||||
public partial class XLBJDList {
|
||||
|
||||
/// <summary>
|
||||
/// ContentGrid 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtGridView ContentGrid;
|
||||
|
||||
/// <summary>
|
||||
/// Master 属性。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的属性。
|
||||
/// </remarks>
|
||||
public new GThinking.N_MODEL.Page.MasterSingleGrid Master {
|
||||
get {
|
||||
return ((GThinking.N_MODEL.Page.MasterSingleGrid)(base.Master));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
BIN
Binary file not shown.
+6521
-8525
File diff suppressed because it is too large
Load Diff
+11
-21
@@ -234,6 +234,17 @@ namespace GThinking.U20261363_N_XLXSBJ
|
||||
set { _XLXSBJFL_JGBIDS = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 厂价公式
|
||||
/// </summary>
|
||||
private string _XLXSBJFL_CJGS = string.Empty;
|
||||
|
||||
public string XLXSBJFL_CJGS
|
||||
{
|
||||
get { return _XLXSBJFL_CJGS; }
|
||||
set { _XLXSBJFL_CJGS = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 产品目录ID
|
||||
/// </summary>
|
||||
@@ -1948,28 +1959,7 @@ namespace GThinking.U20261363_N_XLXSBJ
|
||||
|
||||
#endregion
|
||||
}
|
||||
public class UpdJGFLDData
|
||||
{
|
||||
/// <summary>
|
||||
/// 调用情况
|
||||
/// </summary>
|
||||
private bool _Success = true;
|
||||
public bool Success
|
||||
{
|
||||
get { return _Success; }
|
||||
set { _Success = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 失败or提示信息
|
||||
/// </summary>
|
||||
private string _Message = string.Empty;
|
||||
public string Message
|
||||
{
|
||||
get { return _Message; }
|
||||
set { _Message = value; }
|
||||
}
|
||||
}
|
||||
public class XLXSBJFLYZXX
|
||||
{
|
||||
#region 成员变量
|
||||
|
||||
@@ -0,0 +1,43 @@
|
||||
<%@ Page Language="C#" MasterPageFile="~/N_MODEL/Page/MasterSingleCard.Master"
|
||||
AutoEventWireup="true" CodeBehind="DRWLJCP.aspx.cs" Inherits="GThinking.U20261363_N_XLXSBJ.DRWLJCP" Title="导入无料价产品" %>
|
||||
|
||||
<%@ 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: 30px;">
|
||||
</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="250px" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="right" 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="txtBJDID" runat="server" />
|
||||
</asp:Content>
|
||||
|
||||
+257
@@ -0,0 +1,257 @@
|
||||
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_MISPROAS;
|
||||
using GThinking.N_CONTROL;
|
||||
using GThinking.N_MISPRO.Utility;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace GThinking.U20261363_N_XLXSBJ
|
||||
{
|
||||
[TableMap(DB = "DBERP", DbTableName = "XLXSBJDMX", Umid = 100860174, IsWorkFlow = false)]
|
||||
public class DRWLJCPEntity : EntityManager
|
||||
{
|
||||
}
|
||||
public partial class DRWLJCP : SingleCardBase
|
||||
{
|
||||
DRWLJCPEntity entity = new DRWLJCPEntity();
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
this.UMID = 100860174;
|
||||
this.UMName = "线缆销售报价单";
|
||||
base.CurMaster = Master;
|
||||
base.CurEntity = entity;
|
||||
this.PageHeight = 180;
|
||||
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;
|
||||
if (AppRuntime.BitType == AppBitType.Bit32)
|
||||
{
|
||||
fupdPost.Filter = "XLS";
|
||||
}
|
||||
else // AppBitType.Bit64
|
||||
{
|
||||
fupdPost.Filter = "XLS,XLSX";
|
||||
}
|
||||
base.InitPage();
|
||||
}
|
||||
|
||||
#region 控件事件
|
||||
|
||||
protected void btnQD_Click(object sender, EventArgs e)
|
||||
{
|
||||
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);
|
||||
UpdateJGBBJ(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);
|
||||
}
|
||||
}
|
||||
|
||||
protected void btnQX_Click(object sender, EventArgs e)
|
||||
{
|
||||
CloseWindow();
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region 自定义事件
|
||||
//根据表格,更新价格表表价
|
||||
private void UpdateJGBBJ(TDatabase dberp, TSQL SQL, DataSet ds)
|
||||
{
|
||||
string sBJDID = PageParam.GetRTrimString("BJDID");
|
||||
string sBJFLID = PageParam.GetRTrimString("BJFLID");
|
||||
|
||||
string sXLXHID = "";
|
||||
string sXLGGID = "";
|
||||
string sXLBZID = "";
|
||||
string sDYDJID = "";
|
||||
string sXLYSID = "";
|
||||
string sJLDW = "";
|
||||
|
||||
string sBJSL = "";
|
||||
string sCLCB = "";
|
||||
string sJGBBJ = "";
|
||||
string sBZ = "";
|
||||
|
||||
double dXH = 0;
|
||||
|
||||
string sBJDXHList = "";
|
||||
|
||||
int tmpXSWS = string.IsNullOrEmpty(GetOption(100860000, "BJU002")) ? 5 : CMISproConvert.StrToInt(GetOption(100860000, "BJU002"));
|
||||
if (tmpXSWS < 0)
|
||||
tmpXSWS = 0;
|
||||
else if (tmpXSWS > 8)
|
||||
tmpXSWS = 8;
|
||||
|
||||
BJFLXX flxx = XLBJDUtils.GetBJFLXX(sBJFLID);
|
||||
|
||||
string sCPBJMRXSWS = flxx.XLXSBJFL_CPBJMRXSWS;
|
||||
|
||||
|
||||
string sJCLLX = flxx.XLXSBJFL_BJJCLLX;
|
||||
string sLJJCL = flxx.XLXSBJFL_LJJCLLX;
|
||||
|
||||
DateTime tWHSJCondition = MISproUtils.GetServerTime();
|
||||
|
||||
Dictionary<string, string> dic = new Dictionary<string, string>();
|
||||
double fCLZL = 0;
|
||||
double dCPJJ = 0;
|
||||
double dJJ = 0;
|
||||
double dCLCB = 0;
|
||||
double dBJDHQCLCB = 0;
|
||||
|
||||
#region 完成报价单明细的更新
|
||||
for (int i = 0; i < ds.Tables[0].Rows.Count; i++)
|
||||
{
|
||||
sXLXHID = ds.Tables[0].Rows[i]["型号"].ToString().Trim();
|
||||
sXLGGID = ds.Tables[0].Rows[i]["规格"].ToString().Trim();
|
||||
sXLBZID = ds.Tables[0].Rows[i]["标准"].ToString().Trim().Split('|')[0];
|
||||
sDYDJID = ds.Tables[0].Rows[i]["电压等级"].ToString().Trim();
|
||||
sJLDW = ds.Tables[0].Rows[i]["计量单位"].ToString().Trim();
|
||||
sXLYSID = ds.Tables[0].Rows[i]["颜色"].ToString().Trim().Split('|')[0];
|
||||
|
||||
sBJSL = ds.Tables[0].Rows[i]["报价数量"].ToString().Trim();
|
||||
sCLCB = ds.Tables[0].Rows[i]["料价"].ToString().Trim();
|
||||
sJGBBJ = ds.Tables[0].Rows[i]["表价"].ToString().Trim();
|
||||
sBZ = ds.Tables[0].Rows[i]["备注"].ToString().Trim();
|
||||
dXH = CMISproConvert.StrToFloat(ds.Tables[0].Rows[i]["序号"].ToString().Trim(), 0);
|
||||
SQL.Clear();
|
||||
SQL.Add("update XLXSBJDMX set XLXSBJDMX_CLCB =:pCLCB,XLXSBJDMX_BJDHQCLCB =:pCLCB,XLXSBJDMX_JGBBJ =:pJGBBJ, XLXSBJDMX_JGBBJTZ = 'Y', XLXSBJDMX_JGBBJGXSJ = :pJGBBJGXSJ,XLXSBJDMX_BZ = XLXSBJDMX_BZ||:pBZ,XLXSBJDMX_BJLY='SSJGBBJ' ");
|
||||
SQL.Add(",XLXSBJDMX_WHR=:pWHR,XLXSBJDMX_WHRID=:pWHRID,XLXSBJDMX_WHSJ=:tWHSJCondition ");
|
||||
SQL.Add("where 1=1 ");
|
||||
SQL.Add(" and XLXSBJDMX_BJDID = :XLXSBJDMX_BJDID ");
|
||||
SQL.Add(" and XLXSBJDMX_XH=:pXH");
|
||||
SQL.ParamByName("XLXSBJDMX_BJDID").Value = sBJDID;
|
||||
SQL.ParamByName("pXH").Value = dXH;
|
||||
SQL.ParamByName("pCLCB").Value = CMISproConvert.StrToFloat(sCLCB);
|
||||
SQL.ParamByName("pJGBBJ").Value = CMISproConvert.StrToFloat(sJGBBJ);
|
||||
SQL.ParamByName("pJGBBJGXSJ").Value = MISproUtils.GetServerTime();
|
||||
SQL.ParamByName("pBZ").Value = sBZ;
|
||||
SQL.ParamByName("pWHR").Value = tSession.UserName;
|
||||
SQL.ParamByName("pWHRID").Value = tSession.UserId;
|
||||
SQL.ParamByName("tWHSJCondition").Value = tWHSJCondition;
|
||||
dberp.ExecSQL(SQL);
|
||||
sBJDXHList = sBJDXHList + "," + ds.Tables[0].Rows[i]["序号"].ToString().Trim();
|
||||
}
|
||||
#endregion
|
||||
|
||||
sBJDXHList = sBJDXHList.TrimStart(',').TrimEnd(',');
|
||||
|
||||
if (!sBJDXHList.Equals(""))
|
||||
{
|
||||
#region 完成报价更新
|
||||
XLBJDUtils.UpdateBJDMX(dberp, SQL, sBJFLID, sBJDID, tmpXSWS, sJCLLX, sLJJCL, sCPBJMRXSWS, sBJDXHList, 0, false, false, false, "", tWHSJCondition);
|
||||
#endregion
|
||||
|
||||
#region 最低限价的更新
|
||||
XLBJDUtils.UpdateZDXJGS(sBJDID, sBJFLID, GetOption(100860000, "BJU002"));
|
||||
XLBJDUtils.UpdateJSJGS(sBJDID, sBJFLID, GetOption(100860000, "BJU002"));
|
||||
|
||||
#endregion
|
||||
|
||||
#region 完成主表信息的更新
|
||||
XLBJDUtils.UpdateXLXSBJD(dberp, SQL, sBJDID, sJCLLX, sLJJCL, flxx.XLXSBJFL_ZDXJJCLLX, flxx.XLXSBJFL_JYF, PageParam.GetRTrimString("YSJDID"),
|
||||
PageParam.GetRTrimString("GYSID"), flxx.XLXSBJFL_YFWLID, flxx.XLXSBJFL_BJHYF);
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
|
||||
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", "电压等级");
|
||||
ColumnNames.Add("6", "计量单位");
|
||||
ColumnNames.Add("7", "颜色");
|
||||
ColumnNames.Add("8", "报价产品");
|
||||
ColumnNames.Add("9", "报价数量");
|
||||
ColumnNames.Add("10", "料价");
|
||||
ColumnNames.Add("11", "表价");
|
||||
ColumnNames.Add("12", "备注");
|
||||
|
||||
for (int i = 0; i < ColumnNames.Count; i++)
|
||||
{
|
||||
try
|
||||
{
|
||||
if (!ds.Tables[0].Columns[i].ColumnName.Trim().Equals(ColumnNames[i.ToString()].Trim()))
|
||||
{
|
||||
throw new Exception("栏目[" + ds.Tables[0].Columns[i].ColumnName + "]与导入文件要求的栏目格式不一致!");
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
throw new Exception(ex.Message);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
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
+97
@@ -0,0 +1,97 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// 此代码由工具生成。
|
||||
// 运行时版本:2.0.50727.9179
|
||||
//
|
||||
// 对此文件的更改可能会导致不正确的行为,并且如果
|
||||
// 重新生成代码,这些更改将会丢失。
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace GThinking.U20261363_N_XLXSBJ {
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// DRWLJCP 类。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的类。
|
||||
/// </remarks>
|
||||
public partial class DRWLJCP {
|
||||
|
||||
/// <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>
|
||||
/// lblWJ 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtLabel lblWJ;
|
||||
|
||||
/// <summary>
|
||||
/// fupdPost 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtAsyncFileUpload fupdPost;
|
||||
|
||||
/// <summary>
|
||||
/// lblTitle 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label lblTitle;
|
||||
|
||||
/// <summary>
|
||||
/// txtBJDID 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.HiddenField txtBJDID;
|
||||
|
||||
/// <summary>
|
||||
/// Master 属性。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的属性。
|
||||
/// </remarks>
|
||||
public new GThinking.N_MODEL.Page.MasterSingleCard Master {
|
||||
get {
|
||||
return ((GThinking.N_MODEL.Page.MasterSingleCard)(base.Master));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -34,7 +34,7 @@ namespace GThinking.U20261363_N_XLXSBJ
|
||||
static Mac()
|
||||
{
|
||||
// 注册哪些系统、跟踪到什么时间。只有当前系统的记录才保存。
|
||||
MacLog = LogManager.GetMacLogger("U20261363_N_XLXSBJ8", "", "2025-12-31");
|
||||
MacLog = LogManager.GetMacLogger("U20261363_N_XLXSBJ8", "", "2026-12-31");
|
||||
}
|
||||
|
||||
public Mac()
|
||||
@@ -57,6 +57,9 @@ namespace GThinking.U20261363_N_XLXSBJ
|
||||
// 仅保留[线缆销售报价单]模块注册,其余模块及服务的注册项已移除
|
||||
AddAjaxService(100860174, "XLBJDUtils", typeof(XLBJDUtils));
|
||||
|
||||
AddModuleReplace(100860174, 100860000);
|
||||
AddPageReplace(100860174, "XLBJDInfo.aspx", 100860000, "XLBJDInfo.aspx"); ;
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
Binary file not shown.
@@ -0,0 +1,417 @@
|
||||
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ProductVersion>8.0.50727</ProductVersion>
|
||||
<SchemaVersion>2.0</SchemaVersion>
|
||||
<ProjectGuid>{A368F4C2-1ACE-4B7B-A39D-B9090DF99945}</ProjectGuid>
|
||||
<ProjectTypeGuids>{349c5851-65df-11da-9384-00065b846f21};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}</ProjectTypeGuids>
|
||||
<OutputType>Library</OutputType>
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>GThinking.U20261363_N_XLXSBJ</RootNamespace>
|
||||
<AssemblyName>U20261363_N_XLXSBJA</AssemblyName>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>..\..\bin\</OutputPath>
|
||||
<DefineConstants>TRACE;DEBUG;GTIPS8NET</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<OutputPath>bin\</OutputPath>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="Newtonsoft.Json, Version=12.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\..\Bin\Newtonsoft.Json.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="N_COMPRESSA, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\..\Bin\N_COMPRESSA.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="N_CONTROLA, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\..\Bin\N_CONTROLA.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="N_FRAMEWORKA, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\..\Bin\N_FRAMEWORKA.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="N_MISPROA, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\..\Bin\N_MISPROA.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="N_MISPROASA, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL" />
|
||||
<Reference Include="N_MODELA, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\..\Bin\N_MODELA.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="N_PUBLIC2A, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL" />
|
||||
<Reference Include="N_PUBLICA, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\..\Bin\N_PUBLICA.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="N_WORKFLOWA, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\..\Bin\N_WORKFLOWA.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="PdfSharp, Version=1.50.4000.0, Culture=neutral, PublicKeyToken=f94615aa0424f9eb, processorArchitecture=MSIL" />
|
||||
<Reference Include="PdfSharp.Charting, Version=1.50.4000.0, Culture=neutral, PublicKeyToken=f94615aa0424f9eb, processorArchitecture=MSIL" />
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Data" />
|
||||
<Reference Include="System.Drawing" />
|
||||
<Reference Include="System.Web" />
|
||||
<Reference Include="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL" />
|
||||
<Reference Include="System.Windows.Forms" />
|
||||
<Reference Include="System.Xml" />
|
||||
<Reference Include="System.Configuration" />
|
||||
<Reference Include="System.Web.Services" />
|
||||
<Reference Include="System.EnterpriseServices" />
|
||||
<Reference Include="System.Web.Mobile" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="BJDCache.cs">
|
||||
</Compile>
|
||||
<Compile Include="BJDEntity.cs" />
|
||||
<Compile Include="DRWLJCP.aspx.cs">
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
<DependentUpon>DRWLJCP.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="DRWLJCP.aspx.designer.cs">
|
||||
<DependentUpon>DRWLJCP.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="MAC8.cs" />
|
||||
<Compile Include="WXXLCJDList.aspx.cs">
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
<DependentUpon>WXXLCJDList.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="WXXLCJDList.aspx.designer.cs">
|
||||
<DependentUpon>WXXLCJDList.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="WXXLCJDMXList.aspx.cs">
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
<DependentUpon>WXXLCJDMXList.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="WXXLCJDMXList.aspx.designer.cs">
|
||||
<DependentUpon>WXXLCJDMXList.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="WXXLCJDQuery.aspx.cs">
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
<DependentUpon>WXXLCJDQuery.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="WXXLCJDQuery.aspx.designer.cs">
|
||||
<DependentUpon>WXXLCJDQuery.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="XLBJD.cs" />
|
||||
<Compile Include="XLBJD_BDOBill.cs" />
|
||||
<Compile Include="XLBJD_BJLRList.aspx.cs">
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
<DependentUpon>XLBJD_BJLRList.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="XLBJD_BJLRList.aspx.designer.cs">
|
||||
<DependentUpon>XLBJD_BJLRList.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="XLBJD_BJLRQuery.aspx.cs">
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
<DependentUpon>XLBJD_BJLRQuery.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="XLBJD_BJLRQuery.aspx.designer.cs">
|
||||
<DependentUpon>XLBJD_BJLRQuery.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="XLBJD_CBZSList.aspx.cs">
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
<DependentUpon>XLBJD_CBZSList.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="XLBJD_CBZSList.aspx.designer.cs">
|
||||
<DependentUpon>XLBJD_CBZSList.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="XLBJD_CLCBInfo.aspx.cs">
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
<DependentUpon>XLBJD_CLCBInfo.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="XLBJD_CLCBInfo.aspx.designer.cs">
|
||||
<DependentUpon>XLBJD_CLCBInfo.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="XLBJD_CLCBQuery.aspx.cs">
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
<DependentUpon>XLBJD_CLCBQuery.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="XLBJD_CLCBQuery.aspx.designer.cs">
|
||||
<DependentUpon>XLBJD_CLCBQuery.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="XLBJD_CLHQTZList.aspx.cs">
|
||||
<DependentUpon>XLBJD_CLHQTZList.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="XLBJD_CLHQTZList.aspx.designer.cs">
|
||||
<DependentUpon>XLBJD_CLHQTZList.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="XLBJD_CXQSCLList.aspx.cs">
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
<DependentUpon>XLBJD_CXQSCLList.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="XLBJD_CXQSCLList.aspx.designer.cs">
|
||||
<DependentUpon>XLBJD_CXQSCLList.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="XLBJD_FBJXQList.aspx.cs">
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
<DependentUpon>XLBJD_FBJXQList.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="XLBJD_FBJXQList.aspx.designer.cs">
|
||||
<DependentUpon>XLBJD_FBJXQList.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="XLBJD_JGECBZSList.aspx.cs">
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
<DependentUpon>XLBJD_JGECBZSList.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="XLBJD_JGECBZSList.aspx.designer.cs">
|
||||
<DependentUpon>XLBJD_JGECBZSList.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="XLBJD_JGFLDInfo.aspx.cs">
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
<DependentUpon>XLBJD_JGFLDInfo.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="XLBJD_JGFLDInfo.aspx.designer.cs">
|
||||
<DependentUpon>XLBJD_JGFLDInfo.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="XLBJD_M.cs" />
|
||||
<Compile Include="XLBJDCalcUtils.cs" />
|
||||
<Compile Include="XLBJDInfo.aspx.cs">
|
||||
<DependentUpon>XLBJDInfo.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="XLBJDInfo.aspx.designer.cs">
|
||||
<DependentUpon>XLBJDInfo.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="XLBJDList.aspx.cs">
|
||||
<DependentUpon>XLBJDList.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="XLBJDList.aspx.designer.cs">
|
||||
<DependentUpon>XLBJDList.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="XLBJDQuery.aspx.cs">
|
||||
<DependentUpon>XLBJDQuery.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="XLBJDQuery.aspx.designer.cs">
|
||||
<DependentUpon>XLBJDQuery.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="XLBJDUtils.cs" />
|
||||
<Compile Include="XLBJD_MX_BJCPInfo.aspx.cs">
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
<DependentUpon>XLBJD_MX_BJCPInfo.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="XLBJD_MX_BJCPInfo.aspx.designer.cs">
|
||||
<DependentUpon>XLBJD_MX_BJCPInfo.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="XLBJD_PLDRList.aspx.cs">
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
<DependentUpon>XLBJD_PLDRList.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="XLBJD_PLDRList.aspx.designer.cs">
|
||||
<DependentUpon>XLBJD_PLDRList.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="XLBJD_PLTJList.aspx.cs">
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
<DependentUpon>XLBJD_PLTJList.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="XLBJD_PLTJList.aspx.designer.cs">
|
||||
<DependentUpon>XLBJD_PLTJList.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="XLBJD_PLTJQuery.aspx.cs">
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
<DependentUpon>XLBJD_PLTJQuery.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="XLBJD_PLTJQuery.aspx.designer.cs">
|
||||
<DependentUpon>XLBJD_PLTJQuery.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="XLBJD_TLJInfo.aspx.cs">
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
<DependentUpon>XLBJD_TLJInfo.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="XLBJD_TLJInfo.aspx.designer.cs">
|
||||
<DependentUpon>XLBJD_TLJInfo.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="XLBJD_WBBJDDRList.aspx.cs">
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
<DependentUpon>XLBJD_WBBJDDRList.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="XLBJD_WBBJDDRList.aspx.designer.cs">
|
||||
<DependentUpon>XLBJD_WBBJDDRList.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="XLBJD_WBBJDMXList.aspx.cs">
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
<DependentUpon>XLBJD_WBBJDMXList.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="XLBJD_WBBJDMXList.aspx.designer.cs">
|
||||
<DependentUpon>XLBJD_WBBJDMXList.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="XLBJD_WBBJDMX_BBPPGZWH.cs" />
|
||||
<Compile Include="XLBJD_WBBJDMX_BBPPGZWHInfo.aspx.cs">
|
||||
<DependentUpon>XLBJD_WBBJDMX_BBPPGZWHInfo.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="XLBJD_WBBJDMX_BBPPGZWHInfo.aspx.designer.cs">
|
||||
<DependentUpon>XLBJD_WBBJDMX_BBPPGZWHInfo.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="XLBJD_WBBJDMX_BBPPGZWHList.aspx.cs">
|
||||
<DependentUpon>XLBJD_WBBJDMX_BBPPGZWHList.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="XLBJD_WBBJDMX_BBPPGZWHList.aspx.designer.cs">
|
||||
<DependentUpon>XLBJD_WBBJDMX_BBPPGZWHList.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="XLBJD_WBBJDMX_BBPPGZWHQuery.aspx.cs">
|
||||
<DependentUpon>XLBJD_WBBJDMX_BBPPGZWHQuery.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="XLBJD_WBBJDMX_BBPPGZWHQuery.aspx.designer.cs">
|
||||
<DependentUpon>XLBJD_WBBJDMX_BBPPGZWHQuery.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="XLBJD_WBBJDMX_BBPPGZWH_M.cs" />
|
||||
<Compile Include="XLBJD_WBBJDXDRInfo.aspx.cs">
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
<DependentUpon>XLBJD_WBBJDXDRInfo.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="XLBJD_WBBJDXDRInfo.aspx.designer.cs">
|
||||
<DependentUpon>XLBJD_WBBJDXDRInfo.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="XLBJD_WGCPBJDRInfo.aspx.cs">
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
<DependentUpon>XLBJD_WGCPBJDRInfo.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="XLBJD_WGCPBJDRInfo.aspx.designer.cs">
|
||||
<DependentUpon>XLBJD_WGCPBJDRInfo.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="XLBJD_WGCPBJList.aspx.cs">
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
<DependentUpon>XLBJD_WGCPBJList.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="XLBJD_WGCPBJList.aspx.designer.cs">
|
||||
<DependentUpon>XLBJD_WGCPBJList.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="XLBJD_WLHQList.aspx.cs">
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
<DependentUpon>XLBJD_WLHQList.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="XLBJD_WLHQList.aspx.designer.cs">
|
||||
<DependentUpon>XLBJD_WLHQList.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="XLBJD_WLHQTZList.aspx.cs">
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
<DependentUpon>XLBJD_WLHQTZList.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="XLBJD_WLHQTZList.aspx.designer.cs">
|
||||
<DependentUpon>XLBJD_WLHQTZList.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="XLBJD_YZZCheck.aspx.cs">
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
<DependentUpon>XLBJD_YZZCheck.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="XLBJD_YZZCheck.aspx.designer.cs">
|
||||
<DependentUpon>XLBJD_YZZCheck.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="XLBJD_ZJEInfo.aspx.cs">
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
<DependentUpon>XLBJD_ZJEInfo.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="XLBJD_ZJEInfo.aspx.designer.cs">
|
||||
<DependentUpon>XLBJD_ZJEInfo.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="XLJGB_PLDRQuery.aspx.cs">
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
<DependentUpon>XLJGB_PLDRQuery.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="XLJGB_PLDRQuery.aspx.designer.cs">
|
||||
<DependentUpon>XLJGB_PLDRQuery.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="XLWBBJDUtils.cs" />
|
||||
<Compile Include="ZDFXList.aspx.cs">
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
<DependentUpon>ZDFXList.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="ZDFXList.aspx.designer.cs">
|
||||
<DependentUpon>ZDFXList.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="ZDFXQuery.aspx.cs">
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
<DependentUpon>ZDFXQuery.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="ZDFXQuery.aspx.designer.cs">
|
||||
<DependentUpon>ZDFXQuery.aspx</DependentUpon>
|
||||
</Compile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Content Include="DRWLJCP.aspx" />
|
||||
<Content Include="WXXLCJDList.aspx" />
|
||||
<Content Include="WXXLCJDMXList.aspx" />
|
||||
<Content Include="WXXLCJDQuery.aspx" />
|
||||
<Content Include="XLBJDInfo.aspx" />
|
||||
<Content Include="XLBJDList.aspx" />
|
||||
<Content Include="XLBJDQuery.aspx" />
|
||||
<Content Include="XLBJD_BJLRList.aspx" />
|
||||
<Content Include="XLBJD_BJLRQuery.aspx" />
|
||||
<Content Include="XLBJD_CBZSList.aspx" />
|
||||
<Content Include="XLBJD_CLCBInfo.aspx" />
|
||||
<Content Include="XLBJD_CLCBQuery.aspx" />
|
||||
<Content Include="XLBJD_CLHQTZList.aspx" />
|
||||
<Content Include="XLBJD_CXQSCLList.aspx" />
|
||||
<Content Include="XLBJD_FBJXQList.aspx" />
|
||||
<Content Include="XLBJD_JGECBZSList.aspx" />
|
||||
<Content Include="XLBJD_JGFLDInfo.aspx" />
|
||||
<Content Include="XLBJD_MX_BJCPInfo.aspx" />
|
||||
<Content Include="XLBJD_PLDRList.aspx" />
|
||||
<Content Include="XLBJD_PLTJList.aspx" />
|
||||
<Content Include="XLBJD_PLTJQuery.aspx" />
|
||||
<Content Include="XLBJD_TLJInfo.aspx" />
|
||||
<Content Include="XLBJD_WBBJDDRList.aspx" />
|
||||
<Content Include="XLBJD_WBBJDMXList.aspx" />
|
||||
<Content Include="XLBJD_WBBJDMX_BBPPGZWHInfo.aspx" />
|
||||
<Content Include="XLBJD_WBBJDMX_BBPPGZWHList.aspx" />
|
||||
<Content Include="XLBJD_WBBJDMX_BBPPGZWHQuery.aspx" />
|
||||
<Content Include="XLBJD_WBBJDXDRInfo.aspx" />
|
||||
<Content Include="XLBJD_WGCPBJDRInfo.aspx" />
|
||||
<Content Include="XLBJD_WGCPBJList.aspx" />
|
||||
<Content Include="XLBJD_WLHQList.aspx" />
|
||||
<Content Include="XLBJD_WLHQTZList.aspx" />
|
||||
<Content Include="XLBJD_YZZCheck.aspx" />
|
||||
<Content Include="XLBJD_ZJEInfo.aspx" />
|
||||
<Content Include="XLJGB_PLDRQuery.aspx" />
|
||||
<Content Include="ZDFXList.aspx" />
|
||||
<Content Include="ZDFXQuery.aspx" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
|
||||
<Import Project="$(MSBuildExtensionsPath)\Microsoft\VisualStudio\v8.0\WebApplications\Microsoft.WebApplication.targets" />
|
||||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
||||
Other similar extension points exist, see Microsoft.Common.targets.
|
||||
<Target Name="BeforeBuild">
|
||||
</Target>
|
||||
<Target Name="AfterBuild">
|
||||
</Target>
|
||||
-->
|
||||
<ProjectExtensions>
|
||||
<VisualStudio>
|
||||
<FlavorProperties GUID="{349c5851-65df-11da-9384-00065b846f21}">
|
||||
<WebProjectProperties>
|
||||
<UseIIS>True</UseIIS>
|
||||
<AutoAssignPort>True</AutoAssignPort>
|
||||
<DevelopmentServerPort>0</DevelopmentServerPort>
|
||||
<DevelopmentServerVPath>/</DevelopmentServerVPath>
|
||||
<IISUrl>http://localhost/GTHINKING</IISUrl>
|
||||
<OverrideIISAppRootUrl>True</OverrideIISAppRootUrl>
|
||||
<IISAppRootUrl>http://localhost/GTHINKING</IISAppRootUrl>
|
||||
<NTLMAuthentication>False</NTLMAuthentication>
|
||||
</WebProjectProperties>
|
||||
</FlavorProperties>
|
||||
</VisualStudio>
|
||||
</ProjectExtensions>
|
||||
</Project>
|
||||
@@ -0,0 +1,30 @@
|
||||
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<ProjectExtensions>
|
||||
<VisualStudio>
|
||||
<FlavorProperties GUID="{349c5851-65df-11da-9384-00065b846f21}" xmlns="">
|
||||
<WebProjectProperties>
|
||||
<StartPageUrl>
|
||||
</StartPageUrl>
|
||||
<StartAction>CurrentPage</StartAction>
|
||||
<AspNetDebugging>True</AspNetDebugging>
|
||||
<NativeDebugging>False</NativeDebugging>
|
||||
<SQLDebugging>False</SQLDebugging>
|
||||
<PublishCopyOption>RunFiles</PublishCopyOption>
|
||||
<PublishTargetLocation>
|
||||
</PublishTargetLocation>
|
||||
<PublishDeleteAllFiles>False</PublishDeleteAllFiles>
|
||||
<PublishCopyAppData>True</PublishCopyAppData>
|
||||
<ExternalProgram>
|
||||
</ExternalProgram>
|
||||
<StartExternalURL>
|
||||
</StartExternalURL>
|
||||
<StartCmdLineArguments>
|
||||
</StartCmdLineArguments>
|
||||
<StartWorkingDirectory>
|
||||
</StartWorkingDirectory>
|
||||
<EnableENC>False</EnableENC>
|
||||
</WebProjectProperties>
|
||||
</FlavorProperties>
|
||||
</VisualStudio>
|
||||
</ProjectExtensions>
|
||||
</Project>
|
||||
@@ -0,0 +1,138 @@
|
||||
<%@ Page Language="C#" MasterPageFile="~/N_MODEL/Page/MasterSingleGrid.Master" AutoEventWireup="true"
|
||||
Codebehind="WXXLCJDList.aspx.cs" Inherits="GThinking.U20261363_N_XLXSBJ.WXXLCJDList" Title="线缆销售价格表查价单"
|
||||
EnableEventValidation="false" %>
|
||||
|
||||
<%@ MasterType VirtualPath="~/N_MODEL/Page/MasterSingleGrid.Master" %>
|
||||
<asp:Content ID="ContentButton" ContentPlaceHolderID="CPHButton" runat="server">
|
||||
<asp:Table ID="AddTable" runat="server" CellPadding="0" CellSpacing="0">
|
||||
<asp:TableRow>
|
||||
<asp:TableCell HorizontalAlign="left" BorderWidth="0px" BorderStyle="NotSet">
|
||||
<gtc:gtToolButton ID="btnCKMX" BorderWidth="0px" BorderStyle="Notset" Width="70px"
|
||||
Height="19px" ButtonType="Button" ShowCaption="True" Caption="查看明细" OnClick="btnCKMX_Click"
|
||||
runat="server" />
|
||||
</asp:TableCell>
|
||||
<asp:TableCell HorizontalAlign="left" BorderWidth="0px" BorderStyle="NotSet">
|
||||
<gtc:gtToolButton ID="btnDR" BorderWidth="0px" BorderStyle="Notset" Width="106px"
|
||||
Height="19px" ButtonType="Button" ShowCaption="True" Caption="导入报价单明细" OnClick="btnDR_Click"
|
||||
runat="server" />
|
||||
</asp:TableCell>
|
||||
<%--明细页回调--%>
|
||||
<asp:TableCell>
|
||||
<gtc:gtButton Style="display: none" ID="btnAutoClose" OnClick="btnAutoClose_Click"
|
||||
runat="server" Visible="true" EnableTheming="false" SkinID="hidden"></gtc:gtButton>
|
||||
</asp:TableCell>
|
||||
</asp:TableRow>
|
||||
</asp:Table>
|
||||
</asp:Content>
|
||||
<asp:Content ID="ContentForm" ContentPlaceHolderID="CPHForm" runat="server">
|
||||
<gtc:gtGridView ID="grdWXXLCJD" runat="server" CellPadding="2" CellSpacing="2"
|
||||
AutoGenerateColumns="False" AllowPaging="True" EnableViewS
|
||||
tate="false" OnRowDoubleClick="grdWXXLCJD_RowDoubleClick">
|
||||
<FixRowCol TableHeight="100%" TableWidth="100%" />
|
||||
<Columns>
|
||||
<asp:BoundField DataField="WXXLCJD_CJBH" HeaderText="查价编号">
|
||||
<itemstyle width="120px" />
|
||||
<headerstyle width="120px" />
|
||||
</asp:BoundField>
|
||||
<asp:BoundField DataField="WXXLCJD_CJHY" HeaderText="微信查价会员">
|
||||
<itemstyle width="120px" />
|
||||
<headerstyle width="120px" />
|
||||
</asp:BoundField>
|
||||
<asp:BoundField DataField="WXXLCJD_GH" HeaderText="查价人">
|
||||
<itemstyle width="100px" />
|
||||
<headerstyle width="100px" />
|
||||
</asp:BoundField>
|
||||
<asp:BoundField DataField="WXXLCJD_WXCJSJ" HeaderText="查价时间">
|
||||
<itemstyle width="125px" />
|
||||
<headerstyle width="125px" />
|
||||
</asp:BoundField>
|
||||
<asp:BoundField DataField="WXXLCJD_JGB" HeaderText="价格表">
|
||||
<itemstyle width="120px" />
|
||||
<headerstyle width="120px" />
|
||||
</asp:BoundField>
|
||||
<asp:BoundField DataField="WXXLCJD_HSBZ" HeaderText="含税">
|
||||
<itemstyle width="60px" />
|
||||
<headerstyle width="60px" />
|
||||
</asp:BoundField>
|
||||
<asp:BoundField DataField="WXXLCJD_CJZJE" HeaderText="查价总金额">
|
||||
<itemstyle width="80px" horizontalalign="Right"/>
|
||||
<headerstyle width="80px" />
|
||||
</asp:BoundField>
|
||||
<asp:BoundField DataField="MXSL" HeaderText="明细数量">
|
||||
<itemstyle width="80px" horizontalalign="Right"></itemstyle>
|
||||
<headerstyle width="80px" />
|
||||
</asp:BoundField>
|
||||
<asp:BoundField DataField="WXXLCJD_ZT" HeaderText="状态">
|
||||
<itemstyle width="60px" />
|
||||
<headerstyle width="60px" />
|
||||
</asp:BoundField>
|
||||
<asp:BoundField DataField="WXHYGL_SSQY" HeaderText="所属企业">
|
||||
<itemstyle width="120px" ></itemstyle>
|
||||
<headerstyle width="120px" />
|
||||
</asp:BoundField>
|
||||
<asp:BoundField DataField="WXXLCJD_YDRBJD" HeaderText="已导入报价单">
|
||||
<itemstyle width="100px" ></itemstyle>
|
||||
<headerstyle width="100px" />
|
||||
</asp:BoundField>
|
||||
<asp:BoundField DataField="WXXLCJD_KHMC" HeaderText="客户名称">
|
||||
<itemstyle width="120px" ></itemstyle>
|
||||
<headerstyle width="120px" />
|
||||
</asp:BoundField>
|
||||
<asp:BoundField DataField="WXXLCJD_XMMC" HeaderText="项目名称">
|
||||
<itemstyle width="120px" ></itemstyle>
|
||||
<headerstyle width="120px" />
|
||||
</asp:BoundField>
|
||||
<asp:BoundField DataField="WXXLCJD_BZ" HeaderText="备注">
|
||||
<itemstyle width="120px" ></itemstyle>
|
||||
<headerstyle width="120px" />
|
||||
</asp:BoundField>
|
||||
<asp:BoundField DataField="WXXLCJD_WHR" HeaderText="维护人">
|
||||
<itemstyle width="72px" ></itemstyle>
|
||||
<headerstyle width="72px" />
|
||||
</asp:BoundField>
|
||||
<asp:BoundField DataField="WXXLCJD_WHSJ" HeaderText="维护时间">
|
||||
<itemstyle width="125px" ></itemstyle>
|
||||
<headerstyle width="125px" />
|
||||
</asp:BoundField>
|
||||
|
||||
</Columns>
|
||||
<ColumnsEx>
|
||||
<gtc:gtGridView_Column DataField="WXXLCJD_CJBH" ShowHint="True">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="WXXLCJD_CJHY" ShowHint="True">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="WXXLCJD_GH" ShowHint="True">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="WXXLCJD_WXCJSJ" EditType="etDateTime" DateTimeEditKins="dtDateTime" ShowHint="True">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="WXXLCJD_JGB" ShowHint="True">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="WXXLCJD_HSBZ" EditType="etCheckBox" CheckBoxTrueValue="Y" CheckBoxFalseValue="N" ShowHint="True">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="WXXLCJD_CJZJE" EditType="etNumber"
|
||||
NumberDecimalPlace="2" ShowHint="True">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="MXSL" ShowHint="True" EditType="etNumber"
|
||||
NumberDecimalPlace="0" ShowZero = "true">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="WXXLCJD_ZT" ShowHint="True">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="WXHYGL_SSQY" ShowHint="True">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="WXXLCJD_YDRBJD" ShowHint="True" EditType="etCheckBox" CheckBoxTrueValue="Y" CheckBoxFalseValue="N" >
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="WXXLCJD_KHMC" ShowHint="True">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="WXXLCJD_XMMC" ShowHint="True">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="WXXLCJD_BZ" ShowHint="True">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="WXXLCJD_WHR" ShowHint="True">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="WXXLCJD_WHSJ" EditType="etDateTime" DateTimeEditKins="dtDateTime" ShowHint="True">
|
||||
</gtc:gtGridView_Column>
|
||||
|
||||
</ColumnsEx>
|
||||
</gtc:gtGridView>
|
||||
<asp:HiddenField ID="txtOpen" runat="server" />
|
||||
</asp:Content>
|
||||
@@ -0,0 +1,442 @@
|
||||
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_MISPRO.Utility;
|
||||
using GThinking.N_PUBLIC;
|
||||
using GThinking.N_WORKFLOW;
|
||||
using System.Text;
|
||||
using GThinking.N_MISPRO.MISPROAS;
|
||||
using System.Collections.Generic;
|
||||
using GThinking.N_CONTROL;
|
||||
using GThinking.N_MISPRO.TableCache;
|
||||
|
||||
namespace GThinking.U20261363_N_XLXSBJ
|
||||
{
|
||||
[TableMap(DB = "DBERP", DbTableName = "WXXLCJD", Umid = 100860174, IsWorkFlow = false, UseWhr = true)]
|
||||
|
||||
public class WXXLCJD : EntityManager
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
[TableMap(DB = "DBERP", DbTableName = "WXXLCJDMX", Umid = 100860174, IsWorkFlow = false, UseWhr = false)]
|
||||
|
||||
public class WXXLCJDMX : EntityManager
|
||||
{
|
||||
|
||||
}
|
||||
public partial class WXXLCJDList : SingleGridBase
|
||||
{
|
||||
WXXLCJD entity = new WXXLCJD();
|
||||
WXXLCJD_M queryentity = new WXXLCJD_M();
|
||||
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
this.UMID = 100860174;
|
||||
this.UMName = "线缆销售价格表查价单";
|
||||
this.CurMaster = Master;
|
||||
this.ModuleGV = grdWXXLCJD;
|
||||
this.CurEntity = entity;
|
||||
this.CurQueryEntity = queryentity;
|
||||
this.sQueryURLTarget = "WXXLCJDQuery.aspx";
|
||||
this.PageHeight = 600;
|
||||
this.PageWidth = 750;
|
||||
base.DataKeyNames = new string[] { "WXXLCJD_CJBH", "WXXLCJD_KHMC", "WXXLCJD_XMMC", "WXXLCJD_BZ" };
|
||||
this.Master.EnableAttachBtn = false;
|
||||
this.Master.EnableCopyBtn = false;
|
||||
this.Master.EnableDeleteBtn = false;
|
||||
this.Master.EnableEditBtn = false;
|
||||
this.Master.EnableNewBtn = false;
|
||||
this.Master.EnableViewBtn = false;
|
||||
if (!IsPostBack)
|
||||
{
|
||||
CurQueryEntity.FieldByName("CJRQS").Value = (new DateTime(DateTime.Now.Year, DateTime.Now.Month, 1)).ToShortDateString();
|
||||
CurQueryEntity.FieldByName("CJRQZ").Value = DateTime.Now.ToShortDateString();
|
||||
CurQueryEntity.FieldByName("ZT").Value = "Z";
|
||||
}
|
||||
|
||||
base.InitEntityByCondition();
|
||||
base.InitPage();
|
||||
if (!IsPostBack)
|
||||
{
|
||||
if (PageParam.GetRTrimString("BJDID").Equals(""))
|
||||
btnDR.Visible = false;
|
||||
Master_OnStandardQuery(null, null);
|
||||
}
|
||||
}
|
||||
|
||||
#region 模板继承事件
|
||||
|
||||
protected override void Master_OnStandardQuery(object sender, EventArgs e)
|
||||
{
|
||||
base.InitEntityByCondition();
|
||||
entity.EntityTable.QuerySelSql = GetQuerySQL();
|
||||
base.Master_OnStandardQuery(sender, e);
|
||||
entity.GridDataBind(grdWXXLCJD, tSession);
|
||||
}
|
||||
|
||||
protected override void moduleGV_PageIndexChanging(object sender, GridViewPageEventArgs e)
|
||||
{
|
||||
base.InitEntityByCondition();
|
||||
entity.EntityTable.QuerySelSql = GetQuerySQL();
|
||||
grdWXXLCJD.SelectedIndex = -1;
|
||||
base.moduleGV_PageIndexChanging(sender, e);
|
||||
}
|
||||
|
||||
protected override bool Master_BeforeDeleteAction(object sender, EventArgs e)
|
||||
{
|
||||
return base.Master_BeforeDeleteAction(sender, e);
|
||||
}
|
||||
|
||||
protected override bool Master_AfterDeleteAction(object sender, EventArgs e)
|
||||
{
|
||||
if (!base.Master_AfterDeleteAction(sender, e)) { return false; }
|
||||
base.InitEntityByCondition();
|
||||
entity.EntityTable.QuerySelSql = GetQuerySQL();
|
||||
entity.GridDataBind(grdWXXLCJD, tSession);
|
||||
grdWXXLCJD.SelectedIndex = -1;
|
||||
return true;
|
||||
}
|
||||
|
||||
protected override void moduleGV_RowDataBound(object sender, GridViewRowEventArgs e)
|
||||
{
|
||||
base.moduleGV_RowDataBound(sender, e);
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region 自定义事件
|
||||
|
||||
private string GetQuerySQL()
|
||||
{
|
||||
StringBuilder sSQL = new StringBuilder();
|
||||
sSQL.AppendLine("select WXXLCJD_CJBH ,CASE ISNULL(RSRYJBXX_RYMC,' ') WHEN ' ' THEN ' ' ELSE rtrim(WXXLCJD_GH) || '|' || RSRYJBXX_RYMC END AS WXXLCJD_GH,CASE ISNULL(WXXLCJD_WXHYBH,' ') WHEN ' ' THEN ' ' ELSE rtrim(WXXLCJD_WXHYBH) || '|' || WXHYGL_HYXM END AS WXXLCJD_CJHY,WXXLCJD_WXCJSJ,");
|
||||
sSQL.AppendLine(" CASE ISNULL(WXXLCJD_JGBID,' ') WHEN ' ' THEN ' ' ELSE rtrim(WXXLCJD_JGBID) || '|' || XLXSJGB_JGBMC END AS WXXLCJD_JGB,");
|
||||
sSQL.AppendLine(" CASE ISNULL(WXXLCJD_ZT,' ') WHEN 'I' THEN '进行' when 'Z' then '完成' ELSE WXXLCJD_ZT end as WXXLCJD_ZT,ISNULL(WXXLCJD_HSBZ,'N') AS WXXLCJD_HSBZ,WXXLCJD_CJZJE,MXSL,WXXLCJD_KHMC,WXXLCJD_XMMC,WXXLCJD_BZ,WXXLCJD_WHR,WXXLCJD_WHRID,WXXLCJD_WHSJ ");
|
||||
sSQL.AppendLine(" ,isnull(WXXLCJD_YDRBJD,'N') as WXXLCJD_YDRBJD,WXHYGL_SSQY ");
|
||||
sSQL.AppendLine(" from WXXLCJD ");
|
||||
sSQL.AppendLine(" left join XLXSJGB on XLXSJGB_JGBID = WXXLCJD_JGBID ");
|
||||
sSQL.AppendLine(" left join RSRYJBXX on RSRYJBXX_GH = WXXLCJD_GH ");
|
||||
sSQL.AppendLine(" left join ( ");
|
||||
sSQL.AppendLine(" SELECT WXHYGL_WXHYBH,min(WXHYGL_HYXM) AS WXHYGL_HYXM ,max(WXHYGL_SSQY) AS WXHYGL_SSQY FROM WXHYGL WHERE 1=1 GROUP BY WXHYGL_WXHYBH ) WXHY ON WXHYGL_WXHYBH = WXXLCJD_WXHYBH ");
|
||||
sSQL.AppendLine(" left join ( ");
|
||||
sSQL.AppendLine(" SELECT WXXLCJDMX_CJBH,count(WXXLCJDMX_XH) as MXSL FROM WXXLCJDMX WHERE 1=1 GROUP BY WXXLCJDMX_CJBH ) CJDMX ON WXXLCJDMX_CJBH = WXXLCJD_CJBH ");
|
||||
sSQL.AppendLine(" where 1=1 ");
|
||||
if (!string.IsNullOrEmpty(CurQueryEntity.FieldByName("ZT").Value.Trim()))
|
||||
{
|
||||
if (CurQueryEntity.FieldByName("ZT").Value.Trim().Equals("空"))
|
||||
{
|
||||
sSQL.AppendLine(" and isnull(WXXLCJD_ZT,' ') = ' ' ");
|
||||
}
|
||||
else
|
||||
{
|
||||
sSQL.AppendLine(" and WXXLCJD_ZT = :pZT ");
|
||||
entity.Param.Add("pZT", CurQueryEntity.FieldByName("ZT").Value.ToString().Trim());
|
||||
}
|
||||
}
|
||||
if (!string.IsNullOrEmpty(CurQueryEntity.FieldByName("CJBH").Value.Trim()))
|
||||
{
|
||||
sSQL.AppendLine(" and WXXLCJD_CJBH LIKE :pCJBH ");
|
||||
entity.Param.Add("pCJBH", "%" + CurQueryEntity.FieldByName("CJBH").Value.ToString().Trim() + "%");
|
||||
}
|
||||
if (!string.IsNullOrEmpty(CurQueryEntity.FieldByName("CJRQS").Value.Trim()))
|
||||
{
|
||||
sSQL.AppendLine(" and WXXLCJD_WXCJSJ >= CONVERT(DATETIME,:pCJRQS) ");
|
||||
entity.Param.Add("pCJRQS", CurQueryEntity.FieldByName("CJRQS").Value.ToString().Trim());
|
||||
}
|
||||
if (!string.IsNullOrEmpty(CurQueryEntity.FieldByName("CJRQZ").Value.Trim()))
|
||||
{
|
||||
sSQL.AppendLine(" and WXXLCJD_WXCJSJ < CONVERT(DATETIME,:pCJRQZ) ");
|
||||
entity.Param.Add("pCJRQZ", CMISproConvert.StrToDateTime(CurQueryEntity.FieldByName("CJRQZ").Value.ToString().Trim()).AddDays(1));
|
||||
}
|
||||
if (!string.IsNullOrEmpty(CurQueryEntity.FieldByName("GH").Value.Trim()))
|
||||
{
|
||||
sSQL.AppendLine(" and ((WXXLCJD_GH = :pCXGH) or (WXXLCJD_WXHYBH = (select WXHYGL_WXHYBH from WXHYGL WHERE WXHYGL_BDSJHM=(select RSRYJBXX_MOBILE from RSRYJBXX where RSRYJBXX_GH = :pCXGH)))) ");
|
||||
entity.Param.Add("pCXGH", CurQueryEntity.FieldByName("GH").Value.ToString().Trim());
|
||||
}
|
||||
if (!string.IsNullOrEmpty(CurQueryEntity.FieldByName("SSQY").Value.Trim()))
|
||||
{
|
||||
sSQL.AppendLine(" and WXHYGL_SSQY = :pSSQY ");
|
||||
entity.Param.Add("pSSQY", CurQueryEntity.FieldByName("SSQY").Value.ToString().Trim());
|
||||
}
|
||||
if (!string.IsNullOrEmpty(CurQueryEntity.FieldByName("CJHY").Value.Trim()))
|
||||
{
|
||||
sSQL.AppendLine(" and WXXLCJD_WXHYBH = :pCJHY ");
|
||||
entity.Param.Add("pCJHY", CurQueryEntity.FieldByName("CJHY").Value.ToString().Trim());
|
||||
}
|
||||
if (!string.IsNullOrEmpty(CurQueryEntity.FieldByName("DRBZ").Value.Trim()))
|
||||
{
|
||||
if (CurQueryEntity.FieldByName("DRBZ").Value.Trim().Equals("Y"))
|
||||
{
|
||||
sSQL.AppendLine(" and WXXLCJD_YDRBJD = 'Y' ");
|
||||
}
|
||||
else
|
||||
{
|
||||
sSQL.AppendLine(" and isnull(WXXLCJD_YDRBJD,'N') = 'N' ");
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
if (GetOption(100860099,"BJU021").Equals("Y"))
|
||||
{
|
||||
sSQL.AppendLine(" and ((WXXLCJD_GH = :pGH) or (WXXLCJD_WXHYBH = (select WXHYGL_WXHYBH from WXHYGL WHERE WXHYGL_BDSJHM=(select RSRYJBXX_MOBILE from RSRYJBXX where RSRYJBXX_GH = :pGH)))) ");
|
||||
entity.Param.Add("pGH", tSession.UserId);
|
||||
}
|
||||
|
||||
|
||||
sSQL.AppendLine(" order by WXXLCJD_CJBH desc");
|
||||
return sSQL.ToString();
|
||||
}
|
||||
protected void btnDR_Click(object sender, EventArgs e)
|
||||
{
|
||||
TDatabase dberp = TContextDatabases.GetDatabase("DBERP");
|
||||
TSQL SQL = new TSQL(dberp);
|
||||
if (grdWXXLCJD.SelectedIndex < 0)
|
||||
{
|
||||
ShowMessage("请选择处理记录!");
|
||||
return;
|
||||
}
|
||||
//更新报价单主表客户名称和项目名称
|
||||
if (!grdWXXLCJD.DataKeys[grdWXXLCJD.SelectedIndex]["WXXLCJD_KHMC"].ToString().Equals("")
|
||||
&& !grdWXXLCJD.DataKeys[grdWXXLCJD.SelectedIndex]["WXXLCJD_XMMC"].ToString().Trim().Equals(""))
|
||||
{
|
||||
SQL.Clear();
|
||||
SQL.Add(" UPDATE XLXSBJD SET ");
|
||||
SQL.Add(" XLXSBJD_KH = :XLXSBJD_KH,");
|
||||
SQL.Add(" XLXSBJD_XMMC = :XLXSBJD_XMMC");
|
||||
SQL.Add(" WHERE 1=1 AND XLXSBJD_BJDID = :pBJDID ");
|
||||
SQL.ParamByName("pBJDID").Value = PageParam.GetRTrimString("BJDID");
|
||||
SQL.ParamByName("XLXSBJD_KH").Value = grdWXXLCJD.DataKeys[grdWXXLCJD.SelectedIndex]["WXXLCJD_KHMC"].ToString().Trim();
|
||||
SQL.ParamByName("XLXSBJD_XMMC").Value = grdWXXLCJD.DataKeys[grdWXXLCJD.SelectedIndex]["WXXLCJD_XMMC"].ToString().Trim();
|
||||
dberp.ExecSQL(SQL);
|
||||
//更新XLXSBJKZXX_KZZF01为备注
|
||||
if (!grdWXXLCJD.DataKeys[grdWXXLCJD.SelectedIndex]["WXXLCJD_BZ"].ToString().Equals(""))
|
||||
{
|
||||
SQL.Clear();
|
||||
SQL.Add(" UPDATE XLXSBJKZXX SET ");
|
||||
SQL.Add(" XLXSBJKZXX_KZZF01 = :XLXSBJKZXX_KZZF01");
|
||||
SQL.Add(" WHERE 1=1 AND XLXSBJKZXX_BJDID = :pBJDID ");
|
||||
SQL.ParamByName("pBJDID").Value = PageParam.GetRTrimString("BJDID");
|
||||
SQL.ParamByName("XLXSBJKZXX_KZZF01").Value = grdWXXLCJD.DataKeys[grdWXXLCJD.SelectedIndex]["WXXLCJD_BZ"].ToString().Trim();
|
||||
dberp.ExecSQL(SQL);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
string sErrorNum = "";
|
||||
SQL.Clear();
|
||||
SQL.Add(" SELECT WXXLCJDMX_XLXHID,WXXLCJDMX_XLGGID,WXXLCJDMX_DYDJID,WXXLCJDMX_XLBZID,WXXLCJDMX_CJSL,WXXLCJDMX_JLDW ");
|
||||
SQL.Add(" ,XLXSCJDYZZ0_YZZ01,XLXSCJDYZZ0_YZZ02,XLXSCJDYZZ0_YZZ03,XLXSCJDYZZ0_YZZ04,XLXSCJDYZZ0_YZZ05 ");
|
||||
SQL.Add(" ,XLXSCJDYZZ0_YZZ06,XLXSCJDYZZ0_YZZ07,XLXSCJDYZZ0_YZZ08,XLXSCJDYZZ0_YZZ09,XLXSCJDYZZ0_YZZ10 ");
|
||||
SQL.Add(" ,XLXSCJDYZZ0_YZZ11,XLXSCJDYZZ0_YZZ12,XLXSCJDYZZ0_YZZ13,XLXSCJDYZZ0_YZZ14,XLXSCJDYZZ0_YZZ15 ");
|
||||
SQL.Add(" ,XLXSCJDYZZ0_YZZ16,XLXSCJDYZZ0_YZZ17,XLXSCJDYZZ0_YZZ18,XLXSCJDYZZ0_YZZ19,XLXSCJDYZZ0_YZZ20 ");
|
||||
SQL.Add(" FROM WXXLCJDMX ");
|
||||
SQL.Add(" left join XLXSCJDYZZ0 on XLXSCJDYZZ0_CJBH = WXXLCJDMX_CJBH and XLXSCJDYZZ0_XH=WXXLCJDMX_XH ");
|
||||
SQL.Add(" WHERE 1=1 AND WXXLCJDMX_CJBH = :pCJBH ");
|
||||
SQL.ParamByName("pCJBH").Value = grdWXXLCJD.DataKeys[grdWXXLCJD.SelectedIndex]["WXXLCJD_CJBH"].ToString().Trim();
|
||||
DataSet ds = dberp.OpenDataSet(SQL);
|
||||
if (ds.Tables[0].Rows.Count > 0)
|
||||
{
|
||||
try
|
||||
{
|
||||
string sBJDID = PageParam.GetRTrimString("BJDID");
|
||||
int iXH = CMISproDataBase.GetMaxXH("DBERP", "XLXSBJDMX", "XLXSBJDMX_XH", "XLXSBJDMX_BJDID='" + PageParam.GetRTrimString("BJDID") + "'");
|
||||
int iXSSX = CMISproDataBase.GetMaxXH("DBERP", "XLXSBJDMX", "XLXSBJDMX_XSSX", "XLXSBJDMX_BJDID = '" + PageParam.GetRTrimString("BJDID") + "'");
|
||||
|
||||
string sXLXHID = "", sXLGGID = "", sST = "", sDYDJ = "";
|
||||
string sJLDW = "";//计量单位
|
||||
string sBJCP = "";
|
||||
TSQL sSQL = new TSQL(dberp);
|
||||
int iStartXH = 0;
|
||||
string sBJU003 = GetOption(100860000, "BJU003");
|
||||
dberp.BeginTrans();
|
||||
for (int i = 0; i < ds.Tables[0].Rows.Count; i++)
|
||||
{
|
||||
sXLXHID = ds.Tables[0].Rows[i]["WXXLCJDMX_XLXHID"].ToString().Trim();
|
||||
sXLGGID = ds.Tables[0].Rows[i]["WXXLCJDMX_XLGGID"].ToString().Trim();
|
||||
sJLDW = ds.Tables[0].Rows[i]["WXXLCJDMX_JLDW"].ToString().Trim();
|
||||
if (sJLDW.Equals(""))
|
||||
{
|
||||
sJLDW = sBJU003;
|
||||
}
|
||||
if (sXLXHID.Equals(""))
|
||||
sXLXHID = "/";
|
||||
if (sXLGGID.Equals(""))
|
||||
sXLGGID = "/";
|
||||
|
||||
sSQL.Clear();
|
||||
sSQL.Add(" insert into XLXSBJDMX( ");
|
||||
sSQL.Add(" XLXSBJDMX_BJDID, XLXSBJDMX_XH, XLXSBJDMX_XSSX, XLXSBJDMX_XLXHID, XLXSBJDMX_XLGGID,XLXSBJDMX_XDXLXHID,XLXSBJDMX_XDXLBZID, ");
|
||||
sSQL.Add(" XLXSBJDMX_XLBZID,XLXSBJDMX_DYDJID,XLXSBJDMX_XLYSID,XLXSBJDMX_BJCP,XLXSBJDMX_BJCPSD,XLXSBJDMX_WGCPBZ, ");
|
||||
sSQL.Add(" XLXSBJDMX_JLDW,XLXSBJDMX_BJSL,XLXSBJDMX_TZQCPBJ,XLXSBJDMX_TZCPBJ,XLXSBJDMX_CPBJ,XLXSBJDMX_YXJG,XLXSBJDMX_YZ,XLXSBJDMX_YSCP,XLXSBJDMX_BJSDBZ, ");
|
||||
sSQL.Add(" XLXSBJDMX_JGBJJ,XLXSBJDMX_CLCB, XLXSBJDMX_JGBBJ,XLXSBJDMX_DZSC,XLXSBJDMX_WHR,XLXSBJDMX_WHRID,XLXSBJDMX_WHSJ,");
|
||||
sSQL.Add(" XLXSBJDMX_BJJE,XLXSBJDMX_TZQBJJE,XLXSBJDMX_JGBBJJCE,XLXSBJDMX_JGBBJJCL,XLXSBJDMX_CLZL,");
|
||||
sSQL.Add(" XLXSBJDMX_BJDHQCLCB,XLXSBJDMX_CLCBJCL,XLXSBJDMX_JGBBJLJJCL,XLXSBJDMX_WBBJDID,XLXSBJDMX_DRHH,XLXSBJDMX_WLID,XLXSBJDMX_BZ,XLXSBJDMX_CJDID) ");
|
||||
sSQL.Add(" values(");
|
||||
sSQL.Add(" :XLXSBJDMX_BJDID, :XLXSBJDMX_XH, :XLXSBJDMX_XSSX, :XLXSBJDMX_XLXHID, :XLXSBJDMX_XLGGID,:XLXSBJDMX_XDXLXHID,:XLXSBJDMX_XDXLBZID, ");
|
||||
sSQL.Add(" :XLXSBJDMX_XLBZID, isnull(:XLXSBJDMX_DYDJID,' '), :XLXSBJDMX_XLYSID, :XLXSBJDMX_BJCP, :XLXSBJDMX_BJCPSD,:XLXSBJDMX_WGCPBZ, ");
|
||||
sSQL.Add(" :XLXSBJDMX_JLDW, :XLXSBJDMX_BJSL, :XLXSBJDMX_TZQCPBJ,:XLXSBJDMX_TZCPBJ,:XLXSBJDMX_CPBJ,:XLXSBJDMX_YXJG,:XLXSBJDMX_YZ,:XLXSBJDMX_YSCP,:XLXSBJDMX_BJSDBZ, :XLXSBJDMX_JGBJJ, :XLXSBJDMX_CLCB, :XLXSBJDMX_JGBBJ, ");
|
||||
sSQL.Add(" :XLXSBJDMX_DZSC, :XLXSBJDMX_WHR, :XLXSBJDMX_WHRID, :XLXSBJDMX_WHSJ,:XLXSBJDMX_BJJE,:XLXSBJDMX_TZQBJJE,:XLXSBJDMX_JGBBJJCE,:XLXSBJDMX_JGBBJJCL,:XLXSBJDMX_CLZL,");
|
||||
sSQL.Add(" :XLXSBJDMX_BJDHQCLCB,:XLXSBJDMX_CLCBJCL,:XLXSBJDMX_JGBBJLJJCL,:XLXSBJDMX_WBBJDID,:XLXSBJDMX_DRHH,:XLXSBJDMX_WLID,:XLXSBJDMX_BZ,:XLXSBJDMX_CJDID)");
|
||||
|
||||
iXH = iXH + 1;
|
||||
iXSSX = iXSSX + 1;
|
||||
if (i == 0)
|
||||
{
|
||||
iStartXH = iXH;
|
||||
}
|
||||
sST = ds.Tables[0].Rows[i]["WXXLCJDMX_XLBZID"].ToString().Trim();
|
||||
sDYDJ = ds.Tables[0].Rows[i]["WXXLCJDMX_DYDJID"].ToString().Trim().Replace('K', 'k').Replace('v', 'V');
|
||||
sDYDJ = sDYDJ.Equals("") ? " " : sDYDJ;
|
||||
double fBJSL = CMISproConvert.StrToFloat(ds.Tables[0].Rows[i]["WXXLCJDMX_CJSL"].ToString().Trim());
|
||||
sSQL.ParamByName("XLXSBJDMX_BJDID").Value = sBJDID;
|
||||
sSQL.ParamByName("XLXSBJDMX_XH").Value = iXH;
|
||||
sSQL.ParamByName("XLXSBJDMX_XSSX").Value = iXSSX;
|
||||
sSQL.ParamByName("XLXSBJDMX_XLXHID").Value = sXLXHID;
|
||||
sSQL.ParamByName("XLXSBJDMX_XLGGID").Value = sXLGGID;
|
||||
sSQL.ParamByName("XLXSBJDMX_XLBZID").Value = sST;
|
||||
sSQL.ParamByName("XLXSBJDMX_XDXLXHID").Value = sXLXHID;
|
||||
sSQL.ParamByName("XLXSBJDMX_XDXLBZID").Value = sST;
|
||||
sSQL.ParamByName("XLXSBJDMX_DYDJID").Value = sDYDJ;
|
||||
sSQL.ParamByName("XLXSBJDMX_JLDW").Value = sJLDW;
|
||||
sSQL.ParamByName("XLXSBJDMX_XLYSID").Value = XLBJDInfo.GetDefaultYSID(sXLXHID, sXLGGID);
|
||||
sSQL.ParamByName("XLXSBJDMX_BJCPSD").Value = "N";
|
||||
sBJCP = XLBJDUtils.GroupBJCPXX(sXLXHID, sXLGGID, sDYDJ);
|
||||
sSQL.ParamByName("XLXSBJDMX_BJCP").Value = sBJCP;
|
||||
sSQL.ParamByName("XLXSBJDMX_BJSL").Value = fBJSL;
|
||||
sSQL.ParamByName("XLXSBJDMX_JGBBJ").Value = 0.0;
|
||||
sSQL.ParamByName("XLXSBJDMX_TZQCPBJ").Value = 0.0;
|
||||
sSQL.ParamByName("XLXSBJDMX_TZCPBJ").Value = 0;
|
||||
sSQL.ParamByName("XLXSBJDMX_CPBJ").Value = 0.0;
|
||||
sSQL.ParamByName("XLXSBJDMX_BJSDBZ").Value = "N";
|
||||
sSQL.ParamByName("XLXSBJDMX_YXJG").Value = 0.0;
|
||||
sSQL.ParamByName("XLXSBJDMX_JGBJJ").Value = 0.0;
|
||||
sSQL.ParamByName("XLXSBJDMX_CLCB").Value = 0.0;
|
||||
sSQL.ParamByName("XLXSBJDMX_CLZL").Value = 0.0;
|
||||
sSQL.ParamByName("XLXSBJDMX_BJDHQCLCB").Value = 0.0;
|
||||
sSQL.ParamByName("XLXSBJDMX_BJJE").Value = NumberUtils.RoundX(fBJSL * Convert.ToDouble(sSQL.ParamByName("XLXSBJDMX_CPBJ").Value), 2);
|
||||
sSQL.ParamByName("XLXSBJDMX_TZQBJJE").Value = NumberUtils.RoundX(fBJSL * Convert.ToDouble(sSQL.ParamByName("XLXSBJDMX_CPBJ").Value), 2);
|
||||
sSQL.ParamByName("XLXSBJDMX_JGBBJJCE").Value = 0.0;
|
||||
sSQL.ParamByName("XLXSBJDMX_JGBBJJCL").Value = 0.0;
|
||||
sSQL.ParamByName("XLXSBJDMX_CLCBJCL").Value = 0.0;
|
||||
sSQL.ParamByName("XLXSBJDMX_JGBBJLJJCL").Value = 0.0;
|
||||
sSQL.ParamByName("XLXSBJDMX_CJDID").Value = grdWXXLCJD.DataKeys[grdWXXLCJD.SelectedIndex]["WXXLCJD_CJBH"].ToString().Trim();
|
||||
sSQL.ParamByName("XLXSBJDMX_WBBJDID").Value = "";
|
||||
sSQL.ParamByName("XLXSBJDMX_DRHH").Value = 0;
|
||||
sSQL.ParamByName("XLXSBJDMX_WLID").Value = "";
|
||||
sSQL.ParamByName("XLXSBJDMX_WGCPBZ").Value = "N";
|
||||
sSQL.ParamByName("XLXSBJDMX_YZ").Value = "";
|
||||
sSQL.ParamByName("XLXSBJDMX_YSCP").Value = "";
|
||||
sSQL.ParamByName("XLXSBJDMX_BZ").Value = "";
|
||||
if (XLBJDUtils.ISDZBZ(sST))
|
||||
{
|
||||
sSQL.ParamByName("XLXSBJDMX_DZSC").Value = "Y";
|
||||
}
|
||||
else
|
||||
{
|
||||
sSQL.ParamByName("XLXSBJDMX_DZSC").Value = "N";
|
||||
}
|
||||
sSQL.ParamByName("XLXSBJDMX_WHR").Value = tSession.UserName;
|
||||
sSQL.ParamByName("XLXSBJDMX_WHRID").Value = tSession.UserId;
|
||||
sSQL.ParamByName("XLXSBJDMX_WHSJ").Value = DateTime.Now;
|
||||
dberp.ExecSQL(sSQL);
|
||||
|
||||
sSQL.Clear();
|
||||
sSQL.Add(@"INSERT INTO XLXSBJDYZZ0
|
||||
(XLXSBJDYZZ0_BJDID,XLXSBJDYZZ0_XH,XLXSBJDYZZ0_YZZ01 ,XLXSBJDYZZ0_YZZ02,XLXSBJDYZZ0_YZZ03,XLXSBJDYZZ0_YZZ04,XLXSBJDYZZ0_YZZ05,
|
||||
XLXSBJDYZZ0_YZZ06,XLXSBJDYZZ0_YZZ07,XLXSBJDYZZ0_YZZ08,XLXSBJDYZZ0_YZZ09,XLXSBJDYZZ0_YZZ10,
|
||||
XLXSBJDYZZ0_YZZ11,XLXSBJDYZZ0_YZZ12,XLXSBJDYZZ0_YZZ13,XLXSBJDYZZ0_YZZ14,XLXSBJDYZZ0_YZZ15,
|
||||
XLXSBJDYZZ0_YZZ16,XLXSBJDYZZ0_YZZ17,XLXSBJDYZZ0_YZZ18 ,XLXSBJDYZZ0_YZZ19,XLXSBJDYZZ0_YZZ20)
|
||||
VALUES( :XLXSBJDYZZ0_BJDID,:XLXSBJDYZZ0_XH,:XLXSBJDYZZ0_YZZ01 ,:XLXSBJDYZZ0_YZZ02,:XLXSBJDYZZ0_YZZ03,:XLXSBJDYZZ0_YZZ04,:XLXSBJDYZZ0_YZZ05,
|
||||
:XLXSBJDYZZ0_YZZ06,:XLXSBJDYZZ0_YZZ07,:XLXSBJDYZZ0_YZZ08,:XLXSBJDYZZ0_YZZ09,:XLXSBJDYZZ0_YZZ10,
|
||||
:XLXSBJDYZZ0_YZZ11,:XLXSBJDYZZ0_YZZ12,:XLXSBJDYZZ0_YZZ13,:XLXSBJDYZZ0_YZZ14,:XLXSBJDYZZ0_YZZ15,
|
||||
:XLXSBJDYZZ0_YZZ16,:XLXSBJDYZZ0_YZZ17,:XLXSBJDYZZ0_YZZ18 ,:XLXSBJDYZZ0_YZZ19,:XLXSBJDYZZ0_YZZ20)");
|
||||
sSQL.ParamByName("XLXSBJDYZZ0_BJDID").Value = sBJDID;
|
||||
sSQL.ParamByName("XLXSBJDYZZ0_XH").Value = iXH;
|
||||
for (int z = 1; z <= 20; z++)
|
||||
{
|
||||
string sYZ = z.ToString().PadLeft(2, '0');
|
||||
sSQL.ParamByName("XLXSBJDYZZ0_YZZ" + sYZ).Value = CMISproConvert.StrToFloat(ds.Tables[0].Rows[i]["XLXSCJDYZZ0_YZZ" + sYZ].ToString().Trim(), 0);
|
||||
}
|
||||
|
||||
dberp.ExecSQL(sSQL);
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
XLBJDUtils.UpdateXDXLBZID(dberp, sSQL, sBJDID, "", iStartXH - 1, ref sErrorNum);
|
||||
XLBJDUtils.SyncXLXSBJXLGGTHB_ByXLXSBJDMX_Batch(dberp, tSession, sBJDID, "", iStartXH - 1);
|
||||
//研发自测:王威 2025/06/29 21:01:54sss
|
||||
WXXLCJDMXList.CalcBJDMXAfterIns(dberp, sSQL, sBJDID, iStartXH, GetOption(100860000, "BJU002"), sBJU003, GetOption(100860000, "BJU018"), tSession.UserId, tSession.UserName, ref sErrorNum);
|
||||
|
||||
sSQL.Clear();
|
||||
sSQL.Add(" update WXXLCJD set WXXLCJD_YDRBJD='Y' where WXXLCJD_CJBH = :pCJBH ");
|
||||
sSQL.ParamByName("pCJBH").Value = grdWXXLCJD.DataKeys[grdWXXLCJD.SelectedIndex]["WXXLCJD_CJBH"].ToString().Trim();
|
||||
dberp.ExecSQL(sSQL);
|
||||
|
||||
dberp.CommitTrans();
|
||||
DialogOperationScript dos = new DialogOperationScript(this);
|
||||
ShowMessage("导入成功!");
|
||||
CloseWindow();
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
dberp.RollbackTrans();
|
||||
ShowMessage("导入出现异常情况:" + ex.Message);
|
||||
return;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
ShowMessage("导入明细数量为0,请重新选择!");
|
||||
return;
|
||||
}
|
||||
}
|
||||
protected void btnCKMX_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (grdWXXLCJD.SelectedIndex < 0)
|
||||
{
|
||||
ShowMessage("请选择处理记录!");
|
||||
return;
|
||||
}
|
||||
TPageParams App = new TPageParams();
|
||||
App.UrlPath = "WXXLCJDMXList.aspx";
|
||||
App.AddString("CJBH", grdWXXLCJD.DataKeys[grdWXXLCJD.SelectedIndex]["WXXLCJD_CJBH"].ToString().Trim());
|
||||
App.AddString("BJDID", PageParam.GetRTrimString("BJDID"));
|
||||
App.AddString("txtOpen", txtOpen.ClientID);
|
||||
OpenDialogClickBtn(App, btnAutoClose.ClientID);
|
||||
}
|
||||
protected void grdWXXLCJD_RowDoubleClick(object sender, GThinking.N_CONTROL.RowDoubleClickEventArgs e)
|
||||
{
|
||||
TPageParams App = new TPageParams();
|
||||
App.UrlPath = "WXXLCJDMXList.aspx";
|
||||
App.AddString("CJBH", grdWXXLCJD.DataKeys[grdWXXLCJD.SelectedIndex]["WXXLCJD_CJBH"].ToString().Trim());
|
||||
App.AddString("BJDID", PageParam.GetRTrimString("BJDID"));
|
||||
App.AddString("txtOpen", txtOpen.ClientID);
|
||||
OpenDialogClickBtn(App, btnAutoClose.ClientID);
|
||||
}
|
||||
protected void btnAutoClose_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (txtOpen.Value.Trim().Equals("CLOSE"))
|
||||
{
|
||||
CloseWindow();
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
Generated
+88
@@ -0,0 +1,88 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// 此代码由工具生成。
|
||||
// 运行时版本:2.0.50727.9179
|
||||
//
|
||||
// 对此文件的更改可能会导致不正确的行为,并且如果
|
||||
// 重新生成代码,这些更改将会丢失。
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace GThinking.U20261363_N_XLXSBJ {
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// WXXLCJDList 类。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的类。
|
||||
/// </remarks>
|
||||
public partial class WXXLCJDList {
|
||||
|
||||
/// <summary>
|
||||
/// AddTable 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Table AddTable;
|
||||
|
||||
/// <summary>
|
||||
/// btnCKMX 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtToolButton btnCKMX;
|
||||
|
||||
/// <summary>
|
||||
/// btnDR 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtToolButton btnDR;
|
||||
|
||||
/// <summary>
|
||||
/// btnAutoClose 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtButton btnAutoClose;
|
||||
|
||||
/// <summary>
|
||||
/// grdWXXLCJD 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtGridView grdWXXLCJD;
|
||||
|
||||
/// <summary>
|
||||
/// txtOpen 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.HiddenField txtOpen;
|
||||
|
||||
/// <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,100 @@
|
||||
<%@ Page Language="C#" MasterPageFile="~/N_MODEL/Page/MasterSingleGrid.Master" AutoEventWireup="true"
|
||||
Codebehind="WXXLCJDMXList.aspx.cs" Inherits="GThinking.U20261363_N_XLXSBJ.WXXLCJDMXList" Title="线缆销售价格表查价单明细"
|
||||
EnableEventValidation="false" %>
|
||||
|
||||
<%@ MasterType VirtualPath="~/N_MODEL/Page/MasterSingleGrid.Master" %>
|
||||
<asp:Content ID="ContentButton" ContentPlaceHolderID="CPHButton" runat="server">
|
||||
<asp:Table ID="AddTable" runat="server" CellPadding="0" CellSpacing="0">
|
||||
<asp:TableRow>
|
||||
<asp:TableCell HorizontalAlign="left" BorderWidth="0px" BorderStyle="NotSet">
|
||||
<gtc:gtToolButton ID="btnDR" BorderWidth="0px" BorderStyle="Notset" Width="106px"
|
||||
Height="19px" ButtonType="Button" ShowCaption="True" Caption="导入报价单明细" OnClick="btnDR_Click"
|
||||
runat="server" />
|
||||
</asp:TableCell>
|
||||
</asp:TableRow>
|
||||
</asp:Table>
|
||||
</asp:Content>
|
||||
<asp:Content ID="ContentForm" ContentPlaceHolderID="CPHForm" runat="server">
|
||||
<gtc:gtGridView ID="grdWXXLCJD" runat="server" CellPadding="2" CellSpacing="2"
|
||||
AutoGenerateColumns="False" AllowPaging="True" EnableViewState="false" >
|
||||
<FixRowCol TableHeight="100%" TableWidth="100%" />
|
||||
<Columns>
|
||||
<asp:BoundField DataField="WXXLCJDMX_XH" HeaderText="序号">
|
||||
<itemstyle horizontalalign="Right" width="80px" />
|
||||
<headerstyle width="80px" />
|
||||
</asp:BoundField>
|
||||
<asp:BoundField DataField="WXXLCJDMX_XLXHID" HeaderText="型号">
|
||||
<itemstyle width="120px" />
|
||||
<headerstyle width="120px" />
|
||||
</asp:BoundField>
|
||||
<asp:BoundField DataField="WXXLCJDMX_XLGGID" HeaderText="规格">
|
||||
<itemstyle width="120px" />
|
||||
<headerstyle width="120px" />
|
||||
</asp:BoundField>
|
||||
<asp:BoundField DataField="WXXLCJDMX_XLBZID" HeaderText="标准">
|
||||
<itemstyle width="60px" />
|
||||
<headerstyle width="60px" />
|
||||
</asp:BoundField>
|
||||
<asp:BoundField DataField="WXXLCJDMX_DYDJID" HeaderText="电压等级">
|
||||
<itemstyle width="120px" />
|
||||
<headerstyle width="120px" />
|
||||
</asp:BoundField>
|
||||
<asp:BoundField DataField="WXXLCJDMX_JLDW" HeaderText="计量单位">
|
||||
<itemstyle width="80px" />
|
||||
<headerstyle width="80px" />
|
||||
</asp:BoundField>
|
||||
<asp:BoundField DataField="WXXLCJDMX_CJSL" HeaderText="查价数量">
|
||||
<itemstyle width="80px" horizontalalign="Right"></itemstyle>
|
||||
<headerstyle width="80px" />
|
||||
</asp:BoundField>
|
||||
<asp:BoundField DataField="WXXLCJDMX_JGBBJ" HeaderText="表价">
|
||||
<itemstyle width="80px" horizontalalign="Right"></itemstyle>
|
||||
<headerstyle width="80px" />
|
||||
</asp:BoundField>
|
||||
<asp:BoundField DataField="WXXLCJDMX_FDBL" HeaderText="浮动比例(%)">
|
||||
<itemstyle width="80px" horizontalalign="Right"></itemstyle>
|
||||
<headerstyle width="80px" />
|
||||
</asp:BoundField>
|
||||
<asp:BoundField DataField="WXXLCJDMX_FDHJG" HeaderText="价格">
|
||||
<itemstyle width="80px" horizontalalign="Right"></itemstyle>
|
||||
<headerstyle width="80px" />
|
||||
</asp:BoundField>
|
||||
<asp:BoundField DataField="WXXLCJDMX_FDHJE" HeaderText="金额">
|
||||
<itemstyle width="80px" horizontalalign="Right"></itemstyle>
|
||||
<headerstyle width="80px" />
|
||||
</asp:BoundField>
|
||||
|
||||
</Columns>
|
||||
<ColumnsEx>
|
||||
<gtc:gtGridView_Column DataField="WXXLCJDMX_XH" ShowHint="True">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="WXXLCJDMX_XLXHID" ShowHint="True">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="WXXLCJDMX_XLGGID" ShowHint="True">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="WXXLCJDMX_XLBZID" ShowHint="True">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="WXXLCJDMX_DYDJID" ShowHint="True">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="WXXLCJDMX_JLDW" ShowHint="True">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="WXXLCJDMX_CJSL" EditType="etNumber" NumberIsQuantity = "true"
|
||||
NumberDecimalPlace="3" ShowHint="True">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="WXXLCJDMX_JGBBJ" EditType="etNumber"
|
||||
NumberDecimalPlace="5" ShowHint="True">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="WXXLCJDMX_FDBL" EditType="etNumber"
|
||||
NumberDecimalPlace="2" ShowHint="True">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="WXXLCJDMX_FDHJG" EditType="etNumber"
|
||||
NumberDecimalPlace="5" ShowHint="True">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="WXXLCJDMX_FDHJE" EditType="etNumber"
|
||||
NumberDecimalPlace="2" ShowHint="True">
|
||||
</gtc:gtGridView_Column>
|
||||
|
||||
</ColumnsEx>
|
||||
</gtc:gtGridView>
|
||||
</asp:Content>
|
||||
|
||||
@@ -0,0 +1,491 @@
|
||||
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_MISPRO.Utility;
|
||||
using GThinking.N_PUBLIC;
|
||||
using GThinking.N_WORKFLOW;
|
||||
using System.Text;
|
||||
using GThinking.N_MISPRO.MISPROAS;
|
||||
using System.Collections.Generic;
|
||||
using GThinking.N_CONTROL;
|
||||
using GThinking.N_MISPRO.TableCache;
|
||||
|
||||
namespace GThinking.U20261363_N_XLXSBJ
|
||||
{
|
||||
public partial class WXXLCJDMXList : SingleGridBase
|
||||
{
|
||||
WXXLCJDMX entity = new WXXLCJDMX();
|
||||
int iXSWS = 5;
|
||||
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
this.UMID = 100860174;
|
||||
this.UMName = "线缆销售价格表查价单";
|
||||
this.CurMaster = Master;
|
||||
this.ModuleGV = grdWXXLCJD;
|
||||
this.CurEntity = entity;
|
||||
this.PageHeight = 600;
|
||||
this.PageWidth = 750;
|
||||
base.DataKeyNames = new string[] { "WXXLCJDMX_CJBH" };
|
||||
this.Master.EnableAttachBtn = false;
|
||||
this.Master.EnableCopyBtn = false;
|
||||
this.Master.EnableDeleteBtn = false;
|
||||
this.Master.EnableEditBtn = false;
|
||||
this.Master.EnableNewBtn = false;
|
||||
this.Master.EnableQueryBtn = false;
|
||||
this.Master.EnableViewBtn = false;
|
||||
|
||||
|
||||
iXSWS = string.IsNullOrEmpty(GetOption(100860001, "BJU002")) ? 5 : CMISproConvert.StrToInt(GetOption(100860001, "BJU002"));
|
||||
if (iXSWS < 0)
|
||||
iXSWS = 0;
|
||||
else if (iXSWS > 8)
|
||||
iXSWS = 8;
|
||||
if (!IsPostBack)
|
||||
{
|
||||
if (PageParam.GetRTrimString("BJDID").Equals(""))
|
||||
btnDR.Visible = false;
|
||||
}
|
||||
grdWXXLCJD.FindColumnExByFieldName("WXXLCJDMX_JGBBJ").NumberDecimalPlace = iXSWS;
|
||||
grdWXXLCJD.FindColumnExByFieldName("WXXLCJDMX_FDHJG").NumberDecimalPlace = iXSWS;
|
||||
base.InitPage();
|
||||
this.ModuleGV.OnClientDblClick = "return false;";
|
||||
if (!IsPostBack)
|
||||
{
|
||||
InitControl();
|
||||
Master_OnStandardQuery(null, null);
|
||||
}
|
||||
}
|
||||
|
||||
#region 模板继承事件
|
||||
|
||||
protected override void Master_OnStandardQuery(object sender, EventArgs e)
|
||||
{
|
||||
entity.EntityTable.QuerySelSql = GetQuerySQL();
|
||||
base.Master_OnStandardQuery(sender, e);
|
||||
entity.GridDataBind(grdWXXLCJD, tSession);
|
||||
}
|
||||
|
||||
protected override void moduleGV_PageIndexChanging(object sender, GridViewPageEventArgs e)
|
||||
{
|
||||
entity.EntityTable.QuerySelSql = GetQuerySQL();
|
||||
grdWXXLCJD.SelectedIndex = -1;
|
||||
base.moduleGV_PageIndexChanging(sender, e);
|
||||
}
|
||||
|
||||
protected override bool Master_BeforeDeleteAction(object sender, EventArgs e)
|
||||
{
|
||||
return base.Master_BeforeDeleteAction(sender, e);
|
||||
}
|
||||
|
||||
protected override bool Master_AfterDeleteAction(object sender, EventArgs e)
|
||||
{
|
||||
if (!base.Master_AfterDeleteAction(sender, e)) { return false; }
|
||||
entity.EntityTable.QuerySelSql = GetQuerySQL();
|
||||
entity.GridDataBind(grdWXXLCJD, tSession);
|
||||
grdWXXLCJD.SelectedIndex = -1;
|
||||
return true;
|
||||
}
|
||||
|
||||
protected override void moduleGV_RowDataBound(object sender, GridViewRowEventArgs e)
|
||||
{
|
||||
base.moduleGV_RowDataBound(sender, e);
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region 自定义事件
|
||||
|
||||
private string GetQuerySQL()
|
||||
{
|
||||
StringBuilder sSQL = new StringBuilder();
|
||||
sSQL.AppendLine("select WXXLCJDMX_CJBH ,WXXLCJDMX_XH,WXXLCJDMX_XLXHID,WXXLCJDMX_XLGGID,WXXLCJDMX_DYDJID,WXXLCJDMX_JLDW,WXXLCJDMX_CJSL,WXXLCJDMX_JGBBJ,WXXLCJDMX_FDBL,");
|
||||
sSQL.AppendLine(" CASE ISNULL(WXXLCJDMX_XLBZID,' ') WHEN ' ' THEN ' ' ELSE rtrim(WXXLCJDMX_XLBZID) || '|' || XLBZ_XLBZLXMC END AS WXXLCJDMX_XLBZID,WXXLCJDMX_FDHJG,WXXLCJDMX_FDHJE");
|
||||
sSQL.AppendLine(" ,XLXSCJDYZZ0_YZZ01,XLXSCJDYZZ0_YZZ02,XLXSCJDYZZ0_YZZ03,XLXSCJDYZZ0_YZZ04,XLXSCJDYZZ0_YZZ05 ");
|
||||
sSQL.AppendLine(" ,XLXSCJDYZZ0_YZZ06,XLXSCJDYZZ0_YZZ07,XLXSCJDYZZ0_YZZ08,XLXSCJDYZZ0_YZZ09,XLXSCJDYZZ0_YZZ10 ");
|
||||
sSQL.AppendLine(" ,XLXSCJDYZZ0_YZZ11,XLXSCJDYZZ0_YZZ12,XLXSCJDYZZ0_YZZ13,XLXSCJDYZZ0_YZZ14,XLXSCJDYZZ0_YZZ15 ");
|
||||
sSQL.AppendLine(" ,XLXSCJDYZZ0_YZZ16,XLXSCJDYZZ0_YZZ17,XLXSCJDYZZ0_YZZ18,XLXSCJDYZZ0_YZZ19,XLXSCJDYZZ0_YZZ20 ");
|
||||
sSQL.AppendLine(" from WXXLCJDMX ");
|
||||
sSQL.AppendLine(" left join XLBZ on XLBZ_XLBZID = WXXLCJDMX_XLBZID ");
|
||||
sSQL.AppendLine(" left join XLXSCJDYZZ0 on XLXSCJDYZZ0_CJBH = WXXLCJDMX_CJBH and XLXSCJDYZZ0_XH=WXXLCJDMX_XH ");
|
||||
sSQL.AppendLine(" where WXXLCJDMX_CJBH=:WXXLCJDMX_CJBH ");
|
||||
entity.Param.Add("WXXLCJDMX_CJBH", PageParam.GetRTrimString("CJBH"));
|
||||
sSQL.AppendLine(" order by WXXLCJDMX_CJBH,WXXLCJDMX_XH");
|
||||
return sSQL.ToString();
|
||||
}
|
||||
|
||||
protected void btnDR_Click(object sender, EventArgs e)
|
||||
{
|
||||
TDatabase dberp = TContextDatabases.GetDatabase("DBERP");
|
||||
TSQL SQL = new TSQL(dberp);
|
||||
string sErrorNum = "";
|
||||
SQL.Clear();
|
||||
SQL.Add(" SELECT WXXLCJDMX_XLXHID,WXXLCJDMX_XLGGID,WXXLCJDMX_DYDJID,WXXLCJDMX_XLBZID,WXXLCJDMX_CJSL,WXXLCJDMX_JLDW ");
|
||||
SQL.Add(" ,XLXSCJDYZZ0_YZZ01,XLXSCJDYZZ0_YZZ02,XLXSCJDYZZ0_YZZ03,XLXSCJDYZZ0_YZZ04,XLXSCJDYZZ0_YZZ05 ");
|
||||
SQL.Add(" ,XLXSCJDYZZ0_YZZ06,XLXSCJDYZZ0_YZZ07,XLXSCJDYZZ0_YZZ08,XLXSCJDYZZ0_YZZ09,XLXSCJDYZZ0_YZZ10 ");
|
||||
SQL.Add(" ,XLXSCJDYZZ0_YZZ11,XLXSCJDYZZ0_YZZ12,XLXSCJDYZZ0_YZZ13,XLXSCJDYZZ0_YZZ14,XLXSCJDYZZ0_YZZ15 ");
|
||||
SQL.Add(" ,XLXSCJDYZZ0_YZZ16,XLXSCJDYZZ0_YZZ17,XLXSCJDYZZ0_YZZ18,XLXSCJDYZZ0_YZZ19,XLXSCJDYZZ0_YZZ20 ");
|
||||
SQL.Add(" FROM WXXLCJDMX ");
|
||||
SQL.Add(" left join XLXSCJDYZZ0 on XLXSCJDYZZ0_CJBH = WXXLCJDMX_CJBH and XLXSCJDYZZ0_XH=WXXLCJDMX_XH ");
|
||||
SQL.Add(" WHERE 1=1 AND WXXLCJDMX_CJBH = :pCJBH ");
|
||||
SQL.ParamByName("pCJBH").Value = PageParam.GetRTrimString("CJBH");
|
||||
DataSet ds = dberp.OpenDataSet(SQL);
|
||||
if (ds.Tables[0].Rows.Count > 0)
|
||||
{
|
||||
try
|
||||
{
|
||||
string sBJDID = PageParam.GetRTrimString("BJDID");
|
||||
int iXH = CMISproDataBase.GetMaxXH("DBERP", "XLXSBJDMX", "XLXSBJDMX_XH", "XLXSBJDMX_BJDID='" + PageParam.GetRTrimString("BJDID") + "'");
|
||||
int iXSSX = CMISproDataBase.GetMaxXH("DBERP", "XLXSBJDMX", "XLXSBJDMX_XSSX", "XLXSBJDMX_BJDID = '" + PageParam.GetRTrimString("BJDID") + "'");
|
||||
|
||||
string sXLXHID = "", sXLGGID = "", sST = "", sDYDJ = "";
|
||||
string sJLDW = "";//计量单位
|
||||
string sBJCP = "";
|
||||
TSQL sSQL = new TSQL(dberp);
|
||||
int iStartXH = 0;
|
||||
string sBJU003 = GetOption(100860000, "BJU003");
|
||||
dberp.BeginTrans();
|
||||
for (int i = 0; i < ds.Tables[0].Rows.Count; i++)
|
||||
{
|
||||
sXLXHID = ds.Tables[0].Rows[i]["WXXLCJDMX_XLXHID"].ToString().Trim();
|
||||
sXLGGID = ds.Tables[0].Rows[i]["WXXLCJDMX_XLGGID"].ToString().Trim();
|
||||
sJLDW = ds.Tables[0].Rows[i]["WXXLCJDMX_JLDW"].ToString().Trim();
|
||||
if (sJLDW.Equals(""))
|
||||
{
|
||||
sJLDW = sBJU003;
|
||||
}
|
||||
if (sXLXHID.Equals(""))
|
||||
sXLXHID = "/";
|
||||
if (sXLGGID.Equals(""))
|
||||
sXLGGID = "/";
|
||||
|
||||
sSQL.Clear();
|
||||
sSQL.Add(" insert into XLXSBJDMX( ");
|
||||
sSQL.Add(" XLXSBJDMX_BJDID, XLXSBJDMX_XH, XLXSBJDMX_XSSX, XLXSBJDMX_XLXHID, XLXSBJDMX_XLGGID,XLXSBJDMX_XDXLXHID,XLXSBJDMX_XDXLBZID, ");
|
||||
sSQL.Add(" XLXSBJDMX_XLBZID,XLXSBJDMX_DYDJID,XLXSBJDMX_XLYSID,XLXSBJDMX_BJCP,XLXSBJDMX_BJCPSD,XLXSBJDMX_WGCPBZ, ");
|
||||
sSQL.Add(" XLXSBJDMX_JLDW,XLXSBJDMX_BJSL,XLXSBJDMX_TZQCPBJ,XLXSBJDMX_TZCPBJ,XLXSBJDMX_CPBJ,XLXSBJDMX_YXJG,XLXSBJDMX_YZ,XLXSBJDMX_YSCP,XLXSBJDMX_BJSDBZ, ");
|
||||
sSQL.Add(" XLXSBJDMX_JGBJJ,XLXSBJDMX_CLCB, XLXSBJDMX_JGBBJ,XLXSBJDMX_DZSC,XLXSBJDMX_WHR,XLXSBJDMX_WHRID,XLXSBJDMX_WHSJ,");
|
||||
sSQL.Add(" XLXSBJDMX_BJJE,XLXSBJDMX_TZQBJJE,XLXSBJDMX_JGBBJJCE,XLXSBJDMX_JGBBJJCL,XLXSBJDMX_CLZL,");
|
||||
sSQL.Add(" XLXSBJDMX_BJDHQCLCB,XLXSBJDMX_CLCBJCL,XLXSBJDMX_JGBBJLJJCL,XLXSBJDMX_WBBJDID,XLXSBJDMX_DRHH,XLXSBJDMX_WLID,XLXSBJDMX_BZ,XLXSBJDMX_CJDID) ");
|
||||
sSQL.Add(" values(");
|
||||
sSQL.Add(" :XLXSBJDMX_BJDID, :XLXSBJDMX_XH, :XLXSBJDMX_XSSX, :XLXSBJDMX_XLXHID, :XLXSBJDMX_XLGGID,:XLXSBJDMX_XDXLXHID,:XLXSBJDMX_XDXLBZID, ");
|
||||
sSQL.Add(" :XLXSBJDMX_XLBZID, isnull(:XLXSBJDMX_DYDJID,' '), :XLXSBJDMX_XLYSID, :XLXSBJDMX_BJCP, :XLXSBJDMX_BJCPSD,:XLXSBJDMX_WGCPBZ, ");
|
||||
sSQL.Add(" :XLXSBJDMX_JLDW, :XLXSBJDMX_BJSL, :XLXSBJDMX_TZQCPBJ,:XLXSBJDMX_TZCPBJ,:XLXSBJDMX_CPBJ,:XLXSBJDMX_YXJG,:XLXSBJDMX_YZ,:XLXSBJDMX_YSCP,:XLXSBJDMX_BJSDBZ, :XLXSBJDMX_JGBJJ, :XLXSBJDMX_CLCB, :XLXSBJDMX_JGBBJ, ");
|
||||
sSQL.Add(" :XLXSBJDMX_DZSC, :XLXSBJDMX_WHR, :XLXSBJDMX_WHRID, :XLXSBJDMX_WHSJ,:XLXSBJDMX_BJJE,:XLXSBJDMX_TZQBJJE,:XLXSBJDMX_JGBBJJCE,:XLXSBJDMX_JGBBJJCL,:XLXSBJDMX_CLZL,");
|
||||
sSQL.Add(" :XLXSBJDMX_BJDHQCLCB,:XLXSBJDMX_CLCBJCL,:XLXSBJDMX_JGBBJLJJCL,:XLXSBJDMX_WBBJDID,:XLXSBJDMX_DRHH,:XLXSBJDMX_WLID,:XLXSBJDMX_BZ,:XLXSBJDMX_CJDID)");
|
||||
|
||||
iXH = iXH + 1;
|
||||
iXSSX = iXSSX + 1;
|
||||
if (i == 0)
|
||||
{
|
||||
iStartXH = iXH;
|
||||
}
|
||||
sST = ds.Tables[0].Rows[i]["WXXLCJDMX_XLBZID"].ToString().Trim();
|
||||
sDYDJ = ds.Tables[0].Rows[i]["WXXLCJDMX_DYDJID"].ToString().Trim().Replace('K', 'k').Replace('v', 'V');
|
||||
sDYDJ = sDYDJ.Equals("") ? " " : sDYDJ;
|
||||
double fBJSL = CMISproConvert.StrToFloat(ds.Tables[0].Rows[i]["WXXLCJDMX_CJSL"].ToString().Trim());
|
||||
sSQL.ParamByName("XLXSBJDMX_BJDID").Value = sBJDID;
|
||||
sSQL.ParamByName("XLXSBJDMX_XH").Value = iXH;
|
||||
sSQL.ParamByName("XLXSBJDMX_XSSX").Value = iXSSX;
|
||||
sSQL.ParamByName("XLXSBJDMX_XLXHID").Value = sXLXHID;
|
||||
sSQL.ParamByName("XLXSBJDMX_XLGGID").Value = sXLGGID;
|
||||
sSQL.ParamByName("XLXSBJDMX_XLBZID").Value = sST;
|
||||
sSQL.ParamByName("XLXSBJDMX_XDXLXHID").Value = sXLXHID;
|
||||
sSQL.ParamByName("XLXSBJDMX_XDXLBZID").Value = sST;
|
||||
sSQL.ParamByName("XLXSBJDMX_DYDJID").Value = sDYDJ;
|
||||
sSQL.ParamByName("XLXSBJDMX_JLDW").Value = sJLDW;
|
||||
sSQL.ParamByName("XLXSBJDMX_XLYSID").Value = XLBJDInfo.GetDefaultYSID(sXLXHID, sXLGGID);
|
||||
sSQL.ParamByName("XLXSBJDMX_BJCPSD").Value = "N";
|
||||
sBJCP = XLBJDUtils.GroupBJCPXX(sXLXHID, sXLGGID, sDYDJ);
|
||||
sSQL.ParamByName("XLXSBJDMX_BJCP").Value = sBJCP;
|
||||
sSQL.ParamByName("XLXSBJDMX_BJSL").Value = fBJSL;
|
||||
sSQL.ParamByName("XLXSBJDMX_JGBBJ").Value = 0.0;
|
||||
sSQL.ParamByName("XLXSBJDMX_TZQCPBJ").Value = 0.0;
|
||||
sSQL.ParamByName("XLXSBJDMX_TZCPBJ").Value = 0;
|
||||
sSQL.ParamByName("XLXSBJDMX_CPBJ").Value = 0.0;
|
||||
sSQL.ParamByName("XLXSBJDMX_BJSDBZ").Value = "N";
|
||||
sSQL.ParamByName("XLXSBJDMX_YXJG").Value = 0.0;
|
||||
sSQL.ParamByName("XLXSBJDMX_JGBJJ").Value = 0.0;
|
||||
sSQL.ParamByName("XLXSBJDMX_CLCB").Value = 0.0;
|
||||
sSQL.ParamByName("XLXSBJDMX_CLZL").Value = 0.0;
|
||||
sSQL.ParamByName("XLXSBJDMX_BJDHQCLCB").Value = 0.0;
|
||||
sSQL.ParamByName("XLXSBJDMX_BJJE").Value = NumberUtils.RoundX(fBJSL * Convert.ToDouble(sSQL.ParamByName("XLXSBJDMX_CPBJ").Value), 2);
|
||||
sSQL.ParamByName("XLXSBJDMX_TZQBJJE").Value = NumberUtils.RoundX(fBJSL * Convert.ToDouble(sSQL.ParamByName("XLXSBJDMX_CPBJ").Value), 2);
|
||||
sSQL.ParamByName("XLXSBJDMX_JGBBJJCE").Value = 0.0;
|
||||
sSQL.ParamByName("XLXSBJDMX_JGBBJJCL").Value = 0.0;
|
||||
sSQL.ParamByName("XLXSBJDMX_CLCBJCL").Value = 0.0;
|
||||
sSQL.ParamByName("XLXSBJDMX_JGBBJLJJCL").Value = 0.0;
|
||||
sSQL.ParamByName("XLXSBJDMX_CJDID").Value = PageParam.GetRTrimString("CJBH");
|
||||
sSQL.ParamByName("XLXSBJDMX_WBBJDID").Value = "";
|
||||
sSQL.ParamByName("XLXSBJDMX_DRHH").Value = 0;
|
||||
sSQL.ParamByName("XLXSBJDMX_WLID").Value = "";
|
||||
sSQL.ParamByName("XLXSBJDMX_WGCPBZ").Value = "N";
|
||||
sSQL.ParamByName("XLXSBJDMX_YZ").Value = "";
|
||||
sSQL.ParamByName("XLXSBJDMX_YSCP").Value = "";
|
||||
sSQL.ParamByName("XLXSBJDMX_BZ").Value = "";
|
||||
if (XLBJDUtils.ISDZBZ(sST))
|
||||
{
|
||||
sSQL.ParamByName("XLXSBJDMX_DZSC").Value = "Y";
|
||||
}
|
||||
else
|
||||
{
|
||||
sSQL.ParamByName("XLXSBJDMX_DZSC").Value = "N";
|
||||
}
|
||||
sSQL.ParamByName("XLXSBJDMX_WHR").Value = tSession.UserName;
|
||||
sSQL.ParamByName("XLXSBJDMX_WHRID").Value = tSession.UserId;
|
||||
sSQL.ParamByName("XLXSBJDMX_WHSJ").Value = DateTime.Now;
|
||||
dberp.ExecSQL(sSQL);
|
||||
|
||||
sSQL.Clear();
|
||||
sSQL.Add(@"INSERT INTO XLXSBJDYZZ0
|
||||
(XLXSBJDYZZ0_BJDID,XLXSBJDYZZ0_XH,XLXSBJDYZZ0_YZZ01 ,XLXSBJDYZZ0_YZZ02,XLXSBJDYZZ0_YZZ03,XLXSBJDYZZ0_YZZ04,XLXSBJDYZZ0_YZZ05,
|
||||
XLXSBJDYZZ0_YZZ06,XLXSBJDYZZ0_YZZ07,XLXSBJDYZZ0_YZZ08,XLXSBJDYZZ0_YZZ09,XLXSBJDYZZ0_YZZ10,
|
||||
XLXSBJDYZZ0_YZZ11,XLXSBJDYZZ0_YZZ12,XLXSBJDYZZ0_YZZ13,XLXSBJDYZZ0_YZZ14,XLXSBJDYZZ0_YZZ15,
|
||||
XLXSBJDYZZ0_YZZ16,XLXSBJDYZZ0_YZZ17,XLXSBJDYZZ0_YZZ18 ,XLXSBJDYZZ0_YZZ19,XLXSBJDYZZ0_YZZ20)
|
||||
VALUES( :XLXSBJDYZZ0_BJDID,:XLXSBJDYZZ0_XH,:XLXSBJDYZZ0_YZZ01 ,:XLXSBJDYZZ0_YZZ02,:XLXSBJDYZZ0_YZZ03,:XLXSBJDYZZ0_YZZ04,:XLXSBJDYZZ0_YZZ05,
|
||||
:XLXSBJDYZZ0_YZZ06,:XLXSBJDYZZ0_YZZ07,:XLXSBJDYZZ0_YZZ08,:XLXSBJDYZZ0_YZZ09,:XLXSBJDYZZ0_YZZ10,
|
||||
:XLXSBJDYZZ0_YZZ11,:XLXSBJDYZZ0_YZZ12,:XLXSBJDYZZ0_YZZ13,:XLXSBJDYZZ0_YZZ14,:XLXSBJDYZZ0_YZZ15,
|
||||
:XLXSBJDYZZ0_YZZ16,:XLXSBJDYZZ0_YZZ17,:XLXSBJDYZZ0_YZZ18 ,:XLXSBJDYZZ0_YZZ19,:XLXSBJDYZZ0_YZZ20)");
|
||||
sSQL.ParamByName("XLXSBJDYZZ0_BJDID").Value = sBJDID;
|
||||
sSQL.ParamByName("XLXSBJDYZZ0_XH").Value = iXH;
|
||||
for (int z = 1; z <= 20; z++)
|
||||
{
|
||||
string sYZ = z.ToString().PadLeft(2, '0');
|
||||
sSQL.ParamByName("XLXSBJDYZZ0_YZZ" + sYZ).Value = CMISproConvert.StrToFloat(ds.Tables[0].Rows[i]["XLXSCJDYZZ0_YZZ" + sYZ].ToString().Trim(), 0);
|
||||
}
|
||||
|
||||
dberp.ExecSQL(sSQL);
|
||||
|
||||
}
|
||||
XLBJDUtils.UpdateXDXLBZID(dberp, sSQL, sBJDID, "", iStartXH - 1, ref sErrorNum);
|
||||
XLBJDUtils.SyncXLXSBJXLGGTHB_ByXLXSBJDMX_Batch(dberp, tSession, sBJDID, "", iStartXH - 1);
|
||||
CalcBJDMXAfterIns(dberp, sSQL, sBJDID, iStartXH, GetOption(100860000, "BJU002"), sBJU003, GetOption(100860000, "BJU018"), tSession.UserId, tSession.UserName, ref sErrorNum);
|
||||
sSQL.Clear();
|
||||
sSQL.Add(" update WXXLCJD set WXXLCJD_YDRBJD='Y' where WXXLCJD_CJBH = :pCJBH ");
|
||||
sSQL.ParamByName("pCJBH").Value = PageParam.GetRTrimString("CJBH");
|
||||
dberp.ExecSQL(sSQL);
|
||||
dberp.CommitTrans();
|
||||
DialogOperationScript dos = new DialogOperationScript(this);
|
||||
ShowMessage("导入成功!");
|
||||
dos.SetOwnerControlValue(PageParam.GetRTrimString("txtOpen"), "CLOSE");
|
||||
dos.CloseSelf();
|
||||
dos.Execute();
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
dberp.RollbackTrans();
|
||||
ShowMessage("导入出现异常情况:" + ex.Message);
|
||||
return;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
ShowMessage("导入明细数量为0,请重新选择!");
|
||||
CloseWindow();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private void InitControl()
|
||||
{
|
||||
TDatabase dberp = TContextDatabases.GetDatabase("DBERP");
|
||||
TSQL sql = new TSQL(dberp);
|
||||
|
||||
string sXCXSYYZIDLIST = GetsXCXSYYZIDLIST();
|
||||
if (!sXCXSYYZIDLIST.Equals(""))
|
||||
{
|
||||
grdWXXLCJD.FindColumnByFieldName("WXXLCJDMX_FDBL").Visible = false;
|
||||
sql.Clear();
|
||||
sql.Add("select XLXSTZYZ_YZID, XLXSTZYZ_YZMC,XLXSTZYZ_JJFS ");
|
||||
sql.Add(" from XLXSTZYZ");
|
||||
sql.Add(" where XLXSTZYZ_MXBH = 'BJD' and " + CMISproDataBase.GetWhereEqual("XLXSTZYZ_YZID", sXCXSYYZIDLIST));
|
||||
sql.Add(" order by XLXSTZYZ_XSXH,XLXSTZYZ_YZID ");
|
||||
DataSet ds = dberp.OpenDataSet(sql);
|
||||
for (int i = 0; i < ds.Tables[0].Rows.Count; i++)
|
||||
{
|
||||
string sJJFS = ds.Tables[0].Rows[i]["XLXSTZYZ_JJFS"].ToString().Trim();
|
||||
string sJJ = sJJFS.Equals("JJ") ? "(元)" : (sJJFS.Equals("") ? "" : "(%)");
|
||||
string sYZMC = ds.Tables[0].Rows[i]["XLXSTZYZ_YZMC"].ToString().Trim() + sJJ;
|
||||
string sYZID = "XLXSCJDYZZ0_YZZ" + ds.Tables[0].Rows[i]["XLXSTZYZ_YZID"].ToString().Trim().Replace("BJ", "");
|
||||
int iDecimal = XLBJDUtils.JGBYZZDecimal;
|
||||
if (sJJFS.Equals("JJ"))
|
||||
iDecimal = CMISproConvert.StrToInt(GetOption(100860000, "BJU002"), 2);
|
||||
AddColumn(sYZID, sYZMC, iDecimal, 80);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
/// <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;
|
||||
grdWXXLCJD.Columns.Add(Column);
|
||||
|
||||
gtGridView_Column ColumnEx = new gtGridView_Column();
|
||||
ColumnEx.DataField = sDataField;
|
||||
ColumnEx.EditType = TEditType.etNumber;
|
||||
ColumnEx.ShowHint = true;
|
||||
ColumnEx.NumberDecimalPlace = NumberDecimalPlace;
|
||||
grdWXXLCJD.ColumnsEx.Insert(0, ColumnEx);
|
||||
}
|
||||
|
||||
public static void CalcBJDMXAfterIns(TDatabase dberp, TSQL SQL, string sBJDID, int startBJDXH, string sBJU002, string sBJU003, string sBJU018, string sWHRID, string sWHR, ref string sErrMsg)
|
||||
{
|
||||
try
|
||||
{
|
||||
#region 配置信息
|
||||
SQL.Clear();
|
||||
SQL.Add("select XLXSBJD_JGBID,XLXSJGB_MXBH,XLXSJGB_JGBIDS,XLXSJGB_JGCIDS,XLXSJGB_BJLY,XLXSJGB_TJYS,XLXSJGB_JSBLFS, ");
|
||||
SQL.Add(" XLXSBJD_BJFLID,XLXSBJFL_BJDHQLY,XLXSBJFL_TZCLHQ,XLXSBJFL_JGBTJYSS,XLXSBJFL_BJJCLLX,XLXSBJFL_LJJCLLX,XLXSBJFL_CPBJMRXSWS,XLXSBJFL_ZDXJJCLLX,XLXSBJFL_JYF,XLXSBJFL_YFWLID,XLXSBJFL_BJHYF,");
|
||||
SQL.Add(" XLXSBJD_JZBJHS,XLXSBJD_BJRQ,XLXSBJFL_TZYLBL ");
|
||||
SQL.Add(" from XLXSBJD ");
|
||||
SQL.Add(" left join XLXSJGB on XLXSJGB_JGBID=XLXSBJD_JGBID ");
|
||||
SQL.Add(" left join XLXSBJFL on XLXSBJFL_BJFLID=XLXSBJD_BJFLID");
|
||||
SQL.Add(" where XLXSBJD_BJDID=:pBJDID");
|
||||
SQL.ParamByName("pBJDID").Value = sBJDID;
|
||||
DataSet dsBJD = dberp.OpenDataSet(SQL);
|
||||
if (dsBJD.Tables[0].Rows.Count == 0)
|
||||
{
|
||||
throw new Exception("报价单记录不存在!");
|
||||
}
|
||||
|
||||
int iXSWS = string.IsNullOrEmpty(sBJU002) ? 5 : CMISproConvert.StrToInt(sBJU002);
|
||||
if (iXSWS < 0)
|
||||
iXSWS = 0;
|
||||
else if (iXSWS > 8)
|
||||
iXSWS = 8;
|
||||
|
||||
bool bHSBZ = dsBJD.Tables[0].Rows[0]["XLXSBJD_JZBJHS"].ToString().Trim().Equals("Y");
|
||||
string sBJRQ = dsBJD.Tables[0].Rows[0]["XLXSBJD_BJRQ"].ToString().Trim();
|
||||
|
||||
string sJGBID = dsBJD.Tables[0].Rows[0]["XLXSBJD_JGBID"].ToString().Trim();
|
||||
string sMXBH = dsBJD.Tables[0].Rows[0]["XLXSJGB_MXBH"].ToString().Trim();
|
||||
string sJGBIDS = dsBJD.Tables[0].Rows[0]["XLXSJGB_JGBIDS"].ToString().Trim();
|
||||
string sJGCIDS = dsBJD.Tables[0].Rows[0]["XLXSJGB_JGCIDS"].ToString().Trim();
|
||||
string sBJLY = dsBJD.Tables[0].Rows[0]["XLXSJGB_BJLY"].ToString().Trim();
|
||||
string sTJYS = dsBJD.Tables[0].Rows[0]["XLXSJGB_TJYS"].ToString().Trim();
|
||||
string sJSBLFS = dsBJD.Tables[0].Rows[0]["XLXSJGB_JSBLFS"].ToString().Trim();
|
||||
|
||||
string sBJFLID = dsBJD.Tables[0].Rows[0]["XLXSBJD_BJFLID"].ToString().Trim();
|
||||
string sBJDHQLY = dsBJD.Tables[0].Rows[0]["XLXSBJFL_BJDHQLY"].ToString().Trim();//1|价格表行情、2|报价日行情
|
||||
string sTZCLHQ = dsBJD.Tables[0].Rows[0]["XLXSBJFL_TZCLHQ"].ToString().Trim();//允许调整材料行情
|
||||
string sJGBTJYSS = dsBJD.Tables[0].Rows[0]["XLXSBJFL_JGBTJYSS"].ToString().Trim();//价格表调价因素
|
||||
string sJCLLX = dsBJD.Tables[0].Rows[0]["XLXSBJFL_BJJCLLX"].ToString().Trim();
|
||||
string sLJJCLLX = dsBJD.Tables[0].Rows[0]["XLXSBJFL_LJJCLLX"].ToString().Trim();
|
||||
string sCPBJMRXSWS = dsBJD.Tables[0].Rows[0]["XLXSBJFL_CPBJMRXSWS"].ToString().Trim();
|
||||
string sZDXJJCLLX = dsBJD.Tables[0].Rows[0]["XLXSBJFL_ZDXJJCLLX"].ToString().Trim();
|
||||
string sJYF = dsBJD.Tables[0].Rows[0]["XLXSBJFL_JYF"].ToString().Trim();
|
||||
string sYFWLID = dsBJD.Tables[0].Rows[0]["XLXSBJFL_YFWLID"].ToString().Trim();
|
||||
string sBJHYF = dsBJD.Tables[0].Rows[0]["XLXSBJFL_BJHYF"].ToString().Trim();
|
||||
string sTZCLYLBL = dsBJD.Tables[0].Rows[0]["XLXSBJFL_TZYLBL"].ToString().Trim();
|
||||
#endregion
|
||||
|
||||
XLBJDCalcUtils.CalcBJDHQCLCB_CLCB_JGBJJ_JGBBJ(dberp, SQL, sBJDID, startBJDXH, bHSBZ, sBJRQ,
|
||||
sJGBID, sMXBH, sJGBIDS, sJGCIDS, sBJLY, sTJYS, sJSBLFS,
|
||||
sBJFLID, sBJDHQLY, sTZCLHQ, sJGBTJYSS,
|
||||
sBJU002, sBJU003, sBJU018, sWHRID, sWHR, CalcAction.Insert, ref sErrMsg);
|
||||
|
||||
if (!sErrMsg.Equals(""))
|
||||
{
|
||||
throw new Exception(sErrMsg);
|
||||
}
|
||||
string sXCXSYYZIDLIST = GetsXCXSYYZIDLIST();
|
||||
|
||||
|
||||
Dictionary<string, string> dicTJYZList = new Dictionary<string, string>();
|
||||
XLBJDUtils.GetDicTJYZList(dberp, SQL, sBJFLID, "", ref dicTJYZList);
|
||||
if (dicTJYZList.ContainsKey("sTJYSList_"))
|
||||
{
|
||||
string[] sTJYZ = dicTJYZList["sTJYSList_"].Trim().Split(new Char[] { ',' }, StringSplitOptions.RemoveEmptyEntries);
|
||||
string sTJZYList = "";
|
||||
for (int i = 0; i < sTJYZ.Length; i++)
|
||||
{
|
||||
if (!sXCXSYYZIDLIST.Contains(sTJYZ[i]))
|
||||
{
|
||||
sTJZYList = sTJZYList + sTJYZ[i] + ",";
|
||||
}
|
||||
}
|
||||
dicTJYZList["sTJYSList_"] = sTJZYList.TrimEnd(',');
|
||||
}
|
||||
|
||||
|
||||
XLBJDUtils.AddXLXSBJDYZZ0(dberp, sBJDID, sBJFLID, sBJU003, dicTJYZList, true, "", startBJDXH - 1, ref sErrMsg);
|
||||
|
||||
if (!sErrMsg.Equals(""))
|
||||
{
|
||||
throw new Exception(sErrMsg);
|
||||
}
|
||||
|
||||
//同步报价单明细记录插入XLXSBJDCLCB、XLXSBJDJJYZ
|
||||
XLBJDInfo.InsertCLCBandJJYZ(dberp, SQL, TControlState.ctsEdit, sBJDID, sJGBID, sBJRQ, sWHRID, sWHR, sBJU003, bHSBZ);
|
||||
|
||||
if (dberp.DriverName == "ORACLE")
|
||||
{
|
||||
if (dberp.InTransaction)
|
||||
{
|
||||
dberp.CommitTrans();
|
||||
|
||||
dberp.BeginTrans();
|
||||
}
|
||||
}
|
||||
|
||||
XLBJDUtils.UpdateBJDMX(dberp, SQL, sBJFLID, sBJDID, iXSWS, sJCLLX, sLJJCLLX, sCPBJMRXSWS, "", startBJDXH);
|
||||
|
||||
//同步补充插入XLXSCLQD、XLXSJGBMX中没有的记录,改方法已边缘化,若要保留执行需修改传入的参数tSession等,不执行无碍
|
||||
//XLBJDInfo.InsertCLQDorJGBMX(dberp, SQL, txtBJDID.Value.Trim(), PageParam.GetRTrimString("JGBID"), PageParam.GetRTrimString("JGCIDS"), tSession);
|
||||
|
||||
|
||||
|
||||
XLBJDUtils.UpdateZDXJGS(dberp, SQL, sBJDID, sBJFLID, sBJU002, "", startBJDXH);
|
||||
XLBJDUtils.UpdateJSJGS(dberp, SQL, sBJDID, sBJFLID, sBJU002, "", startBJDXH);
|
||||
XLBJDCalcUtils.Check_UpdBJSLYZZ(dberp, SQL, sBJDID, sBJFLID, sBJU002, sBJU003);
|
||||
XLBJDUtils.UpdateXLXSBJD(dberp, SQL, sBJDID, sJCLLX, sLJJCLLX, sZDXJJCLLX, sJYF, "", "", sYFWLID, sBJHYF);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
sErrMsg = ex.Message;
|
||||
throw new Exception(sErrMsg);
|
||||
}
|
||||
}
|
||||
|
||||
public static string GetsXCXSYYZIDLIST()
|
||||
{
|
||||
string sXCXSYYZIDLIST = "";
|
||||
TDatabase dberp = TContextDatabases.GetDatabase("DBERP");
|
||||
TSQL sql = new TSQL(dberp);
|
||||
sql.Clear();
|
||||
sql.Add("select XLXSBJPZ_XCXSYYZIDLIST from XLXSBJPZ where XLXSBJPZ_MDID=102373000 ");
|
||||
DataSet ds = dberp.OpenDataSet(sql);
|
||||
if (ds.Tables[0].Rows.Count > 0)
|
||||
{
|
||||
sXCXSYYZIDLIST = ds.Tables[0].Rows[0][0].ToString().Trim();
|
||||
}
|
||||
return sXCXSYYZIDLIST;
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
Generated
+61
@@ -0,0 +1,61 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// 此代码由工具生成。
|
||||
// 运行时版本:2.0.50727.9179
|
||||
//
|
||||
// 对此文件的更改可能会导致不正确的行为,并且如果
|
||||
// 重新生成代码,这些更改将会丢失。
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace GThinking.U20261363_N_XLXSBJ {
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// WXXLCJDMXList 类。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的类。
|
||||
/// </remarks>
|
||||
public partial class WXXLCJDMXList {
|
||||
|
||||
/// <summary>
|
||||
/// AddTable 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Table AddTable;
|
||||
|
||||
/// <summary>
|
||||
/// btnDR 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtToolButton btnDR;
|
||||
|
||||
/// <summary>
|
||||
/// grdWXXLCJD 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtGridView grdWXXLCJD;
|
||||
|
||||
/// <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,89 @@
|
||||
<%@ Page Language="C#" MasterPageFile="~/N_MODEL/Page/MasterSingleQuery.Master" AutoEventWireup="true"
|
||||
Codebehind="WXXLCJDQuery.aspx.cs" Inherits="GThinking.U20261363_N_XLXSBJ.WXXLCJDQuery" Title="线缆销售价格表查价单" %>
|
||||
|
||||
<%@ MasterType VirtualPath="~/N_MODEL/Page/MasterSingleQuery.Master" %>
|
||||
<asp:Content ID="ContentQuery" ContentPlaceHolderID="CPHQuery" runat="server">
|
||||
<asp:Table ID="QueryTable" runat="server" >
|
||||
<asp:TableRow>
|
||||
<asp:TableCell></asp:TableCell>
|
||||
<asp:TableCell HorizontalAlign="Right" Width="100px" Height="20px">
|
||||
<gtc:gtLabel ID="GtLabel2" runat="server">查价编号:</gtc:gtLabel>
|
||||
</asp:TableCell>
|
||||
<asp:TableCell Height="23px">
|
||||
<gtc:gtTextBox ID="txtCJBH" DataField="CJBH" runat="server" Tag="Percent" Width="120px" >
|
||||
</gtc:gtTextBox>
|
||||
</asp:TableCell>
|
||||
</asp:TableRow>
|
||||
<asp:TableRow>
|
||||
<asp:TableCell></asp:TableCell>
|
||||
<asp:TableCell HorizontalAlign="Right" Width="100px" Height="20px">
|
||||
<gtc:gtLabel ID="GtLabel4" runat="server">查价人:</gtc:gtLabel>
|
||||
</asp:TableCell>
|
||||
<asp:TableCell Height="23px">
|
||||
<gtc:gtComboBox ID="cbxGH" DataField="GH" runat="server" Width="150px" >
|
||||
</gtc:gtComboBox>
|
||||
</asp:TableCell>
|
||||
</asp:TableRow>
|
||||
<asp:TableRow>
|
||||
<asp:TableCell></asp:TableCell>
|
||||
<asp:TableCell HorizontalAlign="Right" Width="100px" Height="20px">
|
||||
<gtc:gtLabel ID="GtLabel6" runat="server">所属企业:</gtc:gtLabel>
|
||||
</asp:TableCell>
|
||||
<asp:TableCell Height="23px">
|
||||
<gtc:gtComboBox ID="cbxSSQY" DataField="SSQY" runat="server" Width="150px" ShowValue="false" >
|
||||
</gtc:gtComboBox>
|
||||
</asp:TableCell>
|
||||
</asp:TableRow>
|
||||
<asp:TableRow>
|
||||
<asp:TableCell></asp:TableCell>
|
||||
<asp:TableCell HorizontalAlign="Right" Width="100px" Height="20px">
|
||||
<gtc:gtLabel ID="GtLabel7" runat="server">查价会员:</gtc:gtLabel>
|
||||
</asp:TableCell>
|
||||
<asp:TableCell Height="23px">
|
||||
<gtc:gtComboBox ID="cbxHY" DataField="CJHY" runat="server" Width="150px" >
|
||||
</gtc:gtComboBox>
|
||||
</asp:TableCell>
|
||||
</asp:TableRow>
|
||||
<asp:TableRow>
|
||||
<asp:TableCell></asp:TableCell>
|
||||
<asp:TableCell HorizontalAlign="Right" Width="100px" Height="20px">
|
||||
<gtc:gtLabel ID="GtLabel3" runat="server">查价日期始:</gtc:gtLabel>
|
||||
</asp:TableCell>
|
||||
<asp:TableCell Height="23px">
|
||||
<gtc:gtDateTimeTextBox ID="datCJRQS" DataField="CJRQS" runat="server" Width="72px" >
|
||||
</gtc:gtDateTimeTextBox>
|
||||
</asp:TableCell>
|
||||
</asp:TableRow>
|
||||
<asp:TableRow>
|
||||
<asp:TableCell></asp:TableCell>
|
||||
<asp:TableCell HorizontalAlign="Right" Width="100px" Height="20px">
|
||||
<gtc:gtLabel ID="GtLabel1" runat="server">查价日期止:</gtc:gtLabel>
|
||||
</asp:TableCell>
|
||||
<asp:TableCell Height="23px">
|
||||
<gtc:gtDateTimeTextBox ID="datCJRQZ" DataField="CJRQZ" runat="server" Width="72px" >
|
||||
</gtc:gtDateTimeTextBox>
|
||||
</asp:TableCell>
|
||||
</asp:TableRow>
|
||||
<asp:TableRow>
|
||||
<asp:TableCell></asp:TableCell>
|
||||
<asp:TableCell HorizontalAlign="Right" Width="100px" Height="20px">
|
||||
<gtc:gtLabel ID="GtLabel5" runat="server">状态:</gtc:gtLabel>
|
||||
</asp:TableCell>
|
||||
<asp:TableCell Height="23px">
|
||||
<gtc:gtComboBox ID="cbxZT" DataField="ZT" runat="server" Width="150px" >
|
||||
</gtc:gtComboBox>
|
||||
</asp:TableCell>
|
||||
</asp:TableRow>
|
||||
<asp:TableRow>
|
||||
<asp:TableCell></asp:TableCell>
|
||||
<asp:TableCell HorizontalAlign="Right" Width="100px" Height="20px">
|
||||
<gtc:gtLabel ID="GtLabel8" runat="server">导入报价单:</gtc:gtLabel>
|
||||
</asp:TableCell>
|
||||
<asp:TableCell Height="23px">
|
||||
<gtc:gtComboBox ID="cbxDRBZ" DataField="DRBZ" runat="server" Width="150px" ShowValue="false" >
|
||||
</gtc:gtComboBox>
|
||||
</asp:TableCell>
|
||||
</asp:TableRow>
|
||||
</asp:Table>
|
||||
</asp:Content>
|
||||
|
||||
@@ -0,0 +1,90 @@
|
||||
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_PUBLIC;
|
||||
using GThinking.N_MISPRO.Utility;
|
||||
using GThinking.N_MISPRO.Data;
|
||||
|
||||
namespace GThinking.U20261363_N_XLXSBJ
|
||||
{
|
||||
public class WXXLCJD_M : TBaseNamedQuery
|
||||
{
|
||||
public WXXLCJD_M()
|
||||
{
|
||||
AddFieldDefs("CJBH", "查价编号");
|
||||
AddFieldDefs("GH", "工号");
|
||||
AddFieldDefs("CJRQS", "查价日期始");
|
||||
AddFieldDefs("CJRQZ", "查价日期止");
|
||||
AddFieldDefs("ZT", "状态");
|
||||
AddFieldDefs("SSQY", "所属企业");
|
||||
AddFieldDefs("CJHY", "查价会员");
|
||||
AddFieldDefs("DRBZ", "导入标志");
|
||||
}
|
||||
}
|
||||
public partial class WXXLCJDQuery : SingleQueryBase
|
||||
{
|
||||
WXXLCJD_M qryEntity = new WXXLCJD_M();
|
||||
|
||||
#region 页面初始化
|
||||
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
this.UMID = 100860174;
|
||||
this.UMName = "线缆销售价格表查价单";
|
||||
this.CurMaster = Master;
|
||||
this.CurQueryTable = QueryTable;
|
||||
this.CurQueryEntity = qryEntity;
|
||||
if (!IsPostBack)
|
||||
{
|
||||
InitControls();
|
||||
}
|
||||
|
||||
base.InitPage();
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region 模板事件
|
||||
|
||||
#endregion
|
||||
|
||||
#region 私有函数
|
||||
private void InitControls()
|
||||
{
|
||||
string sql = "";
|
||||
sql += "select RSRYJBXX_GH as ID,rtrim(isNull(RSRYJBXX_PYBM,' ')) || '|' || rtrim(isNULL(RSRYJBXX_RYMC,' '))|| '|' || rtrim(isNUll(RSRYJBXX_GH,' '))as NAME ";
|
||||
sql += "from RSRYJBXX where isnull(RSRYJBXX_TYBZ,'N') <> 'Y' and isnull(RSRYJBXX_USER,'N') = 'Y' order by isnull(RSRYJBXX_PYBM,' '),RSRYJBXX_RYID ";
|
||||
TComboBox.SetComboBox("DBERP", cbxGH, sql, true);
|
||||
cbxGH.ShowValue = false;
|
||||
|
||||
cbxZT.ClearItems();
|
||||
cbxZT.Items.Add(new ListItem("", ""));
|
||||
cbxZT.Items.Add(new ListItem("空", "空"));
|
||||
cbxZT.Items.Add(new ListItem("进行", "I"));
|
||||
cbxZT.Items.Add(new ListItem("完成", "Z"));
|
||||
cbxDRBZ.ClearItems();
|
||||
cbxDRBZ.Items.Add(new ListItem("", ""));
|
||||
cbxDRBZ.Items.Add(new ListItem("已导入", "Y"));
|
||||
cbxDRBZ.Items.Add(new ListItem("未导入", "N"));
|
||||
sql = "select distinct WXHYGL_SSQY as ID,WXHYGL_SSQY as NAME from WXHYGL where isnull(WXHYGL_TYBZ,'N')='N' ";
|
||||
TComboBox.SetComboBox("DBERP", cbxSSQY, sql, true);
|
||||
sql = "select distinct WXHYGL_WXHYBH as ID,WXHYGL_HYXM as NAME from WXHYGL where isnull(WXHYGL_TYBZ,'N')='N' ";
|
||||
TComboBox.SetComboBox("DBERP", cbxHY, sql, true);
|
||||
|
||||
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 控件事件
|
||||
#endregion
|
||||
|
||||
}
|
||||
}
|
||||
Generated
+187
@@ -0,0 +1,187 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// 此代码由工具生成。
|
||||
// 运行时版本:2.0.50727.9179
|
||||
//
|
||||
// 对此文件的更改可能会导致不正确的行为,并且如果
|
||||
// 重新生成代码,这些更改将会丢失。
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace GThinking.U20261363_N_XLXSBJ {
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// WXXLCJDQuery 类。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的类。
|
||||
/// </remarks>
|
||||
public partial class WXXLCJDQuery {
|
||||
|
||||
/// <summary>
|
||||
/// QueryTable 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Table QueryTable;
|
||||
|
||||
/// <summary>
|
||||
/// GtLabel2 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtLabel GtLabel2;
|
||||
|
||||
/// <summary>
|
||||
/// txtCJBH 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtTextBox txtCJBH;
|
||||
|
||||
/// <summary>
|
||||
/// GtLabel4 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtLabel GtLabel4;
|
||||
|
||||
/// <summary>
|
||||
/// cbxGH 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtComboBox cbxGH;
|
||||
|
||||
/// <summary>
|
||||
/// GtLabel6 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtLabel GtLabel6;
|
||||
|
||||
/// <summary>
|
||||
/// cbxSSQY 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtComboBox cbxSSQY;
|
||||
|
||||
/// <summary>
|
||||
/// GtLabel7 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtLabel GtLabel7;
|
||||
|
||||
/// <summary>
|
||||
/// cbxHY 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtComboBox cbxHY;
|
||||
|
||||
/// <summary>
|
||||
/// GtLabel3 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtLabel GtLabel3;
|
||||
|
||||
/// <summary>
|
||||
/// datCJRQS 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtDateTimeTextBox datCJRQS;
|
||||
|
||||
/// <summary>
|
||||
/// GtLabel1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtLabel GtLabel1;
|
||||
|
||||
/// <summary>
|
||||
/// datCJRQZ 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtDateTimeTextBox datCJRQZ;
|
||||
|
||||
/// <summary>
|
||||
/// GtLabel5 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtLabel GtLabel5;
|
||||
|
||||
/// <summary>
|
||||
/// cbxZT 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtComboBox cbxZT;
|
||||
|
||||
/// <summary>
|
||||
/// GtLabel8 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtLabel GtLabel8;
|
||||
|
||||
/// <summary>
|
||||
/// cbxDRBZ 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtComboBox cbxDRBZ;
|
||||
|
||||
/// <summary>
|
||||
/// Master 属性。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的属性。
|
||||
/// </remarks>
|
||||
public new GThinking.N_MODEL.Page.MasterSingleQuery Master {
|
||||
get {
|
||||
return ((GThinking.N_MODEL.Page.MasterSingleQuery)(base.Master));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
+2467
-62
File diff suppressed because it is too large
Load Diff
+14
-375
@@ -5,12 +5,6 @@
|
||||
<asp:Content ID="ContentButton" ContentPlaceHolderID="CPHButton" runat="server">
|
||||
<asp:Table ID="CustomButton" runat="server" CellPadding="0" CellSpacing="0">
|
||||
<asp:TableRow>
|
||||
<asp:TableCell>
|
||||
<gtc:gtToolButton ID="btnBJSM" Caption="报价说明" ShowCaption="true" runat="server" Width="70px"
|
||||
Height="19px" OnClick="btnBJSM_Click">
|
||||
</gtc:gtToolButton>
|
||||
</asp:TableCell>
|
||||
|
||||
<asp:TableCell HorizontalAlign="Left" BorderWidth="0px" BorderStyle="notset">
|
||||
<gtc:gtToolButton ID="btnMXOper" BorderWidth="0px" BorderStyle="NotSet" Width="58px"
|
||||
ButtonType="DropDown" ShowCaption="True" runat="server" OnMenuItemClick="btnMXOper_MenuItemClick"
|
||||
@@ -30,11 +24,6 @@
|
||||
</gtc:gtToolButton>
|
||||
</asp:TableCell>
|
||||
|
||||
<asp:TableCell>
|
||||
<gtc:gtToolButton ID="btnTBSJKSLR" Caption="投标数据快速录入" ShowCaption="true" runat="server" Width="118px"
|
||||
Height="19px" OnClientClick="openTBSJKSLR();">
|
||||
</gtc:gtToolButton>
|
||||
</asp:TableCell>
|
||||
<%--报价利润/线缆销售报价单价差--%>
|
||||
<asp:TableCell HorizontalAlign="Left" BorderWidth="0px" BorderStyle="notset">
|
||||
<gtc:gtToolButton ID="btnBJLR" BorderWidth="0px" BorderStyle="NotSet" Width="58px"
|
||||
@@ -55,11 +44,7 @@
|
||||
Caption="料价" OnMenuItemClick="btnLJ_MenuItemClick" OnDropDown="btnLJ_DropDown">
|
||||
</gtc:gtToolButton>
|
||||
</asp:TableCell>
|
||||
<asp:TableCell>
|
||||
<gtc:gtToolButton ID="btnFZGX" Caption="工艺工序" ShowCaption="true" runat="server" Width="70px"
|
||||
Height="19px" OnClick="btnBZGX_Click">
|
||||
</gtc:gtToolButton>
|
||||
</asp:TableCell>
|
||||
|
||||
<asp:TableCell HorizontalAlign="Left" BorderWidth="0px" BorderStyle="notset">
|
||||
<gtc:gtToolButton ID="btnBJ" BorderWidth="0px" BorderStyle="NotSet" Width="82px"
|
||||
Height="19px" ButtonType="DropDown" ShowCaption="True" runat="server" OnClick="btnBJ_Click"
|
||||
@@ -68,7 +53,6 @@
|
||||
</Nodes>
|
||||
</gtc:gtToolButton>
|
||||
</asp:TableCell>
|
||||
|
||||
<asp:TableCell>
|
||||
<gtc:gtButton Style="display: none" ID="btnRefresh1" OnClick="btnRefreshDRBJDMX_Click"
|
||||
runat="server" Visible="true" EnableTheming="false" SkinID="hidden"></gtc:gtButton>
|
||||
@@ -87,42 +71,15 @@
|
||||
</asp:TableCell>
|
||||
<asp:TableCell HorizontalAlign="Left" BorderWidth="0px" BorderStyle="notset">
|
||||
<gtc:gtToolButton ID="btnZDFX" BorderWidth="0px" BorderStyle="NotSet" Width="80px"
|
||||
Height="19px" ButtonType="DropDown" ShowCaption="True" runat="server" OnClick="btnZDFX_Click"
|
||||
Caption="撞单分析" OnMenuItemClick="btnTBYSZDFX_MenuItemClick" OnDropDown="btnZDFX_DropDown" />
|
||||
Height="19px" ButtonType="Button" ShowCaption="True" runat="server" OnClick="btnZDFX_Click"
|
||||
Caption="撞单分析" />
|
||||
</asp:TableCell>
|
||||
<asp:TableCell HorizontalAlign="Left" BorderWidth="0px" BorderStyle="notset">
|
||||
<gtc:gtToolButton ID="btnBJFK" BorderWidth="0px" BorderStyle="NotSet" Width="70px"
|
||||
Height="19px" ButtonType="Button" ShowCaption="True" runat="server" OnClick="btnBJFK_Click"
|
||||
Caption="报价反馈" />
|
||||
</asp:TableCell>
|
||||
<asp:TableCell HorizontalAlign="Left" BorderWidth="0px" BorderStyle="notset">
|
||||
<gtc:gtToolButton ID="btnSend" BorderWidth="0px" BorderStyle="NotSet" Width="70px"
|
||||
Height="19px" ButtonType="Button" ShowCaption="True" runat="server" OnClick="btnSend_Click"
|
||||
Caption="发送数据" />
|
||||
</asp:TableCell>
|
||||
<asp:TableCell HorizontalAlign="Left" BorderWidth="0px" BorderStyle="notset">
|
||||
<gtc:gtToolButton ID="btnQXSend" BorderWidth="0px" BorderStyle="NotSet" Width="70px"
|
||||
Height="19px" ButtonType="Button" ShowCaption="True" runat="server" OnClick="btnQXSend_Click"
|
||||
Caption="取消发送" />
|
||||
</asp:TableCell>
|
||||
<asp:TableCell HorizontalAlign="Left" BorderWidth="0px" BorderStyle="notset">
|
||||
<gtc:gtToolButton ID="btnKHWL" BorderWidth="0px" BorderStyle="NotSet" Width="70px"
|
||||
Height="19px" ButtonType="Button" ShowCaption="True" runat="server" OnClick="btnKHWL_Click"
|
||||
Caption="客户物料">
|
||||
</gtc:gtToolButton>
|
||||
</asp:TableCell>
|
||||
<asp:TableCell HorizontalAlign="Left" BorderWidth="0px" BorderStyle="notset">
|
||||
<gtc:gtToolButton ID="btnCXJS" BorderWidth="0px" BorderStyle="NotSet" Width="70px"
|
||||
Height="19px" ButtonType="Button" ShowCaption="True" runat="server" OnClick="btnCXJS_Click"
|
||||
Caption="重新计算">
|
||||
</gtc:gtToolButton>
|
||||
</asp:TableCell>
|
||||
|
||||
|
||||
<asp:TableCell>
|
||||
<gtc:gtButton Style="display: none" ID="txtKHChange" OnClick="txtKH_TextChanged"
|
||||
runat="server" Visible="true" EnableTheming="false" SkinID="hidden"></gtc:gtButton>
|
||||
</asp:TableCell>
|
||||
<asp:TableCell>
|
||||
<gtc:gtButton Style="display: none" ID="btnReLoad" OnClick="btnReLoad_Click" runat="server"
|
||||
Visible="true" EnableTheming="false" SkinID="hidden"></gtc:gtButton>
|
||||
@@ -131,10 +88,6 @@
|
||||
<gtc:gtButton Style="display: none" ID="btnRefreshOper" OnClick="btnRefreshOper_Click"
|
||||
runat="server" Visible="true" EnableTheming="false" SkinID="hidden"></gtc:gtButton>
|
||||
</asp:TableCell>
|
||||
<asp:TableCell>
|
||||
<gtc:gtButton Style="display: none" ID="btnRefreshGLBJD" OnClick="btnRefreshGLBJD_Click"
|
||||
runat="server" Visible="true" EnableTheming="false" SkinID="hidden"></gtc:gtButton>
|
||||
</asp:TableCell>
|
||||
<%--只是简单的刷新界面,重新加载下记录--%>
|
||||
<asp:TableCell>
|
||||
<gtc:gtButton Style="display: none" ID="btnRefreshCLHQTZ" OnClick="btnOnlyRefresh_Click"
|
||||
@@ -213,10 +166,7 @@
|
||||
<gtc:gtButton Style="display: none" ID="btnRefreshPLTZBZ" OnClick="btnRefreshPLTZBZ_Click"
|
||||
runat="server" Visible="true" EnableTheming="false"></gtc:gtButton>
|
||||
</asp:TableCell>
|
||||
<asp:TableCell>
|
||||
<gtc:gtButton Style="display: none" ID="btnRefreshKHWL" OnClick="btnRefreshKHWL_Click"
|
||||
runat="server" Visible="true" EnableTheming="false"></gtc:gtButton>
|
||||
</asp:TableCell>
|
||||
|
||||
<%--报价单备注以及报价说明助手--%>
|
||||
<asp:TableCell>
|
||||
<gtc:gtButton Style="display: none" ID="btnCODECLASS" OnClick="btnCODECLASS_Click"
|
||||
@@ -333,7 +283,7 @@
|
||||
<gtc:gtLabel ID="lblXSQYID" runat="server">销售区域:</gtc:gtLabel>
|
||||
</td>
|
||||
<td align="left">
|
||||
<gtc:gtComboBox ID="cbxXSQYID" runat="server" Width="129px" AutoPostBack="true" OnSelectedIndexChanged="cbxXSQYID_SelectedIndexChanged">
|
||||
<gtc:gtComboBox ID="cbxXSQYID" runat="server" Width="129px">
|
||||
</gtc:gtComboBox>
|
||||
</td>
|
||||
<td align="right">
|
||||
@@ -410,9 +360,6 @@
|
||||
<gtc:gtComboBox ID="cbxTXY" runat="server" Width="129px" AutoPostBack="true" OnSelectedIndexChanged="cbxTXY_SelectedIndexChanged"
|
||||
ShowValue="false">
|
||||
</gtc:gtComboBox>
|
||||
<gtc:gtAjaxComboBox ID="cbxTXYMC" runat="server" Width="129px" AutoPostBack="true" OnSelectedIndexChanged="cbxTXYMC_SelectedIndexChanged"
|
||||
ServiceMethod="GetTXY3" ServicePath="XLBJDUtils.ashx" EmptyRow="true" ShowValue="false">
|
||||
</gtc:gtAjaxComboBox>
|
||||
<gtc:gtTextBox ID="txtTXY" runat="server" Width="0px" Visible="false"></gtc:gtTextBox>
|
||||
</td>
|
||||
<td align="right">
|
||||
@@ -428,62 +375,7 @@
|
||||
<gtc:gtTextBox ID="txtLXDH" runat="server" Width="138px"></gtc:gtTextBox>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="trST" runat="server">
|
||||
<td align="right">
|
||||
</td>
|
||||
<td align="left">
|
||||
<gtc:gtCheckBox ID="chkYZB" runat="server" Text="预中标" />
|
||||
</td>
|
||||
<td align="right">
|
||||
<gtc:gtLabel ID="lblYZBRQ" runat="server">预中标日期:</gtc:gtLabel>
|
||||
</td>
|
||||
<td align="left">
|
||||
<gtc:gtDateTimeTextBox ID="datYZBRQ" runat="Server" Width="72px"></gtc:gtDateTimeTextBox>
|
||||
</td>
|
||||
<td align="right">
|
||||
<gtc:gtLabel ID="lblJHJHRQS" runat="server">计划交货日期始:</gtc:gtLabel>
|
||||
</td>
|
||||
<td align="left">
|
||||
<gtc:gtDateTimeTextBox ID="datJHJHRQS" runat="Server" Width="100px" EnableRelevant="true" RelevantControl="datJHJHRQZ"></gtc:gtDateTimeTextBox>
|
||||
</td>
|
||||
<td align="right">
|
||||
<gtc:gtLabel ID="lblJHJHRQZ" runat="server" Width="100px">日期止:</gtc:gtLabel>
|
||||
</td>
|
||||
<td align="left" >
|
||||
<table border="0" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td align="left">
|
||||
<gtc:gtDateTimeTextBox ID="datJHJHRQZ" runat="Server" Width="80px" EnableRelevant="true" ></gtc:gtDateTimeTextBox>
|
||||
</td>
|
||||
<td align="left">
|
||||
<gtc:gtCheckBox ID="chkZCJH" runat="server" Text="主材计划已生成" Enabled="false"/>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="trST2" runat="server">
|
||||
<td align="right">
|
||||
<gtc:gtLabel ID="lblYZBSL" runat="server">预中标数量:</gtc:gtLabel>
|
||||
</td>
|
||||
<td align="left">
|
||||
<gtc:gtNumTextBox ID="txtYZBSL" runat="server" DecimalPlaces="5" Width="120px"></gtc:gtNumTextBox>
|
||||
</td>
|
||||
<td align="right">
|
||||
<gtc:gtLabel ID="lblYZBJE" runat="server">预中标金额:</gtc:gtLabel>
|
||||
</td>
|
||||
<td align="left">
|
||||
<gtc:gtNumTextBox ID="txtYZBJE" runat="server" DecimalPlaces="2" Width="120px"></gtc:gtNumTextBox>
|
||||
</td>
|
||||
<td align="right">
|
||||
</td>
|
||||
<td align="left">
|
||||
</td>
|
||||
<td align="right">
|
||||
</td>
|
||||
<td align="left" >
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td align="right">
|
||||
<gtc:gtLabel ID="lblFKQXNR" runat="server">付款期限:</gtc:gtLabel>
|
||||
@@ -656,13 +548,6 @@
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr id="trHJXX" style="display:none;">
|
||||
<td align="right" valign="top" id="tdHJXXLabel">
|
||||
<gtc:gtLabel ID="lblHJXX" runat="server">合计信息:</gtc:gtLabel>
|
||||
</td>
|
||||
<td align="left" colspan="7" id="tdHJXXContent">
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td align="left" style="display: none;">
|
||||
@@ -727,17 +612,6 @@
|
||||
<div id="divGDZSY0" style="overflow: hidden;">
|
||||
<gtc:gtPager ID="pgBar" runat="server" GridViewType="gtAjaxGridView" style="position:absolute; z-index:1; right:0px; margin-top:1px; width:50%;">
|
||||
</gtc:gtPager>
|
||||
<div id="divBarQY" runat="server" style="background-color:White; width:888px; height:28px; right:450px; display:inline-block; position:absolute; border:solid 1px #0398E0;z-index:99">
|
||||
|
||||
<table border="0" cellpadding="0" cellspacing="0" style="width: 100%; height: 100%;">
|
||||
<tr>
|
||||
<td align="left" style="width: 100%; height: 100%;">
|
||||
<gtc:gthtmleditor ID="txtHJXX" runat="server" Width="888px" Height="32px" toolbarstartexpanded="false" ReadOnly="true" ></gtc:gthtmleditor>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</div>
|
||||
<gtc:gtAjaxGridView ID="grdXLBJDMX" runat="server" Height="100%" EnabledToolBar="true"
|
||||
ShowFixedRowNo="true" CanInsertAtIndex="true" OnGetDropDownColumnItems="grdXLBJDMX_GetDropDownColumnItems"
|
||||
OnGetDropListColumnItems="grdXLBJDMX_GetDropListColumnItems" OnNewRecord="grdXLBJDMX_NewRecord"
|
||||
@@ -808,6 +682,8 @@
|
||||
NumberDecimalPlace="5" CalculateField="true" Width="80px" FilterColumn="true" FilterEditType="etNumber"></gtc:gtAjaxGridViewColumn>
|
||||
<gtc:gtAjaxGridViewColumn DataField="XLXSBJDMX_JMBGS" HeaderText="截面比公式" EditType="etString"
|
||||
CalculateField="true" Width="142px"></gtc:gtAjaxGridViewColumn>
|
||||
<gtc:gtAjaxGridViewColumn DataField="XLXSBJDMX_CJ" HeaderText="厂价核算" EditType="etNumber"
|
||||
NumberDecimalPlace="5" Width="80px" FilterColumn="true" FilterEditType="etNumber" ReadOnly="true"></gtc:gtAjaxGridViewColumn>
|
||||
</Columns>
|
||||
</gtc:gtAjaxGridView>
|
||||
</div>
|
||||
@@ -823,8 +699,6 @@
|
||||
<asp:HiddenField ID="ctrlState" runat="server" />
|
||||
<asp:HiddenField ID="txtCLHQJGBID" runat="server" />
|
||||
<asp:HiddenField ID="txtNEWBJDID" runat="server" />
|
||||
<asp:HiddenField ID="txtJSCQDOCGRPID" runat="server" />
|
||||
<asp:HiddenField ID="txtJSCQFJS" runat="server" />
|
||||
<%-- 当前用户是否是询价员、审价员、核价员 --%>
|
||||
<asp:HiddenField ID="IsXJY" runat="server" />
|
||||
<asp:HiddenField ID="IsSJY" runat="server" />
|
||||
@@ -841,7 +715,6 @@
|
||||
<asp:HiddenField ID="txtBJCPFilter" runat="server" />
|
||||
<asp:HiddenField ID="txtCPMLFilter" runat="server" />
|
||||
<asp:HiddenField ID="txtZHCPMLFilter" runat="server" />
|
||||
<asp:HiddenField ID="txtBJU074" runat="server" />
|
||||
<asp:HiddenField ID="txtJGBBJFilter" runat="server" />
|
||||
<asp:HiddenField ID="txtZDXJJCLFilter" runat="server" />
|
||||
<asp:HiddenField ID="txtBZFilter" runat="server" />
|
||||
@@ -867,10 +740,9 @@
|
||||
<asp:HiddenField ID="txtOLDBJDID2" runat="server" />
|
||||
<%--批量调整标准--%>
|
||||
<asp:HiddenField ID="txtPLSZBZID" runat="server" />
|
||||
<asp:HiddenField ID="txtPLSZKHWLID" runat="server" />
|
||||
<asp:HiddenField ID="txtMRBZID" runat="server" />
|
||||
<%--行政划分--%>
|
||||
<asp:HiddenField ID="txtXZQHID" runat="server" />
|
||||
<asp:HiddenField ID="txtOLDXZQHID" runat="server" />
|
||||
<%--与售前项目关联的项目ID--%>
|
||||
<asp:HiddenField ID="txtXMID" runat="server" />
|
||||
<%--项目--%>
|
||||
@@ -905,7 +777,6 @@
|
||||
document.getElementById('ctl00_CphForm_txtIsWebCtrl').value = "Y";
|
||||
}
|
||||
</script>
|
||||
<input id="IsKHChange" runat="server" style="display: none;" />
|
||||
<div id="idSel" onmouseover="isin=true" onmouseout="isin=false" style="clear: none;
|
||||
left: 314px; width: 340px; position: absolute; top: 76px; height: 1px; display: none;">
|
||||
<select size="8" name="lstUSR" id="lstUSR" style="width: 351px;" ondblclick="lstUSRClick()"
|
||||
@@ -935,6 +806,7 @@
|
||||
//研发自测:孙天赐 2026/05/12 13:36:50
|
||||
var isIE = /*@cc_on!@*/false || !!document.documentMode;
|
||||
if (!isIE) {
|
||||
debugger;
|
||||
// 若不是IE模式,AI按钮从渲染的第一刻起就是隐藏的
|
||||
document.write('<style type="text/css">#ctl00_CphForm_divAiButton { opacity: 0 !important; }</style>');
|
||||
}
|
||||
@@ -1046,78 +918,6 @@
|
||||
height: calc(100vh);
|
||||
border: none;
|
||||
}
|
||||
.hjxx-normal {
|
||||
background-color: White !important;
|
||||
width: 420px !important;
|
||||
height: 28px !important;
|
||||
right: 450px !important;
|
||||
display: inline-block !important;
|
||||
position: absolute !important;
|
||||
border: solid 1px #0398E0 !important;
|
||||
z-index: 99 !important;
|
||||
}
|
||||
|
||||
.hjxx-normal > table {
|
||||
width: 100% !important;
|
||||
height: 100% !important;
|
||||
}
|
||||
|
||||
.hjxx-normal .ajax__htmleditor_editor_container,
|
||||
.hjxx-normal iframe:not([id$='___ShowerFrame']) {
|
||||
height: 26px !important;
|
||||
min-height: 26px !important;
|
||||
width: 418px !important;
|
||||
}
|
||||
|
||||
.hjxx-normal [id$='txtHJXX'] {
|
||||
width: 418px !important;
|
||||
}
|
||||
|
||||
|
||||
.hjxx-expanded {
|
||||
position: static !important;
|
||||
width: 880px !important;
|
||||
height: 35px !important;
|
||||
display: block !important;
|
||||
border: none !important;
|
||||
}
|
||||
|
||||
.hjxx-expanded > table {
|
||||
width: 100% !important;
|
||||
height: 100% !important;
|
||||
}
|
||||
|
||||
.hjxx-expanded .ajax__htmleditor_editor_container {
|
||||
height: 32px !important;
|
||||
min-height: 32px !important;
|
||||
width: 100% !important;
|
||||
}
|
||||
|
||||
.hjxx-expanded iframe:not([id$='___ShowerFrame']) {
|
||||
height: 35px !important;
|
||||
min-height: 35px !important;
|
||||
width: 100% !important;
|
||||
}
|
||||
|
||||
.hjxx-expanded [id$='txtHJXX'] {
|
||||
width: 100% !important;
|
||||
}
|
||||
|
||||
.hjxx-expanded div[id$='txtHJXX___Shower'] {
|
||||
width: 100% !important;
|
||||
height: 100% !important;
|
||||
top: 0 !important;
|
||||
left: 0 !important;
|
||||
position: fixed !important;
|
||||
z-index: 9999 !important;
|
||||
background-color: #fff !important;
|
||||
}
|
||||
|
||||
.hjxx-expanded iframe[id$='txtHJXX___ShowerFrame'] {
|
||||
width: 100% !important;
|
||||
height: calc(100% - 18px) !important;
|
||||
min-height: 400px !important;
|
||||
}
|
||||
|
||||
|
||||
</style>
|
||||
@@ -1131,29 +931,6 @@
|
||||
|
||||
window.onReload = resize;
|
||||
|
||||
|
||||
|
||||
// function calcwidth(){
|
||||
// var lblZDXJZJE = document.getElementById("ctl00_CphForm_lblZDXJZJE");
|
||||
// var lblZDXJJCL = document.getElementById("ctl00_CphForm_lblZDXJJCL");
|
||||
// var lblBJDHQLJZJE = document.getElementById("ctl00_CphForm_lblBJDHQLJZJE");
|
||||
// var lblJGBHQLJZJE = document.getElementById("ctl00_CphForm_lblJGBHQLJZJE");
|
||||
// var lblLJJCL = document.getElementById("ctl00_CphForm_lblLJJCL");
|
||||
// var lblJJZJE = document.getElementById("ctl00_CphForm_lblJJZJE");
|
||||
// var lblBJJCL = document.getElementById("ctl00_CphForm_lblBJJCL");
|
||||
// var lblBJZJE = document.getElementById("ctl00_CphForm_lblBJZJE");
|
||||
// var lblBJLJJCL = document.getElementById("ctl00_CphForm_lblBJLJJCL");
|
||||
//
|
||||
// if(lblZDXJZJE)lblZDXJZJE.style.width = ((lblZDXJZJE.parentNode.clientWidth * 0.5) - 2) + 'px';
|
||||
// if(lblZDXJJCL)lblZDXJJCL.style.width = ((lblZDXJJCL.parentNode.clientWidth * 0.5) - 2) + 'px';
|
||||
// if(lblBJDHQLJZJE)lblBJDHQLJZJE.style.width = ((lblBJDHQLJZJE.parentNode.clientWidth * 0.5) - 2) + 'px';
|
||||
// if(lblJGBHQLJZJE)lblJGBHQLJZJE.style.width = ((lblJGBHQLJZJE.parentNode.clientWidth * 0.5) - 2) + 'px';
|
||||
// if(lblLJJCL)lblLJJCL.style.width = ((lblLJJCL.parentNode.clientWidth * 0.5) - 2) + 'px';
|
||||
// if(lblJJZJE)lblJJZJE.style.width = ((lblJJZJE.parentNode.clientWidth * 0.5) - 2) + 'px';
|
||||
// if(lblBJJCL)lblBJJCL.style.width = ((lblBJJCL.parentNode.clientWidth * 0.5) - 2) + 'px';
|
||||
// if(lblBJZJE)lblBJZJE.style.width = ((lblBJZJE.parentNode.clientWidth * 0.5) - 2) + 'px';
|
||||
// if(lblBJLJJCL)lblBJLJJCL.style.width = ((lblBJLJJCL.parentNode.clientWidth * 0.5) - 2) + 'px';
|
||||
// }
|
||||
//研发自测:周国强 2025/5/14 13:30:15
|
||||
function showZDYDIVAIZL(url) {
|
||||
// 创建内部容器div_ZDY2
|
||||
@@ -1310,14 +1087,6 @@
|
||||
showZDYDIV(sUrl);
|
||||
}
|
||||
|
||||
function openPLTJNEW() {
|
||||
var basePath = '../Components/U20261363_N_XLXSBJ/';
|
||||
var pageName = "BJDPLTJ.aspx?BJDID="+document.getElementById('ctl00_CphForm_txtBJDID').value;
|
||||
var sUrl = basePath + pageName;
|
||||
sessionStorage.setItem('quoteBJDID', document.getElementById('ctl00_CphForm_txtBJDID').value);
|
||||
showZDYDIV(sUrl);
|
||||
}
|
||||
|
||||
function openBJCPJXDR() {
|
||||
//研发自测:王威 2025/08/07 09:44:24
|
||||
var protocol = window.location.protocol;
|
||||
@@ -1332,6 +1101,7 @@
|
||||
|
||||
//研发自测:孙天赐 2026/04/28 13:55:19
|
||||
function initDragButton() {
|
||||
debugger;
|
||||
var aiButton = document.getElementById('ctl00_CphForm_divAiButton');
|
||||
|
||||
//研发自测:孙天赐 2026/05/12 11:43:31
|
||||
@@ -1510,6 +1280,7 @@
|
||||
//研发自测:孙天赐 2026/05/12 09:21:39
|
||||
// 如果页面是动态加载的,添加对部分页面刷新的支持
|
||||
if (typeof Sys !== 'undefined' && Sys.WebForms && Sys.WebForms.PageRequestManager) {
|
||||
debugger;
|
||||
Sys.WebForms.PageRequestManager.getInstance().add_endRequest(function(sender, args) {
|
||||
console.log('异步回发完成,重新初始化AI按钮...');
|
||||
//研发自测:孙天赐 2026/05/12 09:21:39
|
||||
@@ -1549,6 +1320,7 @@
|
||||
|
||||
// 设置窗口调整大小事件处理
|
||||
function setupResizeHandler() {
|
||||
debugger;
|
||||
//研发自测:孙天赐 2026/05/12 13:53:19
|
||||
window.addEventListener('resize', function() {
|
||||
var aiButton = document.getElementById('ctl00_CphForm_divAiButton');
|
||||
@@ -1617,18 +1389,6 @@
|
||||
}
|
||||
|
||||
|
||||
function openTBSJKSLR() {
|
||||
//研发自测:王威 2025/08/07 09:44:24
|
||||
var protocol = window.location.protocol;
|
||||
var host = window.location.host;
|
||||
|
||||
// 拼接动态地址
|
||||
var basePath = '../Components/U20261363_N_XLXSBJ/';
|
||||
var pageName = "TBBJKSLR.aspx?BJDID="+document.getElementById('ctl00_CphForm_txtBJDID').value;
|
||||
var sUrl = basePath + pageName;
|
||||
showZDYDIV(sUrl);
|
||||
}
|
||||
|
||||
//研发自测:王威2025/05/06 21:29:43
|
||||
function toggleModal() {
|
||||
//debugger;
|
||||
@@ -1727,8 +1487,7 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function resize(){
|
||||
function resize(){
|
||||
if(document.getElementById('ctl00_CphForm_divBarQY') != null)
|
||||
{
|
||||
//setTimeout(function() {calcwidth();}, 100);
|
||||
@@ -1800,130 +1559,10 @@
|
||||
document.getElementById("ctl00_CphForm_txtFirstJLDW").value=sJLDW.split("|")[0];
|
||||
document.getElementById("ctl00_CphForm_txtFirstBJSL").value=sBJSL;
|
||||
}
|
||||
// var KYKCSL = grid.getFieldValue("KYKCSL",grid._selectedIndex[0]).replace(/ /g, "").replace(/ /g, "").replace(/,/g, "");
|
||||
// var BCFHSL = grid.getFieldValue("BCFHSL",grid._selectedIndex[0]).replace(/ /g, "").replace(/ /g, "").replace(/,/g, "");
|
||||
// if(parseFloat(BCFHSL)>parseFloat(KYKCSL))
|
||||
// {
|
||||
// grid.setFieldValue("BCFHSL",0);
|
||||
// grid.setFieldValue("BCFHJG",0);
|
||||
// grid.setFieldValue("BCFHJE",0);
|
||||
// alert('本次发货数量已经超出库存数量,请重新填写!');
|
||||
// }
|
||||
}
|
||||
//研发自测:谭善勇 2026/07/23 15:46:02
|
||||
function moveHJXXArea() {
|
||||
try {
|
||||
var bju074 = document.getElementById("ctl00_CphForm_txtBJU074") || document.getElementById("txtBJU074");
|
||||
var bju074Val = bju074 ? bju074.value.replace(/^\s+|\s+$/g, '') : "";
|
||||
var divBarQY = document.getElementById("ctl00_CphForm_divBarQY") || document.getElementById("divBarQY");
|
||||
|
||||
if (bju074Val === 'Y') {
|
||||
var tdHJXXContent = document.getElementById("ctl00_CphForm_tdHJXXContent") || document.getElementById("tdHJXXContent");
|
||||
var trHJXX = document.getElementById("ctl00_CphForm_trHJXX") || document.getElementById("trHJXX");
|
||||
|
||||
if (divBarQY != null && tdHJXXContent != null) {
|
||||
if (trHJXX) {
|
||||
trHJXX.style.cssText = "";
|
||||
trHJXX.removeAttribute("style");
|
||||
trHJXX.style.display = "";
|
||||
trHJXX.style.visibility = "visible";
|
||||
}
|
||||
try {
|
||||
tdHJXXContent.appendChild(divBarQY);
|
||||
} catch(ex) {}
|
||||
|
||||
divBarQY.className = "hjxx-expanded";
|
||||
divBarQY.style.cssText = "";
|
||||
divBarQY.removeAttribute("style");
|
||||
divBarQY.style.position = "relative";
|
||||
divBarQY.style.left = "0px";
|
||||
divBarQY.style.top = "0px";
|
||||
divBarQY.style.right = "";
|
||||
divBarQY.style.width = "100%";
|
||||
divBarQY.style.height = "100%";
|
||||
divBarQY.style.display = "block";
|
||||
divBarQY.style.border = "none";
|
||||
divBarQY.style.zIndex = "1";
|
||||
|
||||
var table = divBarQY.getElementsByTagName("table")[0];
|
||||
if (table) table.style.width = "100%";
|
||||
|
||||
var txtHJXX = document.getElementById("ctl00_CphForm_txtHJXX") || document.getElementById("txtHJXX");
|
||||
if (txtHJXX) {
|
||||
txtHJXX.style.cssText = "";
|
||||
txtHJXX.removeAttribute("style");
|
||||
txtHJXX.style.width = "100%";
|
||||
|
||||
var innerTables = txtHJXX.getElementsByTagName("table");
|
||||
for(var i=0; i<innerTables.length; i++) {
|
||||
innerTables[i].style.width = "100%";
|
||||
if (innerTables[i].className.indexOf("ajax__htmleditor") > -1) {
|
||||
innerTables[i].style.height = "";
|
||||
}
|
||||
}
|
||||
|
||||
var iframe = txtHJXX.getElementsByTagName("iframe")[0];
|
||||
if (iframe && iframe.id.indexOf("___ShowerFrame") === -1) {
|
||||
iframe.style.cssText = "";
|
||||
iframe.removeAttribute("style");
|
||||
iframe.style.width = "100%";
|
||||
}
|
||||
}
|
||||
}
|
||||
} else {
|
||||
var pgBar = document.getElementById("ctl00_CphForm_pgBar") || document.getElementById("pgBar");
|
||||
if (divBarQY != null && pgBar != null) {
|
||||
divBarQY.className = "hjxx-normal";
|
||||
divBarQY.style.cssText = "background-color:White; width:420px; height:28px; right:450px; display:inline-block; position:absolute; border:solid 1px #0398E0; z-index:99;";
|
||||
|
||||
var txtHJXX = document.getElementById("ctl00_CphForm_txtHJXX") || document.getElementById("txtHJXX");
|
||||
if (txtHJXX) {
|
||||
txtHJXX.style.cssText = "width:418px; height:26px;";
|
||||
txtHJXX.removeAttribute("style");
|
||||
|
||||
var innerTables = txtHJXX.getElementsByTagName("table");
|
||||
for(var i=0; i<innerTables.length; i++) {
|
||||
innerTables[i].style.width = "100%";
|
||||
if (innerTables[i].className.indexOf("ajax__htmleditor") > -1) {
|
||||
innerTables[i].style.height = "26px";
|
||||
}
|
||||
}
|
||||
|
||||
var iframe = txtHJXX.getElementsByTagName("iframe")[0];
|
||||
if (iframe && iframe.id.indexOf("___ShowerFrame") === -1) {
|
||||
iframe.style.cssText = "width:418px; height:26px;";
|
||||
}
|
||||
}
|
||||
try {
|
||||
pgBar.insertBefore(divBarQY, pgBar.firstChild);
|
||||
} catch(ex) {}
|
||||
}
|
||||
|
||||
var trHJXX = document.getElementById("ctl00_CphForm_trHJXX") || document.getElementById("trHJXX");
|
||||
if (trHJXX) {
|
||||
trHJXX.style.display = "none";
|
||||
}
|
||||
}
|
||||
} catch(e) {}
|
||||
}
|
||||
|
||||
function initMoveHJXXArea() {
|
||||
window.setTimeout(moveHJXXArea, 50);
|
||||
}
|
||||
|
||||
initMoveHJXXArea();
|
||||
|
||||
if (window.attachEvent) {
|
||||
window.attachEvent("onload", initMoveHJXXArea);
|
||||
} else if (window.addEventListener) {
|
||||
window.addEventListener("load", initMoveHJXXArea, false);
|
||||
}
|
||||
|
||||
if (typeof Sys !== 'undefined' && Sys.WebForms && Sys.WebForms.PageRequestManager) {
|
||||
Sys.WebForms.PageRequestManager.getInstance().add_endRequest(function(sender, args) {
|
||||
window.setTimeout(moveHJXXArea, 200);
|
||||
});
|
||||
}
|
||||
</script>
|
||||
|
||||
</asp:Content>
|
||||
|
||||
+2415
-7277
File diff suppressed because it is too large
Load Diff
Generated
+9
-306
@@ -28,15 +28,6 @@ namespace GThinking.U20261363_N_XLXSBJ {
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Table CustomButton;
|
||||
|
||||
/// <summary>
|
||||
/// btnBJSM 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtToolButton btnBJSM;
|
||||
|
||||
/// <summary>
|
||||
/// btnMXOper 控件。
|
||||
/// </summary>
|
||||
@@ -64,15 +55,6 @@ namespace GThinking.U20261363_N_XLXSBJ {
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtToolButton btnBJCPJX;
|
||||
|
||||
/// <summary>
|
||||
/// btnTBSJKSLR 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtToolButton btnTBSJKSLR;
|
||||
|
||||
/// <summary>
|
||||
/// btnBJLR 控件。
|
||||
/// </summary>
|
||||
@@ -100,15 +82,6 @@ namespace GThinking.U20261363_N_XLXSBJ {
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtToolButton btnLJ;
|
||||
|
||||
/// <summary>
|
||||
/// btnFZGX 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtToolButton btnFZGX;
|
||||
|
||||
/// <summary>
|
||||
/// btnBJ 控件。
|
||||
/// </summary>
|
||||
@@ -163,51 +136,6 @@ namespace GThinking.U20261363_N_XLXSBJ {
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtToolButton btnBJFK;
|
||||
|
||||
/// <summary>
|
||||
/// btnSend 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtToolButton btnSend;
|
||||
|
||||
/// <summary>
|
||||
/// btnQXSend 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtToolButton btnQXSend;
|
||||
|
||||
/// <summary>
|
||||
/// btnKHWL 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtToolButton btnKHWL;
|
||||
|
||||
/// <summary>
|
||||
/// btnCXJS 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtToolButton btnCXJS;
|
||||
|
||||
/// <summary>
|
||||
/// txtKHChange 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtButton txtKHChange;
|
||||
|
||||
/// <summary>
|
||||
/// btnReLoad 控件。
|
||||
/// </summary>
|
||||
@@ -226,15 +154,6 @@ namespace GThinking.U20261363_N_XLXSBJ {
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtButton btnRefreshOper;
|
||||
|
||||
/// <summary>
|
||||
/// btnRefreshGLBJD 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtButton btnRefreshGLBJD;
|
||||
|
||||
/// <summary>
|
||||
/// btnRefreshCLHQTZ 控件。
|
||||
/// </summary>
|
||||
@@ -379,15 +298,6 @@ namespace GThinking.U20261363_N_XLXSBJ {
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtButton btnRefreshPLTZBZ;
|
||||
|
||||
/// <summary>
|
||||
/// btnRefreshKHWL 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtButton btnRefreshKHWL;
|
||||
|
||||
/// <summary>
|
||||
/// btnCODECLASS 控件。
|
||||
/// </summary>
|
||||
@@ -901,15 +811,6 @@ namespace GThinking.U20261363_N_XLXSBJ {
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtComboBox cbxTXY;
|
||||
|
||||
/// <summary>
|
||||
/// cbxTXYMC 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtAjaxComboBox cbxTXYMC;
|
||||
|
||||
/// <summary>
|
||||
/// txtTXY 控件。
|
||||
/// </summary>
|
||||
@@ -955,132 +856,6 @@ namespace GThinking.U20261363_N_XLXSBJ {
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtTextBox txtLXDH;
|
||||
|
||||
/// <summary>
|
||||
/// trST 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.HtmlControls.HtmlTableRow trST;
|
||||
|
||||
/// <summary>
|
||||
/// chkYZB 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtCheckBox chkYZB;
|
||||
|
||||
/// <summary>
|
||||
/// lblYZBRQ 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtLabel lblYZBRQ;
|
||||
|
||||
/// <summary>
|
||||
/// datYZBRQ 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtDateTimeTextBox datYZBRQ;
|
||||
|
||||
/// <summary>
|
||||
/// lblJHJHRQS 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtLabel lblJHJHRQS;
|
||||
|
||||
/// <summary>
|
||||
/// datJHJHRQS 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtDateTimeTextBox datJHJHRQS;
|
||||
|
||||
/// <summary>
|
||||
/// lblJHJHRQZ 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtLabel lblJHJHRQZ;
|
||||
|
||||
/// <summary>
|
||||
/// datJHJHRQZ 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtDateTimeTextBox datJHJHRQZ;
|
||||
|
||||
/// <summary>
|
||||
/// chkZCJH 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtCheckBox chkZCJH;
|
||||
|
||||
/// <summary>
|
||||
/// trST2 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.HtmlControls.HtmlTableRow trST2;
|
||||
|
||||
/// <summary>
|
||||
/// lblYZBSL 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtLabel lblYZBSL;
|
||||
|
||||
/// <summary>
|
||||
/// txtYZBSL 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtNumTextBox txtYZBSL;
|
||||
|
||||
/// <summary>
|
||||
/// lblYZBJE 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtLabel lblYZBJE;
|
||||
|
||||
/// <summary>
|
||||
/// txtYZBJE 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtNumTextBox txtYZBJE;
|
||||
|
||||
/// <summary>
|
||||
/// lblFKQXNR 控件。
|
||||
/// </summary>
|
||||
@@ -1522,15 +1297,6 @@ namespace GThinking.U20261363_N_XLXSBJ {
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtDateTime datWHSJ;
|
||||
|
||||
/// <summary>
|
||||
/// lblHJXX 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtLabel lblHJXX;
|
||||
|
||||
/// <summary>
|
||||
/// txtBJDYZ 控件。
|
||||
/// </summary>
|
||||
@@ -1774,24 +1540,6 @@ namespace GThinking.U20261363_N_XLXSBJ {
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtPager pgBar;
|
||||
|
||||
/// <summary>
|
||||
/// divBarQY 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.HtmlControls.HtmlGenericControl divBarQY;
|
||||
|
||||
/// <summary>
|
||||
/// txtHJXX 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtHTMLEditor txtHJXX;
|
||||
|
||||
/// <summary>
|
||||
/// grdXLBJDMX 控件。
|
||||
/// </summary>
|
||||
@@ -1909,24 +1657,6 @@ namespace GThinking.U20261363_N_XLXSBJ {
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.HiddenField txtNEWBJDID;
|
||||
|
||||
/// <summary>
|
||||
/// txtJSCQDOCGRPID 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.HiddenField txtJSCQDOCGRPID;
|
||||
|
||||
/// <summary>
|
||||
/// txtJSCQFJS 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.HiddenField txtJSCQFJS;
|
||||
|
||||
/// <summary>
|
||||
/// IsXJY 控件。
|
||||
/// </summary>
|
||||
@@ -2044,15 +1774,6 @@ namespace GThinking.U20261363_N_XLXSBJ {
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.HiddenField txtZHCPMLFilter;
|
||||
|
||||
/// <summary>
|
||||
/// txtBJU074 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.HiddenField txtBJU074;
|
||||
|
||||
/// <summary>
|
||||
/// txtJGBBJFilter 控件。
|
||||
/// </summary>
|
||||
@@ -2197,24 +1918,6 @@ namespace GThinking.U20261363_N_XLXSBJ {
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.HiddenField txtPLSZBZID;
|
||||
|
||||
/// <summary>
|
||||
/// txtPLSZKHWLID 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.HiddenField txtPLSZKHWLID;
|
||||
|
||||
/// <summary>
|
||||
/// txtMRBZID 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.HiddenField txtMRBZID;
|
||||
|
||||
/// <summary>
|
||||
/// txtXZQHID 控件。
|
||||
/// </summary>
|
||||
@@ -2224,6 +1927,15 @@ namespace GThinking.U20261363_N_XLXSBJ {
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.HiddenField txtXZQHID;
|
||||
|
||||
/// <summary>
|
||||
/// txtOLDXZQHID 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.HiddenField txtOLDXZQHID;
|
||||
|
||||
/// <summary>
|
||||
/// txtXMID 控件。
|
||||
/// </summary>
|
||||
@@ -2413,15 +2125,6 @@ namespace GThinking.U20261363_N_XLXSBJ {
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.HiddenField txtIsWebCtrl;
|
||||
|
||||
/// <summary>
|
||||
/// IsKHChange 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.HtmlControls.HtmlInputText IsKHChange;
|
||||
|
||||
/// <summary>
|
||||
/// divAiButton 控件。
|
||||
/// </summary>
|
||||
|
||||
@@ -79,10 +79,6 @@
|
||||
<itemstyle width="150px"></itemstyle>
|
||||
<headerstyle width="150px"></headerstyle>
|
||||
</asp:BoundField>
|
||||
<%-- <asp:BoundField HeaderText="客户传真" DataField="XLXSBJD_CZ">
|
||||
<itemstyle width="150px"></itemstyle>
|
||||
<headerstyle width="150px"></headerstyle>
|
||||
</asp:BoundField>--%>
|
||||
<asp:BoundField HeaderText="项目" DataField="XLXSBJD_XMMC">
|
||||
<itemstyle width="150px"></itemstyle>
|
||||
<headerstyle width="150px"></headerstyle>
|
||||
@@ -99,10 +95,6 @@
|
||||
<itemstyle width="150px"></itemstyle>
|
||||
<headerstyle width="150px"></headerstyle>
|
||||
</asp:BoundField>
|
||||
<%--<asp:BoundField HeaderText="利润率(%)" DataField="XLXSBJD_LRL">
|
||||
<itemstyle horizontalalign="Right" width="80px"></itemstyle>
|
||||
<headerstyle width="80px"></headerstyle>
|
||||
</asp:BoundField>--%>
|
||||
<asp:BoundField HeaderText="报价总金额" DataField="XLXSBJD_ZJE">
|
||||
<itemstyle horizontalalign="Right" width="80px"></itemstyle>
|
||||
<headerstyle width="80px"></headerstyle>
|
||||
@@ -260,8 +252,6 @@
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="XLXSBJD_LXDH" EditType="etString" ShowHint="true">
|
||||
</gtc:gtGridView_Column>
|
||||
<%-- <gtc:gtGridView_Column DataField="XLXSBJD_CZ" EditType="etString" ShowHint="true">
|
||||
</gtc:gtGridView_Column>--%>
|
||||
<gtc:gtGridView_Column DataField="XLXSBJD_XMMC" EditType="etString" ShowHint="true">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="XLXSBJD_XXDZ" EditType="etString" ShowHint="true">
|
||||
@@ -270,9 +260,6 @@
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="XLXSBJD_FKSM" EditType="etString" ShowHint="true">
|
||||
</gtc:gtGridView_Column>
|
||||
<%--<gtc:gtGridView_Column DataField="XLXSBJD_LRL" EditType="etNumber" ShowZero="false"
|
||||
NumberDecimalPlace="2">
|
||||
</gtc:gtGridView_Column>--%>
|
||||
<gtc:gtGridView_Column DataField="XLXSBJD_ZJE" EditType="etNumber" ShowZero="false"
|
||||
NumberDecimalPlace="2">
|
||||
</gtc:gtGridView_Column>
|
||||
|
||||
+441
-399
File diff suppressed because it is too large
Load Diff
@@ -227,16 +227,6 @@
|
||||
</gtc:gtTextBox>
|
||||
</asp:TableCell>
|
||||
</asp:TableRow>
|
||||
<asp:TableRow>
|
||||
<asp:TableCell></asp:TableCell>
|
||||
<asp:TableCell HorizontalAlign="Right" Width="120px" Height="22px">
|
||||
<gtc:gtLabel ID="lblZCJH" runat="server">主材计划生成情况:</gtc:gtLabel>
|
||||
</asp:TableCell>
|
||||
<asp:TableCell Height="22px">
|
||||
<gtc:gtComboBox ID="cbxZCJH" runat="server" DataField="ZCJHSCQK" Width="150px" ShowValue="false">
|
||||
</gtc:gtComboBox>
|
||||
</asp:TableCell>
|
||||
</asp:TableRow>
|
||||
|
||||
<asp:TableRow>
|
||||
<asp:TableCell></asp:TableCell>
|
||||
|
||||
+1
-5
@@ -76,11 +76,7 @@ namespace GThinking.U20261363_N_XLXSBJ
|
||||
cbxFKJG.Items.Add(new ListItem("弃标", "Q"));
|
||||
cbxFKJG.ShowValue = false;
|
||||
|
||||
cbxZCJH.ClearItems();
|
||||
cbxZCJH.Items.Add(new ListItem("全部", ""));
|
||||
cbxZCJH.Items.Add(new ListItem("未生成", "未生成"));
|
||||
cbxZCJH.Items.Add(new ListItem("已生成", "已生成"));
|
||||
cbxZCJH.ShowValue = false;
|
||||
|
||||
|
||||
TDatabase dberp = TContextDatabases.GetDatabase("DBERP");
|
||||
TSQL sql = new TSQL(dberp);
|
||||
|
||||
Generated
-18
@@ -478,24 +478,6 @@ namespace GThinking.U20261363_N_XLXSBJ {
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtTextBox txtKHDH;
|
||||
|
||||
/// <summary>
|
||||
/// lblZCJH 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtLabel lblZCJH;
|
||||
|
||||
/// <summary>
|
||||
/// cbxZCJH 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtComboBox cbxZCJH;
|
||||
|
||||
/// <summary>
|
||||
/// chkZDFXYQR 控件。
|
||||
/// </summary>
|
||||
|
||||
+3552
-823
File diff suppressed because it is too large
Load Diff
+151
-295
@@ -124,8 +124,6 @@ namespace GThinking.U20261363_N_XLXSBJ
|
||||
return _dsFJXX;
|
||||
}
|
||||
|
||||
public string sYZBSPTJ = "N";//从预中标审批流程提交
|
||||
public string sYZBSPTH = "N";//退回到预中标审批流程
|
||||
|
||||
|
||||
|
||||
@@ -256,61 +254,8 @@ namespace GThinking.U20261363_N_XLXSBJ
|
||||
set { SetField("XLXSBJD_KHLXR", value); }
|
||||
}
|
||||
|
||||
[DataMember(DbField = "XLXSBJD_YZB", DbTitle = "预中标", IsKey = false, DbType = TGtdbType.VarChar,
|
||||
Len = 1, IsNullable = true, DefValue = "N", CtlName = "chkYZB",
|
||||
CtlType = FieldType.Y)]
|
||||
public string XLXSBJD_YZB
|
||||
{
|
||||
get { return GetField("XLXSBJD_YZB").ToString().Trim(); }
|
||||
set { SetField("XLXSBJD_YZB", value); }
|
||||
}
|
||||
|
||||
|
||||
[DataMember(DbField = "XLXSBJD_YZBRQ", DbTitle = "预中标日期", IsKey = false, DbType = TGtdbType.DateTime,
|
||||
Len = 20, IsNullable = true, DefValue = "", CtlName = "datYZBRQ",
|
||||
CtlType = FieldType.D)]
|
||||
public string XLXSBJD_YZBRQ
|
||||
{
|
||||
get { return GetField("XLXSBJD_YZBRQ").ToString().Trim(); }
|
||||
set { SetField("XLXSBJD_YZBRQ", value); }
|
||||
}
|
||||
|
||||
[DataMember(DbField = "XLXSBJD_JHJHRQS", DbTitle = "计划交货日期始", IsKey = false, DbType = TGtdbType.DateTime,
|
||||
Len = 20, IsNullable = true, DefValue = "", CtlName = "datJHJHRQS",
|
||||
CtlType = FieldType.D)]
|
||||
public string XLXSBJD_JHJHRQS
|
||||
{
|
||||
get { return GetField("XLXSBJD_JHJHRQS").ToString().Trim(); }
|
||||
set { SetField("XLXSBJD_JHJHRQS", value); }
|
||||
}
|
||||
|
||||
[DataMember(DbField = "XLXSBJD_JHJHRQZ", DbTitle = "计划交货日期止", IsKey = false, DbType = TGtdbType.DateTime,
|
||||
Len = 20, IsNullable = true, DefValue = "", CtlName = "datJHJHRQZ",
|
||||
CtlType = FieldType.D)]
|
||||
public string XLXSBJD_JHJHRQZ
|
||||
{
|
||||
get { return GetField("XLXSBJD_JHJHRQZ").ToString().Trim(); }
|
||||
set { SetField("XLXSBJD_JHJHRQZ", value); }
|
||||
}
|
||||
|
||||
[DataMember(DbField = "XLXSBJD_YZBSL", DbTitle = "预中标数量", IsKey = false, DbType = TGtdbType.Float,
|
||||
Len = 0, IsNullable = true, DefValue = "0", CtlName = "txtYZBSL",
|
||||
CtlType = FieldType.F)]
|
||||
public string XLXSBJD_YZBSL
|
||||
{
|
||||
get { return GetField("XLXSBJD_YZBSL").ToString().Trim(); }
|
||||
set { SetField("XLXSBJD_YZBSL", value); }
|
||||
}
|
||||
|
||||
[DataMember(DbField = "XLXSBJD_YZBJE", DbTitle = "预中标金额", IsKey = false, DbType = TGtdbType.Float,
|
||||
Len = 0, IsNullable = true, DefValue = "0", CtlName = "txtYZBJE",
|
||||
CtlType = FieldType.F)]
|
||||
public string XLXSBJD_YZBJE
|
||||
{
|
||||
get { return GetField("XLXSBJD_YZBJE").ToString().Trim(); }
|
||||
set { SetField("XLXSBJD_YZBJE", value); }
|
||||
}
|
||||
|
||||
[DataMember(DbField = "XLXSBJD_LXDH", DbTitle = "客户联系电话", IsKey = false, DbType = TGtdbType.VarChar,
|
||||
Len = 60, IsNullable = true, DefValue = "", CtlName = "txtLXDH",
|
||||
CtlType = FieldType.C)]
|
||||
@@ -726,7 +671,6 @@ namespace GThinking.U20261363_N_XLXSBJ
|
||||
SQL.Add("XLXSBJD_YSJDID,");
|
||||
SQL.Add("XLXSBJD_GYSID,");
|
||||
SQL.Add("XLXSBJD_YSFY,");
|
||||
SQL.Add("XLXSBJD_YZB,XLXSBJD_YZBRQ,XLXSBJD_JHJHRQS,XLXSBJD_JHJHRQZ,XLXSBJD_YZBSL,XLXSBJD_YZBJE,");
|
||||
SQL.Add("XLXSBJD_TJ,XLXSBJD_LJ,XLXSBJD_CZJSXY,XLXSBJD_KHDH,");
|
||||
SQL.Add("XLXSBJD_XZQHID,XLXSBJD_XMID,");
|
||||
SQL.Add("XLXSBJD_SQR,XLXSBJD_SQRGH,XLXSBJD_SQRID,XLXSBJD_SQRQ,");
|
||||
@@ -753,7 +697,6 @@ namespace GThinking.U20261363_N_XLXSBJ
|
||||
SQL.Add(":XLXSBJD_YSJDID,");
|
||||
SQL.Add(":XLXSBJD_GYSID,");
|
||||
SQL.Add(":XLXSBJD_YSFY,");
|
||||
SQL.Add(":XLXSBJD_YZB,:XLXSBJD_YZBRQ,:XLXSBJD_JHJHRQS,:XLXSBJD_JHJHRQZ,:XLXSBJD_YZBSL,:XLXSBJD_YZBJE,");
|
||||
SQL.Add(":XLXSBJD_TJ,:XLXSBJD_LJ,:XLXSBJD_CZJSXY,:XLXSBJD_KHDH,");
|
||||
SQL.Add(":XLXSBJD_XZQHID,:XLXSBJD_XMID,");
|
||||
SQL.Add(":XLXSBJD_SQR,:XLXSBJD_SQRGH,:XLXSBJD_SQRID,:XLXSBJD_SQRQ,");
|
||||
@@ -784,7 +727,6 @@ namespace GThinking.U20261363_N_XLXSBJ
|
||||
SQL.Add(" XLXSBJD_LRL=:XLXSBJD_LRL, ");
|
||||
SQL.Add(" XLXSBJD_FKQXNR=:XLXSBJD_FKQXNR, ");
|
||||
SQL.Add(" XLXSBJD_YSJDID=:XLXSBJD_YSJDID,XLXSBJD_GYSID=:XLXSBJD_GYSID,XLXSBJD_YSFY=:XLXSBJD_YSFY, ");
|
||||
SQL.Add(" XLXSBJD_YZB=:XLXSBJD_YZB,XLXSBJD_YZBRQ=:XLXSBJD_YZBRQ,XLXSBJD_JHJHRQS=:XLXSBJD_JHJHRQS,XLXSBJD_JHJHRQZ=:XLXSBJD_JHJHRQZ,XLXSBJD_YZBSL=:XLXSBJD_YZBSL,XLXSBJD_YZBJE=:XLXSBJD_YZBJE,");
|
||||
SQL.Add(" XLXSBJD_TJ=:XLXSBJD_TJ,XLXSBJD_LJ=:XLXSBJD_LJ,XLXSBJD_CZJSXY=:XLXSBJD_CZJSXY,XLXSBJD_KHDH=:XLXSBJD_KHDH,");
|
||||
SQL.Add(" XLXSBJD_XZQHID=:XLXSBJD_XZQHID,XLXSBJD_XMID=:XLXSBJD_XMID,XLXSBJD_KQZYZDBS=:XLXSBJD_KQZYZDBS,");
|
||||
SQL.Add(" XLXSBJD_WHR=:XLXSBJD_WHR, ");
|
||||
@@ -804,7 +746,6 @@ namespace GThinking.U20261363_N_XLXSBJ
|
||||
SQL.Add(" XLXSBJD_ZJE,XLXSBJD_ZZL,XLXSBJD_LRL,XLXSBJD_ZDZDLX, ");
|
||||
SQL.Add(" XLXSBJD_FKQXNR,XLXSBJD_BJSM,XLXSBJD_TJ,XLXSBJD_LJ,XLXSBJD_CZJSXY,XLXSBJD_KHDH,");
|
||||
SQL.Add(" XLXSBJD_XZQHID,XLXSBJD_XMID,");
|
||||
SQL.Add(" XLXSBJD_YZB,XLXSBJD_YZBRQ,XLXSBJD_JHJHRQS,XLXSBJD_JHJHRQZ,XLXSBJD_YZBSL,XLXSBJD_YZBJE,");
|
||||
SQL.Add(" XLXSBJD_YBJDIDS,XLXSBJD_ZT,XLXSBJD_FZBZ,XLXSBJD_BJSQDH,");
|
||||
SQL.Add(" XLXSBJD_YSJDID,XLXSBJD_GYSID,XLXSBJD_YSFY,XLXSBJD_ZB,XLXSBJD_ZBJE,XLXSBJD_KQZYZDBS,");
|
||||
SQL.Add(" XLXSBJD_WHR, XLXSBJD_WHRID, XLXSBJD_WHSJ, XLXSBJD_DOCGRPID, XLXSBJD_FJS, XLXSBJD_WFID, XLXSBJD_WFINST, XLXSBJD_WPID, XLXSBJD_WFAWAITER, XLXSBJD_WFHANDLER, XLXSBJD_ACTNAME");
|
||||
@@ -822,7 +763,6 @@ namespace GThinking.U20261363_N_XLXSBJ
|
||||
SQL.Add(" XLXSBJD_ZJE,XLXSBJD_ZZL,XLXSBJD_LRL,XLXSBJD_SQR,XLXSBJD_SQRGH,XLXSBJD_SQRID,XLXSBJD_ZDQRRGH, ");
|
||||
SQL.Add(" XLXSBJD_FKQXNR,XLXSBJD_BJSM,XLXSBJD_TJ,XLXSBJD_LJ,XLXSBJD_CZJSXY,XLXSBJD_KHDH,");
|
||||
SQL.Add(" XLXSBJD_XZQHID,XLXSBJD_XMID,XLXSBJD_ZDZDLX,");
|
||||
SQL.Add(" XLXSBJD_YZB,XLXSBJD_YZBRQ,XLXSBJD_JHJHRQS,XLXSBJD_JHJHRQZ,XLXSBJD_YZBSL,XLXSBJD_YZBJE,");
|
||||
SQL.Add(" XLXSBJD_YBJDIDS,XLXSBJD_ZT,XLXSBJD_FZBZ,XLXSBJD_BJSQDH,");
|
||||
SQL.Add(" XLXSBJD_YSJDID,XLXSBJD_GYSID,XLXSBJD_YSFY,XLXSBJD_ZB,XLXSBJD_ZBJE,XLXSBJD_KQZYZDBS,");
|
||||
SQL.Add(" XLXSBJD_WHR, XLXSBJD_WHRID, XLXSBJD_WHSJ, XLXSBJD_DOCGRPID, XLXSBJD_FJS, XLXSBJD_WFID, XLXSBJD_WFINST, XLXSBJD_WPID, XLXSBJD_WFAWAITER, XLXSBJD_WFHANDLER, XLXSBJD_ACTNAME");
|
||||
@@ -848,13 +788,6 @@ namespace GThinking.U20261363_N_XLXSBJ
|
||||
public override void WFBeforeAction(TWorkflow Sender, TWFAction Action, ref bool CanAction)
|
||||
{
|
||||
base.WFBeforeAction(Sender, Action, ref CanAction);
|
||||
string sOption = Sender.GetWPOption(Sender.WFID, Sender.WPID, "生成PDF附件").ToString().Trim();
|
||||
if (Action == TWFAction.wfaSubmit)
|
||||
{
|
||||
if (sOption.Equals("Y"))
|
||||
XLBJDInfo.PDFDC(XLXSBJD_BJDID);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public override void WFAfterAction(GThinking.N_WORKFLOW.TWorkflow Sender, TWFAction Action, bool ActionIsDone)
|
||||
@@ -872,8 +805,8 @@ namespace GThinking.U20261363_N_XLXSBJ
|
||||
DataSet ds = Sender.dbe.OpenDataSet(SQL);
|
||||
if (ds.Tables[0].Rows.Count > 0)
|
||||
{
|
||||
sWPID = ds.Tables[0].Rows[0][0].ToString().Trim();
|
||||
sBJSQDH = ds.Tables[0].Rows[0][1].ToString().Trim();
|
||||
sWPID = ds.Tables[0].Rows[0]["XLXSBJD_WPID"].ToString().Trim();
|
||||
sBJSQDH = ds.Tables[0].Rows[0]["XLXSBJD_BJSQDH"].ToString().Trim();
|
||||
}
|
||||
CMISproSession tSession = getSession();
|
||||
string sZDQRWPID = XLBJDUtils.GetXLXSBJPZXX(100860068).XLXSBJPZ_ZDQRWPID;
|
||||
@@ -895,7 +828,7 @@ namespace GThinking.U20261363_N_XLXSBJ
|
||||
|
||||
if (!sBJSQDH.Trim().Equals("") && XLBJDInfo.CheckXSYBJSQ_SS())
|
||||
{
|
||||
string sBJJSJD = ds.Tables[0].Rows[0][2].ToString().Trim();
|
||||
string sBJJSJD = ds.Tables[0].Rows[0]["XLXSBJD_BJJSJD"].ToString().Trim();
|
||||
string sWPNAME = Sender.GetWPName(Sender.WFID, sWPID);
|
||||
string sJSJD = tSession.UserName + " " + Sender.WAend.ToString().Trim() + " " + sWPNAME + " " + Sender.GetWFActionName(Action);
|
||||
if (!sBJJSJD.Equals(""))
|
||||
@@ -929,7 +862,6 @@ namespace GThinking.U20261363_N_XLXSBJ
|
||||
|
||||
string sCurZT = TWorkflow.Utils.WFGetBZSWID(Sender.WFID, Sender.WPID);
|
||||
|
||||
//若“100860062|销售报价业务配置”项目检索来源为“YXXM|售前项目”且XLXSBJD_XMMC不为空
|
||||
if (sCurZT == "ZZZZ")
|
||||
{
|
||||
|
||||
@@ -963,7 +895,7 @@ namespace GThinking.U20261363_N_XLXSBJ
|
||||
|
||||
if (sCurZT == "ZZZZ" && !sBJSQDH.Trim().Equals("") && XLBJDInfo.CheckXSYBJSQ_SS())
|
||||
{
|
||||
string sZB = ds.Tables[0].Rows[0][3].ToString().Trim();
|
||||
string sZB = ds.Tables[0].Rows[0]["XLXSBJD_ZB"].ToString().Trim();
|
||||
if (sZB.Equals("Y"))
|
||||
DispatchXLBJSQ(sBJSQDH, "ZZZZ", tSession);
|
||||
else
|
||||
@@ -1016,7 +948,7 @@ namespace GThinking.U20261363_N_XLXSBJ
|
||||
JudgeDifBJCP(sBJDID, sBJU003, ref sWarningMsg, fCanSubmit);
|
||||
if (!sWarningMsg.Equals(""))
|
||||
{
|
||||
WarningMsg = String.Format(("显示序号为【" + sWarningMsg + "】的相同报价产品的报价不同,不允许提交!"));
|
||||
WarningMsg = "显示序号为【" + sWarningMsg + "】的相同报价产品的报价不同,不允许提交!";
|
||||
return false;
|
||||
}
|
||||
}
|
||||
@@ -1128,8 +1060,17 @@ namespace GThinking.U20261363_N_XLXSBJ
|
||||
myWF.Enabled = true;
|
||||
myWF.CurUserID = tSession.UserId;
|
||||
myWF.WFNewInst(myWF.GetWFID("SQXM_XMBJ"), tSession.UserId);
|
||||
dberp.ExecSQL(string.Format("update BJPS set BJPS_WFID = '{0}', BJPS_WPID = '{1}',BJPS_WFAWAITER= '{2}',BJPS_WFHANDLER = '{3}',BJPS_WFINST = {4},BJPS_ACTNAME = '{5}' where BJPS_PSDH='{6}' ",
|
||||
myWF.WFID, myWF.WPID, myWF.Awaiter, myWF.Handler, myWF.WFInst, myWF.GetWFActionName(TWFAction.wfaNewInst), sPSDH));
|
||||
SQL.Clear();
|
||||
SQL.Add(" update BJPS set BJPS_WFID=:pWFID, BJPS_WPID=:pWPID, BJPS_WFAWAITER=:pWFAWAITER, BJPS_WFHANDLER=:pWFHANDLER, BJPS_WFINST=:pWFINST, BJPS_ACTNAME=:pACTNAME ");
|
||||
SQL.Add(" where BJPS_PSDH=:pBJPS_PSDH ");
|
||||
SQL.ParamByName("pWFID").Value = myWF.WFID;
|
||||
SQL.ParamByName("pWPID").Value = myWF.WPID;
|
||||
SQL.ParamByName("pWFAWAITER").Value = myWF.Awaiter;
|
||||
SQL.ParamByName("pWFHANDLER").Value = myWF.Handler;
|
||||
SQL.ParamByName("pWFINST").Value = myWF.WFInst;
|
||||
SQL.ParamByName("pACTNAME").Value = myWF.GetWFActionName(TWFAction.wfaNewInst);
|
||||
SQL.ParamByName("pBJPS_PSDH").Value = sPSDH;
|
||||
dberp.ExecSQL(SQL);
|
||||
bINS = true;
|
||||
}
|
||||
}
|
||||
@@ -1160,7 +1101,7 @@ namespace GThinking.U20261363_N_XLXSBJ
|
||||
DataSet ds = dberp.OpenDataSet(SQL);
|
||||
if (ds.Tables[0].Rows.Count > 0)
|
||||
{
|
||||
fZDXJ = CMISproConvert.StrToFloat(ds.Tables[0].Rows[0][0].ToString().Trim());
|
||||
fZDXJ = CMISproConvert.StrToFloat(ds.Tables[0].Rows[0]["ZDXJ"].ToString().Trim());
|
||||
}
|
||||
return fZDXJ;
|
||||
}
|
||||
@@ -1176,7 +1117,7 @@ namespace GThinking.U20261363_N_XLXSBJ
|
||||
DataSet ds = dberp.OpenDataSet(SQL);
|
||||
if (ds.Tables[0].Rows.Count > 0)
|
||||
{
|
||||
sXMID = ds.Tables[0].Rows[0][0].ToString().Trim();
|
||||
sXMID = ds.Tables[0].Rows[0]["YXXM_XMID"].ToString().Trim();
|
||||
}
|
||||
return sXMID;
|
||||
}
|
||||
@@ -1305,8 +1246,31 @@ namespace GThinking.U20261363_N_XLXSBJ
|
||||
}
|
||||
|
||||
|
||||
//撞单类型代码->名称
|
||||
private static readonly Dictionary<string, string> dicZDLX = new Dictionary<string, string>();
|
||||
|
||||
static XLBJD_BDOBill()
|
||||
{
|
||||
dicZDLX.Add("1", "客户+销售员相撞");
|
||||
dicZDLX.Add("2", "客户名称重复");
|
||||
dicZDLX.Add("3", "项目名称重复");
|
||||
dicZDLX.Add("4", "项目名称词组重复");
|
||||
dicZDLX.Add("5", "产品重复");
|
||||
dicZDLX.Add("6", "产品+数量重复");
|
||||
dicZDLX.Add("G", "规格+数量重复");
|
||||
dicZDLX.Add("7", "仅型号规格重复");
|
||||
dicZDLX.Add("8", "备案项目客户名称重复");
|
||||
dicZDLX.Add("9", "备案项目名称重复");
|
||||
dicZDLX.Add("A", "备案项目名称+销售员重复");
|
||||
dicZDLX.Add("B", "项目与客户名称相撞");
|
||||
dicZDLX.Add("C", "客户联系人重复");
|
||||
dicZDLX.Add("D", "客户电话重复");
|
||||
dicZDLX.Add("E", "按产品个数区间+分段重复率查产品重复");
|
||||
dicZDLX.Add("F", "客户名称、项目名称重复");
|
||||
}
|
||||
|
||||
public static string getZDZDLX(string sBJDID)
|
||||
{
|
||||
{
|
||||
if (XLBJDUtils.GetXLXSBJPZXX(100860068).XLXSBJPZ_ZDZDLX.Equals(""))
|
||||
return "";
|
||||
string sZDLXList = string.Empty;
|
||||
@@ -1321,40 +1285,6 @@ namespace GThinking.U20261363_N_XLXSBJ
|
||||
sql.Add(sSQL);
|
||||
sql.ParamByName("pBJDID").Value = sBJDID;
|
||||
DataSet ds=dberp.OpenDataSet(sql);
|
||||
Dictionary<string, string> dicZDLX = new Dictionary<string, string>();
|
||||
|
||||
dicZDLX.Add("1", "客户+销售员相撞");
|
||||
|
||||
dicZDLX.Add("2", "客户名称重复");
|
||||
|
||||
dicZDLX.Add("3", "项目名称重复");
|
||||
|
||||
dicZDLX.Add("4", "项目名称词组重复");
|
||||
|
||||
dicZDLX.Add("5", "产品重复");
|
||||
|
||||
dicZDLX.Add("6", "产品+数量重复");
|
||||
|
||||
dicZDLX.Add("G", "规格+数量重复");
|
||||
|
||||
dicZDLX.Add("7", "仅型号规格重复");
|
||||
|
||||
dicZDLX.Add("8", "备案项目客户名称重复");
|
||||
|
||||
dicZDLX.Add("9", "备案项目名称重复");
|
||||
|
||||
dicZDLX.Add("A", "备案项目名称+销售员重复");
|
||||
|
||||
dicZDLX.Add("B", "项目与客户名称相撞");
|
||||
|
||||
dicZDLX.Add("C", "客户联系人重复");
|
||||
|
||||
dicZDLX.Add("D", "客户电话重复");
|
||||
|
||||
dicZDLX.Add("E", "按产品个数区间+分段重复率查产品重复");
|
||||
|
||||
dicZDLX.Add("F", "客户名称、项目名称重复");
|
||||
|
||||
Dictionary<string, string> dicYYZDLX = new Dictionary<string, string>();
|
||||
for (int i = 0; i < ds.Tables[0].Rows.Count; i++)
|
||||
{
|
||||
@@ -1364,10 +1294,11 @@ namespace GThinking.U20261363_N_XLXSBJ
|
||||
string []sZDLXNum = ds.Tables[0].Rows[i][0].ToString().Trim().TrimEnd(',').Split(',');
|
||||
for (int j = 0; j < sZDLXNum.Length; j++)
|
||||
{
|
||||
if (!dicYYZDLX.ContainsKey(sZDLXNum[j]))
|
||||
string sZDMC;
|
||||
if (!dicYYZDLX.ContainsKey(sZDLXNum[j]) && dicZDLX.TryGetValue(sZDLXNum[j], out sZDMC))
|
||||
{
|
||||
dicYYZDLX.Add(sZDLXNum[j], dicZDLX[sZDLXNum[j]]);
|
||||
sZDLXList += dicZDLX[sZDLXNum[j]]+";";
|
||||
dicYYZDLX.Add(sZDLXNum[j], sZDMC);
|
||||
sZDLXList += sZDMC + ";";
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1915,16 +1846,12 @@ namespace GThinking.U20261363_N_XLXSBJ
|
||||
|
||||
|
||||
public static void JudgeDifBJCP(string sBJDID, string sBJU003, ref string WarningMsg, string sXTCPBJYZ)
|
||||
{
|
||||
{
|
||||
List<string> lst = new List<string>();
|
||||
lst.Clear();
|
||||
|
||||
Dictionary<string, string> dicA = new Dictionary<string, string>();
|
||||
Dictionary<string, string> dicB = new Dictionary<string, string>();
|
||||
Dictionary<string, string> dicC = new Dictionary<string, string>();
|
||||
dicA.Clear();
|
||||
dicB.Clear();
|
||||
dicC.Clear();
|
||||
|
||||
//型号,规格,标准, 电压等级拼接的组合
|
||||
string sBJCP = "";
|
||||
@@ -1994,12 +1921,11 @@ namespace GThinking.U20261363_N_XLXSBJ
|
||||
}
|
||||
if (dicA.Count > 1)
|
||||
{
|
||||
StringBuilder sbXHList = new StringBuilder("");
|
||||
string sXHList = "";
|
||||
foreach (string sKeyA in dicA.Keys)
|
||||
{
|
||||
sbXHList.Append("[" + dicA[sKeyA] + "] ");
|
||||
sXHList += "[" + dicA[sKeyA] + "] ";
|
||||
}
|
||||
string sXHList = sbXHList.ToString();
|
||||
lst.Add(sXHList);
|
||||
}
|
||||
}
|
||||
@@ -2519,7 +2445,7 @@ namespace GThinking.U20261363_N_XLXSBJ
|
||||
}
|
||||
|
||||
|
||||
[DataMember(DbField = "XLXSBJDMX_LSJGBBJ", DbTitle = "l临时表价", IsKey = false, DbType = TGtdbType.Float,
|
||||
[DataMember(DbField = "XLXSBJDMX_LSJGBBJ", DbTitle = "临时表价", IsKey = false, DbType = TGtdbType.Float,
|
||||
Len = 8, IsNullable = true, DefValue = "0", CtlName = "txtXLXSBJDMX_LSJGBBJ",
|
||||
CtlType = FieldType.F)]
|
||||
public string XLXSBJDMX_LSJGBBJ
|
||||
@@ -2539,6 +2465,17 @@ namespace GThinking.U20261363_N_XLXSBJ
|
||||
set { SetField("XLXSBJDMX_JMBGS", value); }
|
||||
}
|
||||
|
||||
|
||||
|
||||
[DataMember(DbField = "XLXSBJDMX_CJ", DbTitle = "厂价核算", IsKey = false, DbType = TGtdbType.Float,
|
||||
Len = 8, IsNullable = true, DefValue = "0", CtlName = "txtXLXSBJDMX_CJ",
|
||||
CtlType = FieldType.F)]
|
||||
public string XLXSBJDMX_CJ
|
||||
{
|
||||
get { return GetField("XLXSBJDMX_CJ").ToString().Trim(); }
|
||||
set { SetField("XLXSBJDMX_CJ", value); }
|
||||
}
|
||||
|
||||
/***************************************/
|
||||
//因子
|
||||
[DataMember(DbField = "TZYZ_BJ01", DbTitle = "TZYZ_BJ01", IsKey = false, DbType = TGtdbType.Float,
|
||||
@@ -3340,7 +3277,7 @@ namespace GThinking.U20261363_N_XLXSBJ
|
||||
SQL.Add(" XLXSBJDMX_XLBZID,XLBZ_XLBZMS,XLXSBJDMX_DYDJID,XLXSBJDMX_XLYSID,XLXSBJDMX_WLID,");
|
||||
SQL.Add(" XLXSBJDMX_ZHCPMLMC,XLXSBJDMX_CPMLMC,HasCPMLID,");
|
||||
SQL.Add(" XLXSBJDMX_BJCP,XLXSBJDMX_GYKH,XLXSBJDMX_PWQDID,XLXSBJDMX_PWQDWLMC,XLXSBJDMX_PWQDMS,XLWLXX,");
|
||||
SQL.Add(" XLXSBJDMX_WGCPBZ,XLXSBJDMX_JLDW,XLXSBJDMX_BJSL,XLXSBJDMX_BJDHQCLCB,XLXSBJDMX_CLCB,XLXSBJDMX_JGBJJ,XLXSBJDMX_JGBBJ,XLXSBJDMX_JGBBJGXSJ,XLXSBJDMX_LSJGBBJ,XLXSBJDMX_JMBGS,");
|
||||
SQL.Add(" XLXSBJDMX_WGCPBZ,XLXSBJDMX_JLDW,XLXSBJDMX_BJSL,XLXSBJDMX_BJDHQCLCB,XLXSBJDMX_CLCB,XLXSBJDMX_JGBJJ,XLXSBJDMX_JGBBJ,XLXSBJDMX_JGBBJGXSJ,XLXSBJDMX_LSJGBBJ,XLXSBJDMX_JMBGS,XLXSBJDMX_CJ,");
|
||||
SQL.Add(" TZYZ_BJ01,TZYZ_BJ02,TZYZ_BJ03,TZYZ_BJ04,TZYZ_BJ05,");
|
||||
SQL.Add(" TZYZ_BJ06,TZYZ_BJ07,TZYZ_BJ08,TZYZ_BJ09,TZYZ_BJ10,");
|
||||
SQL.Add(" TZYZ_BJ11,TZYZ_BJ12,TZYZ_BJ13,TZYZ_BJ14,TZYZ_BJ15,");
|
||||
@@ -3383,7 +3320,7 @@ namespace GThinking.U20261363_N_XLXSBJ
|
||||
SQL.Add(" when ' ' then ' ' else ");
|
||||
SQL.Add(" rtrim(case when ISNULL(A.XLXSBJXHML_CPMLID,' ') = ' ' then ISNULL(B.XLXSBJXHML_CPMLID,' ') else ISNULL(A.XLXSBJXHML_CPMLID,' ') end) || '|'|| rtrim(XLXSCPML_CPMLMC) end as HasCPMLID, ");
|
||||
SQL.Add(" XLXSBJDMX_BJCP,XLXSBJDMX_GYKH,XLXSBJDMX_PWQDID,XLXSBJDMX_PWQDWLMC,XLXSBJDMX_PWQDMS,' ' as XLWLXX,");
|
||||
SQL.Add(" ISNULL(XLXSBJDMX_WGCPBZ,'N') as XLXSBJDMX_WGCPBZ,XLXSBJDMX_JLDW,XLXSBJDMX_BJSL,XLXSBJDMX_BJDHQCLCB,XLXSBJDMX_CLCB,XLXSBJDMX_JGBJJ,XLXSBJDMX_JGBBJ,XLXSBJDMX_JGBBJGXSJ,XLXSBJDMX_LSJGBBJ,XLXSBJDMX_JMBGS,");
|
||||
SQL.Add(" ISNULL(XLXSBJDMX_WGCPBZ,'N') as XLXSBJDMX_WGCPBZ,XLXSBJDMX_JLDW,XLXSBJDMX_BJSL,XLXSBJDMX_BJDHQCLCB,XLXSBJDMX_CLCB,XLXSBJDMX_JGBJJ,XLXSBJDMX_JGBBJ,XLXSBJDMX_JGBBJGXSJ,XLXSBJDMX_LSJGBBJ,XLXSBJDMX_JMBGS,XLXSBJDMX_CJ,");
|
||||
SQL.Add(" XLXSBJDYZZ0_YZZ01 as TZYZ_BJ01,XLXSBJDYZZ0_YZZ02 as TZYZ_BJ02,XLXSBJDYZZ0_YZZ03 as TZYZ_BJ03,XLXSBJDYZZ0_YZZ04 as TZYZ_BJ04,XLXSBJDYZZ0_YZZ05 as TZYZ_BJ05,");
|
||||
SQL.Add(" XLXSBJDYZZ0_YZZ06 as TZYZ_BJ06,XLXSBJDYZZ0_YZZ07 as TZYZ_BJ07,XLXSBJDYZZ0_YZZ08 as TZYZ_BJ08,XLXSBJDYZZ0_YZZ09 as TZYZ_BJ09,XLXSBJDYZZ0_YZZ10 as TZYZ_BJ10,");
|
||||
SQL.Add(" XLXSBJDYZZ0_YZZ11 as TZYZ_BJ11,XLXSBJDYZZ0_YZZ12 as TZYZ_BJ12,XLXSBJDYZZ0_YZZ13 as TZYZ_BJ13,XLXSBJDYZZ0_YZZ14 as TZYZ_BJ14,XLXSBJDYZZ0_YZZ15 as TZYZ_BJ15,");
|
||||
@@ -3401,11 +3338,19 @@ namespace GThinking.U20261363_N_XLXSBJ
|
||||
SQL.Add(" case when ((ISNULL(XLXSBJYLZD_WPID,' ')= '0060' or ISNULL(XLXSBJYLZD_WPID,' ')= 'ZZZZ') and isnull(XLXSBJYLZDMX_BZDBZ,'N') ='Y' and isnull(XLXSBJYLZDMX_BJDXH,0) <> 0) then 'N' ");
|
||||
SQL.Add(" when (ISNULL(XLXSBJYLZD_WPID,' ')<> ' ' and isnull(XLXSBJYLZDMX_BJDXH,0) <> 0) then 'Y' ");
|
||||
SQL.Add(" else 'N' end as HasYLDZSQ, ");
|
||||
SQL.Add(" case when isnull(XLXSJGB_MXBH,' ')='JGB' then ' ' else rtrim(convert(char,XLXSBJDJJYZ_YZZ01))||'|'||rtrim(convert(char,XLXSBJDJJYZ_YZZ02))||'|'||rtrim(convert(char,XLXSBJDJJYZ_YZZ03))");
|
||||
SQL.Add(" ||'|'||rtrim(convert(char,XLXSBJDJJYZ_YZZ04))||'|'||rtrim(convert(char,XLXSBJDJJYZ_YZZ05))||'|'||rtrim(convert(char,XLXSBJDJJYZ_YZZ06))");
|
||||
SQL.Add(" ||'|'||rtrim(convert(char,XLXSBJDJJYZ_YZZ07))||'|'||rtrim(convert(char,XLXSBJDJJYZ_YZZ08))||'|'||rtrim(convert(char,XLXSBJDJJYZ_YZZ09))");
|
||||
SQL.Add(" ||'|'||rtrim(convert(char,XLXSBJDJJYZ_YZZ10))||'|'||rtrim(convert(char,XLXSBJDJJYZ_YSJDZ)) end as UpdJJYZList,XLXSBJDMX_BJLY,XLXSBJDMX_BJTJCZ,case when isnull(XLXSBJDMXFD_BJDID,' ') = ' ' then 'N' else 'Y' end as HasFDJL,");
|
||||
SQL.Add(" case when isnull(XLXSJGB_MXBH,' ')='JGB' then ' ' else ");
|
||||
for (int i = 1; i <= 20; i++)
|
||||
{
|
||||
string num = i.ToString("D2"); // 格式化为两位数字 "04", "05", ...
|
||||
string fieldName = "XLXSBJDJJYZ_YZZ" + num;
|
||||
if (i > 1)
|
||||
SQL.Add(" ||'|'|| ");
|
||||
SQL.Add(" rtrim(convert(char," + fieldName + ")) ");
|
||||
}
|
||||
SQL.Add(" ||'|'||rtrim(convert(char,XLXSBJDJJYZ_YSJDZ)) end as UpdJJYZList,XLXSBJDMX_BJLY,XLXSBJDMX_BJTJCZ,case when isnull(XLXSBJDMXFD_BJDID,' ') = ' ' then 'N' else 'Y' end as HasFDJL,");
|
||||
SQL.Add(" XLXSBJDMX_DZSC,XLXSBJDMX_BJDHQCLCBTZ,XLXSBJDMX_ZDXJBJDID,XLXSBJDMX_ZDXJBJDXH,XLXSBJDMX_XDXLBZID,XLXSBJDMX_XDXLXHID,XLXSBJDMX_JGBBJTZ,isnull(XLXSBJBZTXS_TXS,' ') as BZTXYS,XLXSBJDMX_JGFBZ, ");
|
||||
|
||||
|
||||
if (!_sBZBJDIDFilter.Equals(""))
|
||||
{
|
||||
SQL.Add(" case when isnull(BZCPB.XLXHID,' ') = ' ' then 'N' else 'Y' end as CPCF,case when isnull(BZCPSLB.XLXHID,' ') = ' ' then 'N' else 'Y' end as CPSLCF,case when isnull(BZGGSLB.XLGGID,' ') = ' ' then 'N' else 'Y' end as GGSLCF ");
|
||||
@@ -3889,12 +3834,12 @@ namespace GThinking.U20261363_N_XLXSBJ
|
||||
{
|
||||
TSQL SQL = base.SetInsertSql();
|
||||
SQL.Add("insert into XLXSBJDMX(XLXSBJDMX_BJDID, XLXSBJDMX_XH, XLXSBJDMX_XSSX, XLXSBJDMX_XLXHID, XLXSBJDMX_XLGGID, XLXSBJDMX_XLBZID,XLXSBJDMX_DYDJID,XLXSBJDMX_XLYSID,XLXSBJDMX_WLID,");
|
||||
SQL.Add("XLXSBJDMX_ZHCPMLMC,XLXSBJDMX_CPMLMC,XLXSBJDMX_BJCP,XLXSBJDMX_GYKH,XLXSBJDMX_PWQDID,XLXSBJDMX_PWQDWLMC,XLXSBJDMX_PWQDMS,XLXSBJDMX_WGCPBZ,XLXSBJDMX_JLDW,XLXSBJDMX_BJSL,XLXSBJDMX_JGBBJ,XLXSBJDMX_JGBBJGXSJ,XLXSBJDMX_LSJGBBJ,XLXSBJDMX_JMBGS,XLXSBJDMX_TZQCPBJ,XLXSBJDMX_TZCPBJ,XLXSBJDMX_CPBJ,XLXSBJDMX_TZQBJJE,XLXSBJDMX_TZBJJE,");
|
||||
SQL.Add("XLXSBJDMX_ZHCPMLMC,XLXSBJDMX_CPMLMC,XLXSBJDMX_BJCP,XLXSBJDMX_GYKH,XLXSBJDMX_PWQDID,XLXSBJDMX_PWQDWLMC,XLXSBJDMX_PWQDMS,XLXSBJDMX_WGCPBZ,XLXSBJDMX_JLDW,XLXSBJDMX_BJSL,XLXSBJDMX_JGBBJ,XLXSBJDMX_JGBBJGXSJ,XLXSBJDMX_LSJGBBJ,XLXSBJDMX_JMBGS,XLXSBJDMX_CJ,XLXSBJDMX_TZQCPBJ,XLXSBJDMX_TZCPBJ,XLXSBJDMX_CPBJ,XLXSBJDMX_TZQBJJE,XLXSBJDMX_TZBJJE,");
|
||||
SQL.Add("XLXSBJDMX_BJJE,XLXSBJDMX_PJJE,XLXSBJDMX_JGBJJ,XLXSBJDMX_CLCB,XLXSBJDMX_JGBBJLJJCL,XLXSBJDMX_JGBBJJCL,XLXSBJDMX_JGBBJJCE,XLXSBJDMX_YXJG,XLXSBJDMX_CLZL,XLXSBJDMX_YXJJCL,XLXSBJDMX_BJDHQCLCB,XLXSBJDMX_CLCBJCL,XLXSBJDMX_BJCPSD,");
|
||||
SQL.Add("XLXSBJDMX_BJSDBZ,XLXSBJDMX_CLCBJCLSDBZ,XLXSBJDMX_TZQZDXJ,XLXSBJDMX_TZZDXJ,XLXSBJDMX_ZDXJ,XLXSBJDMX_ZDXJJCL,XLXSBJDMX_JSJG,XLXSBJDMX_JSJJE,XLXSBJDMX_JSJJCL,XLXSBJDMX_YSCP,XLXSBJDMX_KHWLID,XLXSBJDMX_YZ,XLXSBJDMX_FBH,XLXSBJDMX_CPBJXJ,XLXSBJDMX_BJXJKD,XLXSBJDMX_BJXJJJ,XLXSBJDMX_BJJEXJ,XLXSBJDMX_BZ,XLXSBJDMX_BJLY,XLXSBJDMX_BJTJCZ,XLXSBJDMX_DZSC,");
|
||||
SQL.Add("XLXSBJDMX_BJDHQCLCBTZ,XLXSBJDMX_ZDXJBJDID,XLXSBJDMX_ZDXJBJDXH,XLXSBJDMX_XDXLBZID,XLXSBJDMX_XDXLXHID,XLXSBJDMX_JGBBJTZ,XLXSBJDMX_JGFBZ,XLXSBJDMX_WHRID,XLXSBJDMX_WHR,XLXSBJDMX_WHSJ) ");
|
||||
SQL.Add("values(:XLXSBJDMX_BJDID, :XLXSBJDMX_XH, :XLXSBJDMX_XSSX, :XLXSBJDMX_XLXHID,:XLXSBJDMX_XLGGID,:XLXSBJDMX_XLBZID,isnull(:XLXSBJDMX_DYDJID,' '),:XLXSBJDMX_XLYSID,:XLXSBJDMX_WLID,");
|
||||
SQL.Add(":XLXSBJDMX_ZHCPMLMC,:XLXSBJDMX_CPMLMC,:XLXSBJDMX_BJCP,:XLXSBJDMX_GYKH,:XLXSBJDMX_PWQDID,:XLXSBJDMX_PWQDWLMC,:XLXSBJDMX_PWQDMS,:XLXSBJDMX_WGCPBZ,:XLXSBJDMX_JLDW, isnull(:XLXSBJDMX_BJSL,0),isnull(:XLXSBJDMX_JGBBJ,0),:XLXSBJDMX_JGBBJGXSJ,isnull(:XLXSBJDMX_LSJGBBJ,0),:XLXSBJDMX_JMBGS,isnull(:XLXSBJDMX_TZQCPBJ,0),isnull(:XLXSBJDMX_TZCPBJ,0),");
|
||||
SQL.Add(":XLXSBJDMX_ZHCPMLMC,:XLXSBJDMX_CPMLMC,:XLXSBJDMX_BJCP,:XLXSBJDMX_GYKH,:XLXSBJDMX_PWQDID,:XLXSBJDMX_PWQDWLMC,:XLXSBJDMX_PWQDMS,:XLXSBJDMX_WGCPBZ,:XLXSBJDMX_JLDW, isnull(:XLXSBJDMX_BJSL,0),isnull(:XLXSBJDMX_JGBBJ,0),:XLXSBJDMX_JGBBJGXSJ,isnull(:XLXSBJDMX_LSJGBBJ,0),:XLXSBJDMX_JMBGS,isnull(:XLXSBJDMX_CJ,0),isnull(:XLXSBJDMX_TZQCPBJ,0),isnull(:XLXSBJDMX_TZCPBJ,0),");
|
||||
SQL.Add("isnull(:XLXSBJDMX_CPBJ,0),isnull(:XLXSBJDMX_TZQBJJE,0),isnull(:XLXSBJDMX_TZBJJE,0),isnull(:XLXSBJDMX_BJJE,0),isnull(:XLXSBJDMX_PJJE,0),isnull(:XLXSBJDMX_JGBJJ,0),isnull(:XLXSBJDMX_CLCB,0),isnull(:XLXSBJDMX_JGBBJLJJCL,0),isnull(:XLXSBJDMX_JGBBJJCL,0),");
|
||||
SQL.Add("isnull(:XLXSBJDMX_JGBBJJCE,0), isnull(:XLXSBJDMX_YXJG,0),isnull(:XLXSBJDMX_CLZL,0),isnull(:XLXSBJDMX_YXJJCL,0),isnull(:XLXSBJDMX_BJDHQCLCB,0),isnull(:XLXSBJDMX_CLCBJCL,0),ISNULL(:XLXSBJDMX_BJCPSD,'N'),");
|
||||
SQL.Add("ISNULL(:XLXSBJDMX_BJSDBZ,'N'),ISNULL(:XLXSBJDMX_CLCBJCLSDBZ,'N'),isnull(:XLXSBJDMX_TZQZDXJ,0),isnull(:XLXSBJDMX_TZZDXJ,0),isnull(:XLXSBJDMX_ZDXJ,0),isnull(:XLXSBJDMX_ZDXJJCL,0),isnull(:XLXSBJDMX_JSJG,0),isnull(:XLXSBJDMX_JSJJE,0),isnull(:XLXSBJDMX_JSJJCL,0),:XLXSBJDMX_YSCP,:XLXSBJDMX_KHWLID,:XLXSBJDMX_YZ,");
|
||||
@@ -3911,12 +3856,12 @@ namespace GThinking.U20261363_N_XLXSBJ
|
||||
SetField("XLXSBJDMX_BJDID", _BJDID);
|
||||
if (XLXSBJDMX_XSSX.Equals("0"))
|
||||
{
|
||||
XLXSBJDMX_XSSX = GetNewXSSX(_BJDID).ToString();
|
||||
XLXSBJDMX_XSSX = GetNewNo(_BJDID, "XLXSBJDMX_XSSX").ToString();
|
||||
}
|
||||
|
||||
if (XLXSBJDMX_XH.Equals("0"))
|
||||
{
|
||||
XLXSBJDMX_XH = GetNewXH(_BJDID).ToString();
|
||||
XLXSBJDMX_XH = GetNewNo(_BJDID, "XLXSBJDMX_XH").ToString();
|
||||
}
|
||||
|
||||
//if (GetField("XLXSBJDMX_XH").ToString().Trim().Equals("0"))
|
||||
@@ -4000,8 +3945,8 @@ namespace GThinking.U20261363_N_XLXSBJ
|
||||
string[] strJJYZZ = GetField("UpdJJYZList").ToString().Trim().Split('|');
|
||||
sql.Clear();
|
||||
sql.Add("insert into XLXSBJDJJYZ(XLXSBJDJJYZ_BJDID,XLXSBJDJJYZ_XH,XLXSBJDJJYZ_YZZ01,XLXSBJDJJYZ_YZZ02,XLXSBJDJJYZ_YZZ03,XLXSBJDJJYZ_YZZ04,");
|
||||
sql.Add(" XLXSBJDJJYZ_YZZ05,XLXSBJDJJYZ_YZZ06,XLXSBJDJJYZ_YZZ07,XLXSBJDJJYZ_YZZ08,XLXSBJDJJYZ_YZZ09,XLXSBJDJJYZ_YZZ10,XLXSBJDJJYZ_YSJDZ)");
|
||||
sql.Add(" values(:pBJDID,:pBJDXH,:pYZZ01,:pYZZ02,:pYZZ03,:pYZZ04,:pYZZ05,:pYZZ06,:pYZZ07,:pYZZ08,:pYZZ09,:pYZZ10,:pYSJDZ)");
|
||||
sql.Add(" XLXSBJDJJYZ_YZZ05,XLXSBJDJJYZ_YZZ06,XLXSBJDJJYZ_YZZ07,XLXSBJDJJYZ_YZZ08,XLXSBJDJJYZ_YZZ09,XLXSBJDJJYZ_YZZ10,XLXSBJDJJYZ_YZZ11,XLXSBJDJJYZ_YZZ12,XLXSBJDJJYZ_YZZ13,XLXSBJDJJYZ_YZZ14,XLXSBJDJJYZ_YZZ15,XLXSBJDJJYZ_YZZ16,XLXSBJDJJYZ_YZZ17,XLXSBJDJJYZ_YZZ18,XLXSBJDJJYZ_YZZ19,XLXSBJDJJYZ_YZZ20,XLXSBJDJJYZ_YSJDZ)");
|
||||
sql.Add(" values(:pBJDID,:pBJDXH,:pYZZ01,:pYZZ02,:pYZZ03,:pYZZ04,:pYZZ05,:pYZZ06,:pYZZ07,:pYZZ08,:pYZZ09,:pYZZ10,:pYZZ11,:pYZZ12,:pYZZ13,:pYZZ14,:pYZZ15,:pYZZ16,:pYZZ17,:pYZZ18,:pYZZ19,:pYZZ20,:pYSJDZ)");
|
||||
sql.ParamByName("pBJDID").Value = _BJDID;
|
||||
sql.ParamByName("pBJDXH").Value = GetField("XLXSBJDMX_XH");
|
||||
sql.ParamByName("pYZZ01").Value = CMISproConvert.StrToFloat(strJJYZZ[0], 0);
|
||||
@@ -4014,7 +3959,17 @@ namespace GThinking.U20261363_N_XLXSBJ
|
||||
sql.ParamByName("pYZZ08").Value = CMISproConvert.StrToFloat(strJJYZZ[7], 0);
|
||||
sql.ParamByName("pYZZ09").Value = CMISproConvert.StrToFloat(strJJYZZ[8], 0);
|
||||
sql.ParamByName("pYZZ10").Value = CMISproConvert.StrToFloat(strJJYZZ[9], 0);
|
||||
sql.ParamByName("pYSJDZ").Value = CMISproConvert.StrToFloat(strJJYZZ[10], 0);
|
||||
sql.ParamByName("pYZZ11").Value = CMISproConvert.StrToFloat(strJJYZZ[10], 0);
|
||||
sql.ParamByName("pYZZ12").Value = CMISproConvert.StrToFloat(strJJYZZ[11], 0);
|
||||
sql.ParamByName("pYZZ13").Value = CMISproConvert.StrToFloat(strJJYZZ[12], 0);
|
||||
sql.ParamByName("pYZZ14").Value = CMISproConvert.StrToFloat(strJJYZZ[13], 0);
|
||||
sql.ParamByName("pYZZ15").Value = CMISproConvert.StrToFloat(strJJYZZ[14], 0);
|
||||
sql.ParamByName("pYZZ16").Value = CMISproConvert.StrToFloat(strJJYZZ[15], 0);
|
||||
sql.ParamByName("pYZZ17").Value = CMISproConvert.StrToFloat(strJJYZZ[16], 0);
|
||||
sql.ParamByName("pYZZ18").Value = CMISproConvert.StrToFloat(strJJYZZ[17], 0);
|
||||
sql.ParamByName("pYZZ19").Value = CMISproConvert.StrToFloat(strJJYZZ[18], 0);
|
||||
sql.ParamByName("pYZZ20").Value = CMISproConvert.StrToFloat(strJJYZZ[19], 0);
|
||||
sql.ParamByName("pYSJDZ").Value = CMISproConvert.StrToFloat(strJJYZZ[20], 0);
|
||||
dberp.ExecSQL(sql);
|
||||
}
|
||||
|
||||
@@ -4062,6 +4017,7 @@ namespace GThinking.U20261363_N_XLXSBJ
|
||||
SQL.Add(" XLXSBJDMX_JGBBJGXSJ=:XLXSBJDMX_JGBBJGXSJ, ");
|
||||
SQL.Add(" XLXSBJDMX_LSJGBBJ=isnull(:XLXSBJDMX_LSJGBBJ,0),");
|
||||
SQL.Add(" XLXSBJDMX_JMBGS=:XLXSBJDMX_JMBGS, ");
|
||||
SQL.Add(" XLXSBJDMX_CJ=isnull(:XLXSBJDMX_CJ,0),");
|
||||
SQL.Add(" XLXSBJDMX_TZQCPBJ=isnull(:XLXSBJDMX_TZQCPBJ,0),");
|
||||
SQL.Add(" XLXSBJDMX_TZCPBJ=isnull(:XLXSBJDMX_TZCPBJ,0),");
|
||||
SQL.Add(" XLXSBJDMX_CPBJ=isnull(:XLXSBJDMX_CPBJ,0),");
|
||||
@@ -4130,7 +4086,7 @@ namespace GThinking.U20261363_N_XLXSBJ
|
||||
SetField("XLXSBJDMX_BJDID", _BJDID);
|
||||
if (XLXSBJDMX_XSSX.Equals("0"))
|
||||
{
|
||||
XLXSBJDMX_XSSX = GetNewXSSX(_BJDID).ToString();
|
||||
XLXSBJDMX_XSSX = GetNewNo(_BJDID, "XLXSBJDMX_XSSX").ToString();
|
||||
}
|
||||
|
||||
if (GetField("XLXSBJDMX_XH").ToString().Trim().Equals("0"))
|
||||
@@ -4214,7 +4170,7 @@ namespace GThinking.U20261363_N_XLXSBJ
|
||||
string[] strJJYZZ = GetField("UpdJJYZList").ToString().Trim().Split('|');
|
||||
sql.Clear();
|
||||
sql.Add("update XLXSBJDJJYZ set XLXSBJDJJYZ_XH=:pBJDXH,XLXSBJDJJYZ_YZZ01=:pYZZ01,XLXSBJDJJYZ_YZZ02=:pYZZ02,XLXSBJDJJYZ_YZZ03=:pYZZ03,XLXSBJDJJYZ_YZZ04=:pYZZ04,XLXSBJDJJYZ_YZZ05=:pYZZ05,");
|
||||
sql.Add(" XLXSBJDJJYZ_YZZ06=:pYZZ06,XLXSBJDJJYZ_YZZ07=:pYZZ07,XLXSBJDJJYZ_YZZ08=:pYZZ08,XLXSBJDJJYZ_YZZ09=:pYZZ09,XLXSBJDJJYZ_YZZ10=:pYZZ10,XLXSBJDJJYZ_YSJDZ=:pYSJDZ ");
|
||||
sql.Add(" XLXSBJDJJYZ_YZZ06=:pYZZ06,XLXSBJDJJYZ_YZZ07=:pYZZ07,XLXSBJDJJYZ_YZZ08=:pYZZ08,XLXSBJDJJYZ_YZZ09=:pYZZ09,XLXSBJDJJYZ_YZZ10=:pYZZ10,XLXSBJDJJYZ_YZZ11=:pYZZ11,XLXSBJDJJYZ_YZZ12=:pYZZ12,XLXSBJDJJYZ_YZZ13=:pYZZ13,XLXSBJDJJYZ_YZZ14=:pYZZ14,XLXSBJDJJYZ_YZZ15=:pYZZ15,XLXSBJDJJYZ_YZZ16=:pYZZ16,XLXSBJDJJYZ_YZZ17=:pYZZ17,XLXSBJDJJYZ_YZZ18=:pYZZ18,XLXSBJDJJYZ_YZZ19=:pYZZ19,XLXSBJDJJYZ_YZZ20=:pYZZ20,XLXSBJDJJYZ_YSJDZ=:pYSJDZ ");
|
||||
sql.Add(" where XLXSBJDJJYZ_BJDID=:pBJDID and XLXSBJDJJYZ_XH=:OLD_XLXSBJDMX_XH");
|
||||
sql.ParamByName("pBJDID").Value = _BJDID;
|
||||
sql.ParamByName("OLD_XLXSBJDMX_XH").Value = GetField("OLD_XLXSBJDMX_XH");
|
||||
@@ -4229,7 +4185,17 @@ namespace GThinking.U20261363_N_XLXSBJ
|
||||
sql.ParamByName("pYZZ08").Value = CMISproConvert.StrToFloat(strJJYZZ[7], 0);
|
||||
sql.ParamByName("pYZZ09").Value = CMISproConvert.StrToFloat(strJJYZZ[8], 0);
|
||||
sql.ParamByName("pYZZ10").Value = CMISproConvert.StrToFloat(strJJYZZ[9], 0);
|
||||
sql.ParamByName("pYSJDZ").Value = CMISproConvert.StrToFloat(strJJYZZ[10], 0);
|
||||
sql.ParamByName("pYZZ11").Value = CMISproConvert.StrToFloat(strJJYZZ[10], 0);
|
||||
sql.ParamByName("pYZZ12").Value = CMISproConvert.StrToFloat(strJJYZZ[11], 0);
|
||||
sql.ParamByName("pYZZ13").Value = CMISproConvert.StrToFloat(strJJYZZ[12], 0);
|
||||
sql.ParamByName("pYZZ14").Value = CMISproConvert.StrToFloat(strJJYZZ[13], 0);
|
||||
sql.ParamByName("pYZZ15").Value = CMISproConvert.StrToFloat(strJJYZZ[14], 0);
|
||||
sql.ParamByName("pYZZ16").Value = CMISproConvert.StrToFloat(strJJYZZ[15], 0);
|
||||
sql.ParamByName("pYZZ17").Value = CMISproConvert.StrToFloat(strJJYZZ[16], 0);
|
||||
sql.ParamByName("pYZZ18").Value = CMISproConvert.StrToFloat(strJJYZZ[17], 0);
|
||||
sql.ParamByName("pYZZ19").Value = CMISproConvert.StrToFloat(strJJYZZ[18], 0);
|
||||
sql.ParamByName("pYZZ20").Value = CMISproConvert.StrToFloat(strJJYZZ[19], 0);
|
||||
sql.ParamByName("pYSJDZ").Value = CMISproConvert.StrToFloat(strJJYZZ[20], 0);
|
||||
dberp.ExecSQL(sql);
|
||||
}
|
||||
|
||||
@@ -4333,6 +4299,22 @@ namespace GThinking.U20261363_N_XLXSBJ
|
||||
ActIndex = RowIndex;
|
||||
}
|
||||
|
||||
//按分隔符拆分简写科学计数法(如"5-7"表示5×10^-7、"5+7"表示5×10^7);无法拆分返回false
|
||||
private bool TrySplitShorthand(string value, char separator, out string sMantissa, out string sExponent)
|
||||
{
|
||||
sMantissa = "";
|
||||
sExponent = "";
|
||||
if (value.Length <= 2)
|
||||
return false;
|
||||
int iFrom = (value[0] == '-') ? 1 : 0;
|
||||
int separatorIndex = value.IndexOf(separator, iFrom);
|
||||
if (separatorIndex <= 0 || separatorIndex >= value.Length - 1)
|
||||
return false;
|
||||
sMantissa = value.Substring(0, separatorIndex);
|
||||
sExponent = value.Substring(separatorIndex + 1);
|
||||
return true;
|
||||
}
|
||||
|
||||
private bool IsScientificNotation(string value)
|
||||
{
|
||||
if (string.IsNullOrEmpty(value)) return false;
|
||||
@@ -4340,90 +4322,22 @@ namespace GThinking.U20261363_N_XLXSBJ
|
||||
// 标准科学计数法:包含e或E
|
||||
if (value.IndexOf('e') >= 0 || value.IndexOf('E') >= 0)
|
||||
{
|
||||
// 验证确实是科学计数法格式
|
||||
try
|
||||
{
|
||||
double testValue = double.Parse(value, System.Globalization.NumberStyles.Float,
|
||||
System.Globalization.CultureInfo.InvariantCulture);
|
||||
return true;
|
||||
}
|
||||
catch
|
||||
{
|
||||
return false;
|
||||
}
|
||||
double testValue;
|
||||
return double.TryParse(value, System.Globalization.NumberStyles.Float,
|
||||
System.Globalization.CultureInfo.InvariantCulture, out testValue);
|
||||
}
|
||||
|
||||
// 简写格式:处理负号分隔符
|
||||
// 情况1:字符串以负号开头,查找第二个负号作为分隔符(如 "-5-7")
|
||||
if (value[0] == '-' && value.Length > 2)
|
||||
{
|
||||
int separatorIndex = value.IndexOf('-', 1);
|
||||
if (separatorIndex > 0 && separatorIndex < value.Length - 1)
|
||||
{
|
||||
string mantissaPart = value.Substring(0, separatorIndex); // "-5"
|
||||
string exponentPart = value.Substring(separatorIndex + 1); // "7"
|
||||
|
||||
double mantissa;
|
||||
int exponent;
|
||||
if (double.TryParse(mantissaPart, out mantissa) && int.TryParse(exponentPart, out exponent))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
// 情况2:字符串不以负号开头,查找第一个负号作为分隔符(如 "5-7")
|
||||
else if (value[0] != '-')
|
||||
{
|
||||
int separatorIndex = value.IndexOf('-');
|
||||
if (separatorIndex > 0 && separatorIndex < value.Length - 1)
|
||||
{
|
||||
string mantissaPart = value.Substring(0, separatorIndex); // "5"
|
||||
string exponentPart = value.Substring(separatorIndex + 1); // "7"
|
||||
|
||||
double mantissa;
|
||||
int exponent;
|
||||
if (double.TryParse(mantissaPart, out mantissa) && int.TryParse(exponentPart, out exponent))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// 简写格式:处理加号分隔符
|
||||
// 情况1:字符串以负号开头,查找加号作为分隔符(如 "-5+7")
|
||||
if (value[0] == '-' && value.Length > 2)
|
||||
{
|
||||
int separatorIndex = value.IndexOf('+', 1);
|
||||
if (separatorIndex > 0 && separatorIndex < value.Length - 1)
|
||||
{
|
||||
string mantissaPart = value.Substring(0, separatorIndex); // "-5"
|
||||
string exponentPart = value.Substring(separatorIndex + 1); // "7"
|
||||
|
||||
double mantissa;
|
||||
int exponent;
|
||||
if (double.TryParse(mantissaPart, out mantissa) && int.TryParse(exponentPart, out exponent))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
// 情况2:字符串不以负号开头,查找加号作为分隔符(如 "5+7")
|
||||
else if (value[0] != '-')
|
||||
{
|
||||
int separatorIndex = value.IndexOf('+');
|
||||
if (separatorIndex > 0 && separatorIndex < value.Length - 1)
|
||||
{
|
||||
string mantissaPart = value.Substring(0, separatorIndex); // "5"
|
||||
string exponentPart = value.Substring(separatorIndex + 1); // "7"
|
||||
|
||||
double mantissa;
|
||||
int exponent;
|
||||
if (double.TryParse(mantissaPart, out mantissa) && int.TryParse(exponentPart, out exponent))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
// 简写格式:"5-7"=5×10^-7、"5+7"=5×10^7(负号开头时跳过首位再找分隔符)
|
||||
double dMantissa;
|
||||
int iExponent;
|
||||
string sMantissa;
|
||||
string sExponent;
|
||||
if (TrySplitShorthand(value, '-', out sMantissa, out sExponent)
|
||||
&& double.TryParse(sMantissa, out dMantissa) && int.TryParse(sExponent, out iExponent))
|
||||
return true;
|
||||
if (TrySplitShorthand(value, '+', out sMantissa, out sExponent)
|
||||
&& double.TryParse(sMantissa, out dMantissa) && int.TryParse(sExponent, out iExponent))
|
||||
return true;
|
||||
|
||||
return false;
|
||||
}
|
||||
@@ -4438,87 +4352,29 @@ namespace GThinking.U20261363_N_XLXSBJ
|
||||
System.Globalization.CultureInfo.InvariantCulture);
|
||||
}
|
||||
|
||||
// 简写格式:处理负号分隔符
|
||||
// 情况1:字符串以负号开头,查找第二个负号作为分隔符(如 "-5-7")
|
||||
if (value[0] == '-' && value.Length > 2)
|
||||
{
|
||||
int separatorIndex = value.IndexOf('-', 1);
|
||||
if (separatorIndex > 0 && separatorIndex < value.Length - 1)
|
||||
{
|
||||
string mantissaPart = value.Substring(0, separatorIndex); // "-5"
|
||||
string exponentPart = value.Substring(separatorIndex + 1); // "7"
|
||||
|
||||
double mantissa = double.Parse(mantissaPart);
|
||||
int exponent = int.Parse(exponentPart);
|
||||
return mantissa * System.Math.Pow(10, -exponent);
|
||||
}
|
||||
}
|
||||
// 情况2:字符串不以负号开头,查找第一个负号作为分隔符(如 "5-7")
|
||||
else if (value[0] != '-')
|
||||
{
|
||||
int separatorIndex = value.IndexOf('-');
|
||||
if (separatorIndex > 0 && separatorIndex < value.Length - 1)
|
||||
{
|
||||
string mantissaPart = value.Substring(0, separatorIndex); // "5"
|
||||
string exponentPart = value.Substring(separatorIndex + 1); // "7"
|
||||
|
||||
double mantissa = double.Parse(mantissaPart);
|
||||
int exponent = int.Parse(exponentPart);
|
||||
return mantissa * System.Math.Pow(10, -exponent);
|
||||
}
|
||||
}
|
||||
|
||||
// 简写格式:处理加号分隔符
|
||||
// 情况1:字符串以负号开头,查找加号作为分隔符(如 "-5+7")
|
||||
if (value[0] == '-' && value.Length > 2)
|
||||
{
|
||||
int separatorIndex = value.IndexOf('+', 1);
|
||||
if (separatorIndex > 0 && separatorIndex < value.Length - 1)
|
||||
{
|
||||
string mantissaPart = value.Substring(0, separatorIndex); // "-5"
|
||||
string exponentPart = value.Substring(separatorIndex + 1); // "7"
|
||||
|
||||
double mantissa = double.Parse(mantissaPart);
|
||||
int exponent = int.Parse(exponentPart);
|
||||
return mantissa * System.Math.Pow(10, exponent);
|
||||
}
|
||||
}
|
||||
// 情况2:字符串不以负号开头,查找加号作为分隔符(如 "5+7")
|
||||
else if (value[0] != '-')
|
||||
{
|
||||
int separatorIndex = value.IndexOf('+');
|
||||
if (separatorIndex > 0 && separatorIndex < value.Length - 1)
|
||||
{
|
||||
string mantissaPart = value.Substring(0, separatorIndex); // "5"
|
||||
string exponentPart = value.Substring(separatorIndex + 1); // "7"
|
||||
|
||||
double mantissa = double.Parse(mantissaPart);
|
||||
int exponent = int.Parse(exponentPart);
|
||||
return mantissa * System.Math.Pow(10, exponent);
|
||||
}
|
||||
}
|
||||
double dMantissa;
|
||||
int iExponent;
|
||||
string sMantissa;
|
||||
string sExponent;
|
||||
// 简写负号分隔:"5-7"=5×10^-7
|
||||
if (TrySplitShorthand(value, '-', out sMantissa, out sExponent)
|
||||
&& double.TryParse(sMantissa, out dMantissa) && int.TryParse(sExponent, out iExponent))
|
||||
return dMantissa * System.Math.Pow(10, -iExponent);
|
||||
// 简写加号分隔:"5+7"=5×10^7
|
||||
if (TrySplitShorthand(value, '+', out sMantissa, out sExponent)
|
||||
&& double.TryParse(sMantissa, out dMantissa) && int.TryParse(sExponent, out iExponent))
|
||||
return dMantissa * System.Math.Pow(10, iExponent);
|
||||
|
||||
// 如果不是科学计数法,直接返回解析结果
|
||||
return double.Parse(value);
|
||||
}
|
||||
|
||||
private int GetNewXSSX(string sID)
|
||||
//取指定列的新序号(最大值+1;查询失败按1处理)
|
||||
private int GetNewNo(string sID, string sField)
|
||||
{
|
||||
try
|
||||
{
|
||||
return CMISproDataBase.GetMaxXH("DBERP", "XLXSBJDMX", "XLXSBJDMX_XSSX", "XLXSBJDMX_BJDID = '" + sID + "'") + 1;
|
||||
}
|
||||
catch
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
|
||||
private int GetNewXH(string sID)
|
||||
{
|
||||
try
|
||||
{
|
||||
return CMISproDataBase.GetMaxXH("DBERP", "XLXSBJDMX", "XLXSBJDMX_XH", "XLXSBJDMX_BJDID = '" + sID + "'") + 1;
|
||||
return CMISproDataBase.GetMaxXH("DBERP", "XLXSBJDMX", sField, "XLXSBJDMX_BJDID = '" + sID.Replace("'", "''") + "'") + 1;
|
||||
}
|
||||
catch
|
||||
{
|
||||
|
||||
@@ -0,0 +1,274 @@
|
||||
<%@ Page Language="C#" MasterPageFile="~/N_MODEL/Page/MasterSingleGrid.Master" AutoEventWireup="true"
|
||||
Codebehind="XLBJD_BJLRList.aspx.cs" Inherits="GThinking.U20261363_N_XLXSBJ.XLBJD_BJLRList"
|
||||
Title="线缆销售报价单价差" %>
|
||||
|
||||
<%@ MasterType VirtualPath="~/N_MODEL/Page/MasterSingleGrid.Master" %>
|
||||
<asp:Content ID="ContentButton" ContentPlaceHolderID="CPHButton" runat="server">
|
||||
</asp:Content>
|
||||
<asp:Content ID="ContentForm" ContentPlaceHolderID="cphForm" runat="server">
|
||||
<div onresize="initFitDiv(divGDZSY0);" style="position: absolute; width: 100%;">
|
||||
</div>
|
||||
<div style="display: flex;">
|
||||
<table width="100%" border="0" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td align="right">
|
||||
<gtc:gtLabel ID="lblCLCBZJE" runat="server" Width="140px">料价总金额:</gtc:gtLabel>
|
||||
<gtc:gtLabel ID="lblBJDHQCLCBZJE" runat="server" Width="140px">料价总金额:</gtc:gtLabel>
|
||||
</td>
|
||||
<td align="left">
|
||||
<gtc:gtNumTextBox ID="txtCLCBZJE" runat="server" DecimalPlaces="2" Width="72px" ReadOnly="true"></gtc:gtNumTextBox>
|
||||
<gtc:gtNumTextBox ID="txtBJDHQCLCBZJE" runat="server" DecimalPlaces="2" Width="72px" ReadOnly="true" Visible="false"></gtc:gtNumTextBox>
|
||||
</td>
|
||||
<td align="right">
|
||||
<gtc:gtLabel ID="lblCPJJZJE" runat="server" Text="表价总金额:"></gtc:gtLabel>
|
||||
</td>
|
||||
<td align="left">
|
||||
<gtc:gtNumTextBox ID="txtCPJJZJE" runat="server" DecimalPlaces="2" Width="72px" ReadOnly="true"></gtc:gtNumTextBox>
|
||||
</td>
|
||||
<td align="right">
|
||||
<gtc:gtLabel ID="lblZJE" runat="server" Width="75px">报价总金额:</gtc:gtLabel>
|
||||
</td>
|
||||
<td align="left">
|
||||
<gtc:gtNumTextBox ID="txtZJE" runat="server" DecimalPlaces="2" Width="72px" ReadOnly="true"></gtc:gtNumTextBox>
|
||||
</td>
|
||||
<td align="right">
|
||||
<gtc:gtLabel ID="lblZDXJZJE" runat="server" Width="100px">最低限价总金额:</gtc:gtLabel>
|
||||
</td>
|
||||
<td align="left">
|
||||
<gtc:gtNumTextBox ID="txtZDXJZJE" runat="server" DecimalPlaces="2" Width="72px" ReadOnly="true"></gtc:gtNumTextBox>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="right">
|
||||
<gtc:gtLabel ID="lblBJLJJCL" Visible="false" runat="server" >表价料价价差率:</gtc:gtLabel>
|
||||
</td>
|
||||
<td align="left">
|
||||
<gtc:gtNumTextBox ID="txtBJLJJCL" runat="server" DecimalPlaces="2" Width="72px" ReadOnly="true" Visible="false"></gtc:gtNumTextBox>
|
||||
<gtc:gtLabel ID="lblBJLJ" runat="server" Text="%" Visible="false"></gtc:gtLabel>
|
||||
</td>
|
||||
<td align="right">
|
||||
<gtc:gtLabel ID="lblLRL" runat="server" >表价价差率:</gtc:gtLabel>
|
||||
</td>
|
||||
<td align="left">
|
||||
<gtc:gtNumTextBox ID="txtLRL" runat="server" DecimalPlaces="2" Width="72px" ReadOnly="true">
|
||||
</gtc:gtNumTextBox><gtc:gtLabel ID="lblLRLP" runat="server" Text="%"></gtc:gtLabel>
|
||||
</td>
|
||||
<td align="right">
|
||||
<gtc:gtLabel ID="lblCLCBLRL" runat="server" Width="80px">料价价差率:</gtc:gtLabel>
|
||||
</td>
|
||||
<td align="left">
|
||||
<gtc:gtNumTextBox ID="txtCLCBLRL" runat="server" DecimalPlaces="2" Width="72px" ReadOnly="true">
|
||||
</gtc:gtNumTextBox><gtc:gtLabel ID="lblCLCBLRLLP" runat="server" Text="%"></gtc:gtLabel>
|
||||
</td>
|
||||
<td align="right">
|
||||
<gtc:gtLabel ID="lblZDXJLRL" runat="server" Width="100px">最低限价价差率:</gtc:gtLabel>
|
||||
</td>
|
||||
<td align="left">
|
||||
<gtc:gtNumTextBox ID="txtZDXJLRL" runat="server" DecimalPlaces="2" Width="72px" ReadOnly="true">
|
||||
</gtc:gtNumTextBox><gtc:gtLabel ID="lblZDXJLRLP" runat="server" Text="%"></gtc:gtLabel>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div id="divGDZSY0">
|
||||
<gtc:gtGridView ID="grdGrid" runat="server" AutoGenerateColumns="False" EnableViewState="false">
|
||||
<FixRowCol TableHeight="100%" TableWidth="100%" />
|
||||
<Columns>
|
||||
<asp:BoundField HeaderText="报价单号" DataField="XLXSBJDMX_BJDID">
|
||||
<itemstyle width="80px"></itemstyle>
|
||||
<headerstyle width="80px"></headerstyle>
|
||||
</asp:BoundField>
|
||||
<asp:BoundField HeaderText="序号" DataField="XLXSBJDMX_XH">
|
||||
<itemstyle horizontalalign="Right" width="80px"></itemstyle>
|
||||
<headerstyle width="80px"></headerstyle>
|
||||
</asp:BoundField>
|
||||
<asp:BoundField HeaderText="原序号" DataField="OLD_XLXSBJDMX_XH">
|
||||
<itemstyle horizontalalign="Right" width="80px"></itemstyle>
|
||||
<headerstyle width="80px"></headerstyle>
|
||||
</asp:BoundField>
|
||||
<asp:BoundField HeaderText="产品目录" DataField="HZFS">
|
||||
<itemstyle width="140px"></itemstyle>
|
||||
<headerstyle width="140px"></headerstyle>
|
||||
</asp:BoundField>
|
||||
<asp:BoundField HeaderText="型号" DataField="XLXSBJDMX_XLXHID">
|
||||
<itemstyle width="120px"></itemstyle>
|
||||
<headerstyle width="120px" verticalalign="Middle"></headerstyle>
|
||||
</asp:BoundField>
|
||||
<asp:BoundField HeaderText="规格" DataField="XLXSBJDMX_XLGGID">
|
||||
<itemstyle width="120px"></itemstyle>
|
||||
<headerstyle width="120px"></headerstyle>
|
||||
</asp:BoundField>
|
||||
<asp:BoundField HeaderText="标准" DataField="XLXSBJDMX_XLBZID">
|
||||
<itemstyle width="60px"></itemstyle>
|
||||
<headerstyle width="60px"></headerstyle>
|
||||
</asp:BoundField>
|
||||
<asp:BoundField HeaderText="电压等级" DataField="XLXSBJDMX_DYDJID">
|
||||
<itemstyle width="80px"></itemstyle>
|
||||
<headerstyle width="80px"></headerstyle>
|
||||
</asp:BoundField>
|
||||
<asp:BoundField HeaderText="颜色" DataField="XLXSBJDMX_XLYSID">
|
||||
<itemstyle width="50px"></itemstyle>
|
||||
<headerstyle width="50px"></headerstyle>
|
||||
</asp:BoundField>
|
||||
<asp:BoundField HeaderText="报价产品" DataField="XLXSBJDMX_BJCP">
|
||||
<itemstyle width="200px"></itemstyle>
|
||||
<headerstyle width="200px"></headerstyle>
|
||||
</asp:BoundField>
|
||||
<asp:BoundField HeaderText="计量单位" DataField="XLXSBJDMX_JLDW">
|
||||
<itemstyle width="80px"></itemstyle>
|
||||
<headerstyle width="80px"></headerstyle>
|
||||
</asp:BoundField>
|
||||
<asp:BoundField HeaderText="报价数量" DataField="XLXSBJDMX_BJSL">
|
||||
<itemstyle horizontalalign="Right" width="80px"></itemstyle>
|
||||
<headerstyle width="80px"></headerstyle>
|
||||
</asp:BoundField>
|
||||
<asp:BoundField HeaderText="报价单行情料价" DataField="XLXSBJDMX_BJDHQCLCB">
|
||||
<itemstyle horizontalalign="Right" width="90px"></itemstyle>
|
||||
<headerstyle width="90px"></headerstyle>
|
||||
</asp:BoundField>
|
||||
<asp:BoundField HeaderText="报价单行情料价金额" DataField="BJDHQCLCBJE">
|
||||
<itemstyle horizontalalign="Right" width="110px"></itemstyle>
|
||||
<headerstyle width="110px"></headerstyle>
|
||||
</asp:BoundField>
|
||||
<asp:BoundField HeaderText="价格表行情料价" DataField="XLXSBJDMX_CLCB">
|
||||
<itemstyle horizontalalign="Right" width="100px"></itemstyle>
|
||||
<headerstyle width="100px"></headerstyle>
|
||||
</asp:BoundField>
|
||||
<asp:BoundField HeaderText="价格表行情料价金额" DataField="CLCBJE">
|
||||
<itemstyle horizontalalign="Right" width="110px"></itemstyle>
|
||||
<headerstyle width="110px"></headerstyle>
|
||||
</asp:BoundField>
|
||||
<asp:BoundField HeaderText="表价" DataField="XLXSBJDMX_JGBBJ">
|
||||
<itemstyle horizontalalign="Right" width="80px"></itemstyle>
|
||||
<headerstyle width="80px"></headerstyle>
|
||||
</asp:BoundField>
|
||||
<asp:BoundField HeaderText="表价金额" DataField="CPJJJE">
|
||||
<itemstyle horizontalalign="Right" width="80px"></itemstyle>
|
||||
<headerstyle width="80px"></headerstyle>
|
||||
</asp:BoundField>
|
||||
<asp:BoundField HeaderText="表价料价价差率(%)" DataField="BJLJJCL">
|
||||
<itemstyle horizontalalign="Right" width="110px"></itemstyle>
|
||||
<headerstyle width="110px"></headerstyle>
|
||||
</asp:BoundField>
|
||||
<asp:BoundField HeaderText="报价" DataField="XLXSBJDMX_CPBJ">
|
||||
<itemstyle horizontalalign="Right" width="80px"></itemstyle>
|
||||
<headerstyle width="80px"></headerstyle>
|
||||
</asp:BoundField>
|
||||
<asp:BoundField HeaderText="报价金额" DataField="XLXSBJDMX_BJJE">
|
||||
<itemstyle horizontalalign="Right" width="80px"></itemstyle>
|
||||
<headerstyle width="80px"></headerstyle>
|
||||
</asp:BoundField>
|
||||
<asp:BoundField HeaderText="报价金额占比" DataField="BJJEZB">
|
||||
<itemstyle horizontalalign="Right" width="80px"></itemstyle>
|
||||
<headerstyle width="80px"></headerstyle>
|
||||
</asp:BoundField>
|
||||
<asp:BoundField HeaderText="表价价差率(%)" DataField="XLXSBJDMX_JGBBJJCL">
|
||||
<itemstyle horizontalalign="Right" width="90px"></itemstyle>
|
||||
<headerstyle width="90px"></headerstyle>
|
||||
</asp:BoundField>
|
||||
<asp:BoundField HeaderText="表价价差额" DataField="XLXSBJDMX_JGBBJJCE">
|
||||
<itemstyle horizontalalign="Right" width="80px"></itemstyle>
|
||||
<headerstyle width="80px"></headerstyle>
|
||||
</asp:BoundField>
|
||||
<asp:BoundField HeaderText="料价价差率(%)" DataField="XLXSBJDMX_CLCBJCL">
|
||||
<itemstyle horizontalalign="Right" width="90px"></itemstyle>
|
||||
<headerstyle width="90px"></headerstyle>
|
||||
</asp:BoundField>
|
||||
<asp:BoundField HeaderText="最低限价" DataField="XLXSBJDMX_ZDXJ">
|
||||
<itemstyle horizontalalign="Right" width="80px"></itemstyle>
|
||||
<headerstyle width="80px"></headerstyle>
|
||||
</asp:BoundField>
|
||||
<asp:BoundField HeaderText="最低限价金额" DataField="XLXSBJDMX_ZDXJZJE">
|
||||
<itemstyle horizontalalign="Right" width="80px"></itemstyle>
|
||||
<headerstyle width="80px"></headerstyle>
|
||||
</asp:BoundField>
|
||||
<asp:BoundField HeaderText="最低限价价差率(%)" DataField="XLXSBJDMX_ZDXJJCL">
|
||||
<itemstyle horizontalalign="Right" width="100px"></itemstyle>
|
||||
<headerstyle width="100px"></headerstyle>
|
||||
</asp:BoundField>
|
||||
<asp:BoundField DataField="XLXSBJDMX_BJLY" HeaderText="报价来源">
|
||||
<headerstyle width="80px" />
|
||||
<itemstyle width="80px" />
|
||||
</asp:BoundField>
|
||||
</Columns>
|
||||
<ColumnsEx>
|
||||
<gtc:gtGridView_Column DataField="XLXSBJDMX_BJDID" ShowHint="True">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="XLXSBJDMX_XH" EditType="etNumber" ShowZero="false"
|
||||
NumberDecimalPlace="0">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="OLD_XLXSBJDMX_XH" EditType="etNumber" ShowZero="false"
|
||||
NumberDecimalPlace="0">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="HZFS" ShowHint="True">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="XLXSBJDMX_XLXHID" ShowHint="True">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="XLXSBJDMX_XLGGID" ShowHint="True">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="XLXSBJDMX_XLBZID" ShowHint="True">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="XLXSBJDMX_DYDJID" ShowHint="True">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="XLXSBJDMX_XLYSID" ShowHint="True">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="XLXSBJDMX_BJCP" ShowHint="True">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="XLXSBJDMX_JLDW" ShowHint="True">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="XLXSBJDMX_BJSL" EditType="etNumber" ShowZero="false"
|
||||
NumberDecimalPlace="3" NumberIsQuantity="true">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="XLXSBJDMX_BJDHQCLCB" EditType="etNumber" ShowZero="false"
|
||||
NumberDecimalPlace="5">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="BJDHQCLCBJE" EditType="etNumber" ShowZero="false"
|
||||
NumberDecimalPlace="2">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="XLXSBJDMX_CLCB" EditType="etNumber" ShowZero="false"
|
||||
NumberDecimalPlace="5">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="CLCBJE" EditType="etNumber" ShowZero="false" NumberDecimalPlace="2">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="XLXSBJDMX_JGBBJ" EditType="etNumber" ShowZero="false"
|
||||
NumberDecimalPlace="5">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="CPJJJE" EditType="etNumber" ShowZero="false" NumberDecimalPlace="2">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="BJLJJCL" EditType="etNumber" ShowZero="false"
|
||||
NumberDecimalPlace="2">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="XLXSBJDMX_CPBJ" EditType="etNumber" ShowZero="false"
|
||||
NumberDecimalPlace="5">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="XLXSBJDMX_BJJE" EditType="etNumber" ShowZero="false"
|
||||
NumberDecimalPlace="2">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="BJJEZB" ShowHint="True">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="XLXSBJDMX_JGBBJJCL" EditType="etNumber" ShowZero="false"
|
||||
NumberDecimalPlace="2">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="XLXSBJDMX_JGBBJJCE" EditType="etNumber" ShowZero="false"
|
||||
NumberDecimalPlace="2">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="XLXSBJDMX_CLCBJCL" EditType="etNumber" ShowZero="false"
|
||||
NumberDecimalPlace="2">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="XLXSBJDMX_ZDXJ" EditType="etNumber" ShowZero="false"
|
||||
NumberDecimalPlace="5">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="XLXSBJDMX_ZDXJZJE" EditType="etNumber" ShowZero="false"
|
||||
NumberDecimalPlace="2">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="XLXSBJDMX_ZDXJJCL" EditType="etNumber" ShowZero="false"
|
||||
NumberDecimalPlace="2">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="XLXSBJDMX_BJLY" ShowHint="True">
|
||||
</gtc:gtGridView_Column>
|
||||
</ColumnsEx>
|
||||
</gtc:gtGridView>
|
||||
</div>
|
||||
</asp:Content>
|
||||
<asp:Content ID="ContentSync" ContentPlaceHolderID="CPHSync" runat="server">
|
||||
</asp:Content>
|
||||
File diff suppressed because it is too large
Load Diff
Generated
+241
@@ -0,0 +1,241 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// 此代码由工具生成。
|
||||
// 运行时版本:2.0.50727.9179
|
||||
//
|
||||
// 对此文件的更改可能会导致不正确的行为,并且如果
|
||||
// 重新生成代码,这些更改将会丢失。
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace GThinking.U20261363_N_XLXSBJ {
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// XLBJD_BJLRList 类。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的类。
|
||||
/// </remarks>
|
||||
public partial class XLBJD_BJLRList {
|
||||
|
||||
/// <summary>
|
||||
/// lblCLCBZJE 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtLabel lblCLCBZJE;
|
||||
|
||||
/// <summary>
|
||||
/// lblBJDHQCLCBZJE 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtLabel lblBJDHQCLCBZJE;
|
||||
|
||||
/// <summary>
|
||||
/// txtCLCBZJE 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtNumTextBox txtCLCBZJE;
|
||||
|
||||
/// <summary>
|
||||
/// txtBJDHQCLCBZJE 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtNumTextBox txtBJDHQCLCBZJE;
|
||||
|
||||
/// <summary>
|
||||
/// lblCPJJZJE 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtLabel lblCPJJZJE;
|
||||
|
||||
/// <summary>
|
||||
/// txtCPJJZJE 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtNumTextBox txtCPJJZJE;
|
||||
|
||||
/// <summary>
|
||||
/// lblZJE 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtLabel lblZJE;
|
||||
|
||||
/// <summary>
|
||||
/// txtZJE 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtNumTextBox txtZJE;
|
||||
|
||||
/// <summary>
|
||||
/// lblZDXJZJE 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtLabel lblZDXJZJE;
|
||||
|
||||
/// <summary>
|
||||
/// txtZDXJZJE 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtNumTextBox txtZDXJZJE;
|
||||
|
||||
/// <summary>
|
||||
/// lblBJLJJCL 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtLabel lblBJLJJCL;
|
||||
|
||||
/// <summary>
|
||||
/// txtBJLJJCL 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtNumTextBox txtBJLJJCL;
|
||||
|
||||
/// <summary>
|
||||
/// lblBJLJ 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtLabel lblBJLJ;
|
||||
|
||||
/// <summary>
|
||||
/// lblLRL 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtLabel lblLRL;
|
||||
|
||||
/// <summary>
|
||||
/// txtLRL 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtNumTextBox txtLRL;
|
||||
|
||||
/// <summary>
|
||||
/// lblLRLP 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtLabel lblLRLP;
|
||||
|
||||
/// <summary>
|
||||
/// lblCLCBLRL 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtLabel lblCLCBLRL;
|
||||
|
||||
/// <summary>
|
||||
/// txtCLCBLRL 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtNumTextBox txtCLCBLRL;
|
||||
|
||||
/// <summary>
|
||||
/// lblCLCBLRLLP 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtLabel lblCLCBLRLLP;
|
||||
|
||||
/// <summary>
|
||||
/// lblZDXJLRL 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtLabel lblZDXJLRL;
|
||||
|
||||
/// <summary>
|
||||
/// txtZDXJLRL 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtNumTextBox txtZDXJLRL;
|
||||
|
||||
/// <summary>
|
||||
/// lblZDXJLRLP 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtLabel lblZDXJLRLP;
|
||||
|
||||
/// <summary>
|
||||
/// grdGrid 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtGridView grdGrid;
|
||||
|
||||
/// <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,47 @@
|
||||
<%@ Page Language="C#" MasterPageFile="~/N_MODEL/Page/MasterSingleQuery.Master" AutoEventWireup="true"
|
||||
Codebehind="XLBJD_BJLRQuery.aspx.cs" Inherits="GThinking.U20261363_N_XLXSBJ.XLBJD_BJLRQuery"
|
||||
Title="查询" %>
|
||||
|
||||
<%@ MasterType VirtualPath="~/N_MODEL/Page/MasterSingleQuery.Master" %>
|
||||
<asp:Content ID="ContentQuery" ContentPlaceHolderID="CPHQuery" runat="server">
|
||||
<asp:Table ID="QueryTalbe" runat="server">
|
||||
<asp:TableRow>
|
||||
<asp:TableCell></asp:TableCell>
|
||||
<asp:TableCell HorizontalAlign="Right" Width="100px" Height="23px">
|
||||
<gtc:gtLabel ID="GtLabel2" runat="server">汇总方式:</gtc:gtLabel>
|
||||
</asp:TableCell>
|
||||
<asp:TableCell Height="22px">
|
||||
<gtc:gtComboBox ID="cbxHZFS" Width="170px" DataField="HZFS" runat="server" Tag="Star">
|
||||
</gtc:gtComboBox>
|
||||
</asp:TableCell>
|
||||
</asp:TableRow>
|
||||
<asp:TableRow>
|
||||
<asp:TableCell></asp:TableCell>
|
||||
<asp:TableCell HorizontalAlign="Right" Width="100px" Height="23px">
|
||||
</asp:TableCell>
|
||||
<asp:TableCell ID="TableCell1" Height="23px" runat="server">
|
||||
<gtc:gtCheckBox ID="chkXSMX" DataField="XSMX" runat="server" Width="170px" Text="显示明细">
|
||||
</gtc:gtCheckBox>
|
||||
</asp:TableCell>
|
||||
</asp:TableRow>
|
||||
<asp:TableRow>
|
||||
<asp:TableCell></asp:TableCell>
|
||||
<asp:TableCell HorizontalAlign="Right" Width="100px" Height="23px">
|
||||
</asp:TableCell>
|
||||
<asp:TableCell ID="TableCell2" Height="23px" runat="server">
|
||||
<gtc:gtCheckBox ID="chkXSXJ" DataField="XSXJ" runat="server" Width="170px" Text="显示小计">
|
||||
</gtc:gtCheckBox>
|
||||
</asp:TableCell>
|
||||
</asp:TableRow>
|
||||
<asp:TableRow>
|
||||
<asp:TableCell></asp:TableCell>
|
||||
<asp:TableCell HorizontalAlign="Right" Width="100px" Height="23px">
|
||||
</asp:TableCell>
|
||||
<asp:TableCell ID="TableCell3" Height="23px" runat="server">
|
||||
<gtc:gtCheckBox ID="chkWGXJ" DataField="WGXJ" runat="server" Width="170px" Text="外购小计">
|
||||
</gtc:gtCheckBox>
|
||||
</asp:TableCell>
|
||||
</asp:TableRow>
|
||||
</asp:Table>
|
||||
</asp:Content>
|
||||
|
||||
@@ -0,0 +1,88 @@
|
||||
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;
|
||||
using GThinking.N_CONTROL;
|
||||
using System.Text;
|
||||
using System.Drawing;
|
||||
using GThinking.N_MISPRO.TableCache;
|
||||
using GThinking.N_MISPRO.MISPROAS;
|
||||
using GThinking.N_MISPRO;
|
||||
|
||||
namespace GThinking.U20261363_N_XLXSBJ
|
||||
{
|
||||
public class XLBJD_BJLR_M : TBaseNamedQuery
|
||||
{
|
||||
public XLBJD_BJLR_M()
|
||||
{
|
||||
AddFieldDefs("HZFS", "汇总方式", false);
|
||||
AddFieldDefs("XSMX", "显示明细");
|
||||
AddFieldDefs("XSXJ", "显示小计");
|
||||
AddFieldDefs("WGXJ", "外购小计");
|
||||
}
|
||||
}
|
||||
public partial class XLBJD_BJLRQuery : SingleQueryBase
|
||||
{
|
||||
XLBJD_BJLR_M queryentity = new XLBJD_BJLR_M();
|
||||
|
||||
#region Page_Load
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
this.UMID = 100860174;
|
||||
this.UMName = "线缆销售报价单价差 ";
|
||||
this.CurMaster = Master;
|
||||
this.CurQueryTable = QueryTalbe;
|
||||
this.CurQueryEntity = queryentity;
|
||||
|
||||
|
||||
base.InitPage();
|
||||
|
||||
if (!IsPostBack)
|
||||
{
|
||||
InitControl();
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region
|
||||
|
||||
protected override bool QueryLogicValid()
|
||||
{
|
||||
if (cbxHZFS.SelectedValue.Trim().Equals(""))
|
||||
{
|
||||
ShowMessage("汇总方式不允许为空!");
|
||||
return false;
|
||||
|
||||
}
|
||||
return base.QueryLogicValid();
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region 私有函数
|
||||
|
||||
private void InitControl()
|
||||
{
|
||||
cbxHZFS.ClearItems();
|
||||
cbxHZFS.Items.Add(new ListItem("产品目录", "1"));
|
||||
cbxHZFS.Items.Add(new ListItem("产品用途", "2"));
|
||||
cbxHZFS.Items.Add(new ListItem("产品用途+铜铝产品", "3"));
|
||||
cbxHZFS.Items.Add(new ListItem("非外购品按产品目录汇总+外购品合并汇总", "4"));
|
||||
cbxHZFS.Items.Add(new ListItem("包号+产品目录", "5"));
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
Generated
+115
@@ -0,0 +1,115 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// 此代码由工具生成。
|
||||
// 运行时版本:2.0.50727.9179
|
||||
//
|
||||
// 对此文件的更改可能会导致不正确的行为,并且如果
|
||||
// 重新生成代码,这些更改将会丢失。
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace GThinking.U20261363_N_XLXSBJ {
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// XLBJD_BJLRQuery 类。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的类。
|
||||
/// </remarks>
|
||||
public partial class XLBJD_BJLRQuery {
|
||||
|
||||
/// <summary>
|
||||
/// QueryTalbe 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Table QueryTalbe;
|
||||
|
||||
/// <summary>
|
||||
/// GtLabel2 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtLabel GtLabel2;
|
||||
|
||||
/// <summary>
|
||||
/// cbxHZFS 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtComboBox cbxHZFS;
|
||||
|
||||
/// <summary>
|
||||
/// TableCell1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.TableCell TableCell1;
|
||||
|
||||
/// <summary>
|
||||
/// chkXSMX 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtCheckBox chkXSMX;
|
||||
|
||||
/// <summary>
|
||||
/// TableCell2 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.TableCell TableCell2;
|
||||
|
||||
/// <summary>
|
||||
/// chkXSXJ 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtCheckBox chkXSXJ;
|
||||
|
||||
/// <summary>
|
||||
/// TableCell3 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.TableCell TableCell3;
|
||||
|
||||
/// <summary>
|
||||
/// chkWGXJ 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtCheckBox chkWGXJ;
|
||||
|
||||
/// <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,145 @@
|
||||
<%@ Page Language="C#" MasterPageFile="~/N_MODEL/Page/MasterSingleGrid.Master" AutoEventWireup="true"
|
||||
Codebehind="XLBJD_CBZSList.aspx.cs" Inherits="GThinking.U20261363_N_XLXSBJ.XLBJD_CBZSList"
|
||||
Title="料价追溯" %>
|
||||
|
||||
<%@ MasterType VirtualPath="~/N_MODEL/Page/MasterSingleGrid.Master" %>
|
||||
<asp:Content ID="ContentButton" ContentPlaceHolderID="CPHButton" runat="server">
|
||||
<asp:Table ID="AddTable" runat="server" CellPadding="0" CellSpacing="0">
|
||||
<asp:TableRow>
|
||||
<asp:TableCell>
|
||||
<gtc:gtButton Style="display: none" ID="btnTZJG" OnClick="btnTZJG_Click" runat="server"
|
||||
Visible="true" EnableTheming="false" SkinID="hidden"></gtc:gtButton>
|
||||
</asp:TableCell>
|
||||
<asp:TableCell>
|
||||
<gtc:gtButton Style="display: none" ID="btnRefreshCLHQTZ" OnClick="btnRefreshCLHQTZ_Click"
|
||||
runat="server" Visible="true" EnableTheming="false" SkinID="hidden"></gtc:gtButton>
|
||||
</asp:TableCell>
|
||||
</asp:TableRow>
|
||||
</asp:Table>
|
||||
</asp:Content>
|
||||
<asp:Content ID="ContentForm" ContentPlaceHolderID="CPHForm" runat="server">
|
||||
<div>
|
||||
<table style="width: 100%" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td align="center" style="height: 10px">
|
||||
<table>
|
||||
<tr>
|
||||
<td align="right">
|
||||
<asp:LinkButton ID="lblBJCP" runat="server" Font-Underline="false" OnClick="lblBJCP_Click" ></asp:LinkButton>
|
||||
</td>
|
||||
<td align="left">
|
||||
</td>
|
||||
<td align="right">
|
||||
<gtc:gtLabel ID="lblZHJD" runat="server" Visible="false" ForeColor="red"></gtc:gtLabel>
|
||||
</td>
|
||||
<td align="left">
|
||||
<gtc:gtLabel ID="lblYSCP" runat="server" Visible="false" ></gtc:gtLabel>
|
||||
</td>
|
||||
<td align="right">
|
||||
<gtc:gtLabel ID="lblCLCB" runat="server" Width="120px">材料成本合计:</gtc:gtLabel>
|
||||
</td>
|
||||
<td align="left">
|
||||
<table border="0" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td>
|
||||
<gtc:gtNumTextBox ID="txtCLCB" runat="server" DecimalPlaces="2" Width="100px" Enabled="false"></gtc:gtNumTextBox></td>
|
||||
<td>
|
||||
<gtc:gtLabel ID="lblDW" runat="server" Text=""></gtc:gtLabel></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr style="height:10px">
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div id="divGDZSY0" style="height:100%; width:100%;">
|
||||
<gtc:gtGridView ID="grdContentGrid" runat="server" EnableViewState="false" AutoGenerateColumns="False"
|
||||
CellPadding="0" CellSpacing="0" AllowPaging="True" AllowSorting="True" MaintainScrollPositionYOnPostback="true">
|
||||
<Columns>
|
||||
<asp:BoundField DataField="XLJGCZBLM_BJCLID" HeaderText="材料编码">
|
||||
<itemstyle width="80px"></itemstyle>
|
||||
<headerstyle width="80px"></headerstyle>
|
||||
</asp:BoundField>
|
||||
<asp:BoundField DataField="XLXSBJCL_BJCLMC" HeaderText="材料名称">
|
||||
<itemstyle width="140px"></itemstyle>
|
||||
<headerstyle width="140px"></headerstyle>
|
||||
</asp:BoundField>
|
||||
<asp:BoundField DataField="XLXSBJCL_BJHQ" HeaderText="报价行情">
|
||||
<itemstyle width="60px"></itemstyle>
|
||||
<headerstyle width="60px"></headerstyle>
|
||||
</asp:BoundField>
|
||||
<asp:BoundField DataField="WLXX" HeaderText="物料信息">
|
||||
<itemstyle width="140px"></itemstyle>
|
||||
<headerstyle width="140px"></headerstyle>
|
||||
</asp:BoundField>
|
||||
<asp:BoundField DataField="CLJG" HeaderText="材料价格(元/Kg)">
|
||||
<itemstyle width="95px" horizontalalign="Right"></itemstyle>
|
||||
<headerstyle width="95px"></headerstyle>
|
||||
</asp:BoundField>
|
||||
<asp:BoundField DataField="CLSL" HeaderText="材料用量">
|
||||
<itemstyle width="95px" horizontalalign="Right"></itemstyle>
|
||||
<headerstyle width="95px"></headerstyle>
|
||||
</asp:BoundField>
|
||||
<asp:BoundField DataField="px0" HeaderText="序号">
|
||||
<itemstyle width="95px"></itemstyle>
|
||||
<headerstyle width="95px"></headerstyle>
|
||||
</asp:BoundField>
|
||||
<asp:BoundField DataField="SHL" HeaderText="材料损耗率(%)">
|
||||
<itemstyle width="85px" horizontalalign="Right"></itemstyle>
|
||||
<headerstyle width="85px"></headerstyle>
|
||||
</asp:BoundField>
|
||||
<asp:BoundField DataField="CLJGBL" HeaderText="材料用量比例">
|
||||
<itemstyle width="80px" horizontalalign="Right"></itemstyle>
|
||||
<headerstyle width="80px"></headerstyle>
|
||||
</asp:BoundField>
|
||||
<asp:BoundField DataField="CLCB" HeaderText="材料成本">
|
||||
<itemstyle width="104px" horizontalalign="Right"></itemstyle>
|
||||
<headerstyle width="104px"></headerstyle>
|
||||
</asp:BoundField>
|
||||
</Columns>
|
||||
<FixRowCol TableHeight="100%" TableWidth="100%" />
|
||||
<ColumnsEx>
|
||||
<gtc:gtGridView_Column DataField="XLJGCZBLM_BJCLID" EditType="etString" ShowHint ="true">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="XLXSBJCL_BJCLMC" EditType="etString" ShowHint ="true">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="XLXSBJCL_BJHQ" EditType="etString" ShowHint ="true">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="WLXX" EditType="etString">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="CLJG" EditType="etString">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="CLSL" EditType="etNumber" NumberDecimalPlace="6">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="px0" EditType="etNumber" NumberDecimalPlace="0">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="SHL" EditType="etNumber" NumberDecimalPlace="2">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="CLJGBL" EditType="etNumber" NumberDecimalPlace="2">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="CLCB" EditType="etNumber" NumberDecimalPlace="5">
|
||||
</gtc:gtGridView_Column>
|
||||
</ColumnsEx>
|
||||
</gtc:gtGridView>
|
||||
</div>
|
||||
<asp:HiddenField ID="txtBJCLID" runat="server" />
|
||||
<asp:HiddenField ID="txtBJCLMC" runat="server" />
|
||||
<asp:HiddenField ID="txtWLXX" runat="server" />
|
||||
|
||||
<script type="text/javascript">
|
||||
function CellClick(sBJCLID,sBJCLMC,sWLXX)
|
||||
{
|
||||
document.getElementById("ctl00_CPHForm_txtBJCLID").value = sBJCLID;
|
||||
document.getElementById("ctl00_CPHForm_txtBJCLMC").value = sBJCLMC;
|
||||
document.getElementById("ctl00_CPHForm_txtWLXX").value = sWLXX;
|
||||
setTimeout("$get('ctl00_CPHButton_btnTZJG').click();", 100);
|
||||
}
|
||||
</script>
|
||||
</asp:Content>
|
||||
<asp:Content ID="ContentSync" ContentPlaceHolderID="CPHSync" runat="server">
|
||||
</asp:Content>
|
||||
|
||||
@@ -0,0 +1,951 @@
|
||||
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_CONTROL;
|
||||
using GThinking.N_PUBLIC;
|
||||
using GThinking.N_MISPRO.Caching;
|
||||
using GThinking.N_MISPRO.Utility;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace GThinking.U20261363_N_XLXSBJ
|
||||
{
|
||||
public partial class XLBJD_CBZSList : SingleGridBase
|
||||
{
|
||||
XLBJD_CBZS entity = new XLBJD_CBZS();
|
||||
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
this.UMID = 100860174;
|
||||
this.UMName = "成本追溯";
|
||||
this.CurMaster = Master;
|
||||
this.ModuleGV = grdContentGrid;
|
||||
this.CurEntity = entity;
|
||||
this.PageWidth = 700;
|
||||
this.PageHeight = 500;
|
||||
|
||||
Master.EnableQueryBtn = false;
|
||||
Master.EnableAttachBtn = false;
|
||||
Master.EnableNewBtn = false;
|
||||
Master.EnableViewBtn = false;
|
||||
Master.EnableEditBtn = false;
|
||||
Master.EnableCopyBtn = false;
|
||||
Master.EnableDeleteBtn = false;
|
||||
|
||||
base.InitPage();
|
||||
ModuleGV.OnClientDblClick = "return false;";
|
||||
|
||||
grdContentGrid.FindColumnByFieldName("px0").Visible = false;
|
||||
if (GetOption(100860000, "BJU002") != null)
|
||||
{
|
||||
grdContentGrid.FindColumnExByFieldName("CLCB").NumberDecimalPlace = CMISproConvert.StrToInt(GetOption(100860000, "BJU002"), 2);
|
||||
txtCLCB.DecimalPlaces = CMISproConvert.StrToInt(GetOption(100860000, "BJU002"), 2);
|
||||
}
|
||||
|
||||
if (GetOption(100860000, "BJU003") != null)
|
||||
{
|
||||
grdContentGrid.FindColumnByFieldName("CLSL").HeaderText = "材料用量(Kg/" + GetOption(100860000, "BJU003") + ")";
|
||||
grdContentGrid.FindColumnByFieldName("CLCB").HeaderText = "材料成本(元/" + GetOption(100860000, "BJU003") + ")";
|
||||
lblDW.Text = "元/" + GetOption(100860000, "BJU003") + "";
|
||||
}
|
||||
|
||||
if (!IsPostBack)
|
||||
{
|
||||
Master_OnStandardQuery(null, null);
|
||||
|
||||
InitControl();
|
||||
}
|
||||
grdContentGrid.FindColumnExByFieldName("CLJG").NumberDecimalPlace = XLBJDUtils.BJCLPriceDecimal;
|
||||
}
|
||||
|
||||
#region 模板继承事件
|
||||
|
||||
protected override void Master_OnStandardQuery(object sender, EventArgs e)
|
||||
{
|
||||
entity.EntityTable.QuerySelSql = "select 1 from XLXSCLQD where 1<>1";
|
||||
base.Master_OnStandardQuery(sender, e);
|
||||
DataSet ds = GetTable();
|
||||
entity.GridDataBind(grdContentGrid, tSession);
|
||||
entity.GridDataBind(grdContentGrid, ds.Tables[0], ds.Tables[0].Rows.Count);
|
||||
grdContentGrid.DataSource = ds;
|
||||
}
|
||||
|
||||
protected override void moduleGV_PageIndexChanging(object sender, GridViewPageEventArgs e)
|
||||
{
|
||||
entity.EntityTable.QuerySelSql = "select 1 from XLXSCLQD where 1<>1";
|
||||
base.moduleGV_PageIndexChanging(sender, e);
|
||||
grdContentGrid.SelectedIndex = -1;
|
||||
DataSet ds = GetTable();
|
||||
entity.GridDataBind(grdContentGrid, tSession);
|
||||
entity.GridDataBind(grdContentGrid, ds.Tables[0], ds.Tables[0].Rows.Count);
|
||||
grdContentGrid.DataSource = ds;
|
||||
}
|
||||
|
||||
protected override void moduleGV_RowDataBound(object sender, GridViewRowEventArgs e)
|
||||
{
|
||||
if (e.Row.RowType == DataControlRowType.DataRow)
|
||||
{
|
||||
//TZCLHQ=Y说明可以调整材料行情
|
||||
if (PageParam.GetRTrimString("TZCLHQ").Equals("Y") && PageParam.GetRTrimString("CANEDIT").Equals("Y"))
|
||||
{
|
||||
//材料价格
|
||||
e.Row.Cells[4].Text = string.Format("<A href='#' onclick=\"CellClick('{0}','{1}','{2}') \"><U>" + strPadRight(e.Row.Cells[4].Text.ToString().Trim(), XLBJDUtils.BJCLPriceDecimal) + "</U></A>",
|
||||
e.Row.Cells[0].Text.Trim(), e.Row.Cells[1].Text.Trim(), e.Row.Cells[3].Text.Trim());
|
||||
}
|
||||
}
|
||||
base.moduleGV_RowDataBound(sender, e);
|
||||
}
|
||||
|
||||
protected override void ReportRecordSetAdd()
|
||||
{
|
||||
DataSet ds = GetTable();
|
||||
AddUserReportDataSet("XLXSBJDMXCLCB", ds);
|
||||
base.ReportRecordSetAdd();
|
||||
}
|
||||
|
||||
protected override void ReportDataSetAdd()
|
||||
{
|
||||
DataSet ds = GetTable();
|
||||
for (int i = 0; i < grdContentGrid.Columns.Count; i++)
|
||||
{
|
||||
string sDataField = ((System.Web.UI.WebControls.BoundField)(grdContentGrid.Columns[i])).DataField.ToString().Trim();
|
||||
string sHeaderText = grdContentGrid.Columns[i].HeaderText;
|
||||
AddUserReportField("XLXSBJDMXCLCB", sDataField, sHeaderText, "S");
|
||||
}
|
||||
base.ReportDataSetAdd();
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region 自定义事件
|
||||
private void InitControl()
|
||||
{
|
||||
int iSYXH = 0;
|
||||
double dYSJDZ = 1;
|
||||
double dCLCBYSJDZ = 1;
|
||||
string sJGBID = PageParam.GetRTrimString("JGBID");
|
||||
string sXLXHID = PageParam.GetRTrimString("XLXHID");
|
||||
string sXLGGID = PageParam.GetRTrimString("XLGGID");
|
||||
string sXLBZID = PageParam.GetRTrimString("XLBZID");
|
||||
string sDYDJID = PageParam.GetRTrimString("DYDJID");
|
||||
string sJGBTJYS = XLBJDUtils.GetXLXSJGBXXByJGBID(sJGBID).XLXSJGB_TJYS;
|
||||
string sCPLJGS = XLBJDUtils.GetCPLJGS();
|
||||
bool bHasCLQD = HasCLQD(sXLXHID, sXLGGID, sXLBZID, sDYDJID);
|
||||
string sTempXLXHID = sXLXHID;
|
||||
if (XLBJDUtils.ExistedSYJGBMX(sXLXHID, sXLGGID, sXLBZID, sDYDJID, sJGBID, ref iSYXH, ref dYSJDZ, ref dCLCBYSJDZ) && !bHasCLQD)
|
||||
{
|
||||
lblYSCP.Visible = true;
|
||||
lblYSCP.Text = GetBJCP(sXLXHID, sXLGGID, GetXLBZXX(sXLBZID), sDYDJID);
|
||||
if ((sJGBTJYS == "1" || sJGBTJYS == "3") && (sCPLJGS == "2" || sCPLJGS == "4"))
|
||||
{
|
||||
lblZHJD.Visible = true;
|
||||
lblZHJD.Text = dYSJDZ.ToString();
|
||||
if (sCPLJGS == "4")
|
||||
lblZHJD.Text = dCLCBYSJDZ.ToString();
|
||||
|
||||
}
|
||||
XLBJDUtils.GetJGBMXBySYXH(sJGBID, iSYXH, ref sXLXHID, ref sXLGGID, ref sXLBZID, ref sDYDJID);
|
||||
|
||||
}
|
||||
|
||||
if (!bHasCLQD && sCPLJGS == "3")
|
||||
{
|
||||
XLBJDUtils.GetCLQDLJJDZ(sDYDJID, ref sTempXLXHID, ref dYSJDZ);
|
||||
if (dYSJDZ > 1)
|
||||
{
|
||||
lblZHJD.Visible = true;
|
||||
lblZHJD.Text = dYSJDZ.ToString();
|
||||
sXLXHID = sTempXLXHID;
|
||||
}
|
||||
}
|
||||
|
||||
lblBJCP.Text = GetBJCP(sXLXHID, sXLGGID, GetXLBZXX(sXLBZID), sDYDJID);
|
||||
}
|
||||
private DataSet GetTable()
|
||||
{
|
||||
string sBJDID = PageParam.GetRTrimString("BJDID");
|
||||
string sBJRQ = PageParam.GetRTrimString("BJRQ");
|
||||
string sBJFLID = PageParam.GetRTrimString("BJFLID");
|
||||
string sJGBID = PageParam.GetRTrimString("JGBID");
|
||||
string sXLXHID = PageParam.GetRTrimString("XLXHID");
|
||||
string sXLGGID = PageParam.GetRTrimString("XLGGID");
|
||||
string sXLBZID = PageParam.GetRTrimString("XLBZID");
|
||||
string sDYDJID = PageParam.GetRTrimString("DYDJID");
|
||||
string sBJDHQLY = PageParam.GetRTrimString("BJDHQLY");
|
||||
bool bHSBZ = PageParam.GetRTrimString("HSBZ").Equals("Y");
|
||||
|
||||
string sTBJCLID = PageParam.GetRTrimString("TBJCLID");
|
||||
string sLBJCLID = PageParam.GetRTrimString("LBJCLID");
|
||||
string sTJ = PageParam.GetRTrimString("TJ");
|
||||
string sLJ = PageParam.GetRTrimString("LJ");
|
||||
int iSYXH = 0;
|
||||
double dYSJDZ = 1;
|
||||
double dCLCBYSJDZ = 1;
|
||||
string sCPLJGS = XLBJDUtils.GetCPLJGS();
|
||||
bool bHasCLQD = HasCLQD(sXLXHID, sXLGGID, sXLBZID, sDYDJID);
|
||||
bool bExistedSYJGBMX = XLBJDUtils.ExistedSYJGBMX(sXLXHID, sXLGGID, sXLBZID, sDYDJID, sJGBID, ref iSYXH, ref dYSJDZ, ref dCLCBYSJDZ);
|
||||
if (!bHasCLQD && sCPLJGS == "3")
|
||||
XLBJDUtils.GetCLQDLJJDZ(sDYDJID, ref sXLXHID, ref dYSJDZ);
|
||||
else if (bExistedSYJGBMX && !bHasCLQD)
|
||||
XLBJDUtils.GetJGBMXBySYXH(sJGBID, iSYXH, ref sXLXHID, ref sXLGGID, ref sXLBZID, ref sDYDJID);
|
||||
Dictionary<string, string> dicCLHQ = new Dictionary<string, string>();
|
||||
Dictionary<string, string> dicWLHQ = new Dictionary<string, string>();
|
||||
DataSet dsWLHQ = null;
|
||||
|
||||
string sJSBLFS = XLBJDUtils.GetXLXSJGBXXByJGBID(sJGBID).XLXSJGB_JSBLFS;
|
||||
|
||||
int iXSWS = string.IsNullOrEmpty(GetOption(100860000, "BJU002")) ? 5 : CMISproConvert.StrToInt(GetOption(100860000, "BJU002"));
|
||||
if (iXSWS < 0)
|
||||
{
|
||||
iXSWS = 0;
|
||||
}
|
||||
else if (iXSWS > 8)
|
||||
{
|
||||
iXSWS = 8;
|
||||
}
|
||||
|
||||
TDatabase dberp = TContextDatabases.GetDatabase("DBERP");
|
||||
TSQL tSql = new TSQL(dberp);
|
||||
tSql.Clear();
|
||||
tSql.Add("select XLJGCZBLM_CLQDL,XLJGCZBLM_BJCLID,XLXSBJCL_BJHQ");
|
||||
tSql.Add(" from XLJGCZBLM");
|
||||
tSql.Add(" left join XLXSCLQD on XLXSCLQD_JGCZBID=XLJGCZBLM_JGCZBID and XLXSCLQD_JGCZBBBID = XLJGCZBLM_JGCZBBBID ");
|
||||
tSql.Add(" left join XLXSBJCL on XLXSBJCL_BJCLID=XLJGCZBLM_BJCLID");
|
||||
tSql.Add(" where XLXSCLQD_XLXHID=:pXLXHID and XLXSCLQD_XLGGID=:pXLGGID and XLXSCLQD_XLBZID=:pXLBZID and XLXSCLQD_DYDJID=:pDYDJID");
|
||||
tSql.Add(" and XLXSCLQD_WPID='ZZZZ'");
|
||||
tSql.Add(" and isnull(XLJGCZBLM_CLQDL,' ')<>' ' ");
|
||||
tSql.Add(" order by XLJGCZBLM_CLQDL");
|
||||
tSql.ParamByName("pXLXHID").Value = sXLXHID;
|
||||
tSql.ParamByName("pXLGGID").Value = sXLGGID;
|
||||
tSql.ParamByName("pXLBZID").Value = sXLBZID;
|
||||
tSql.ParamByName("pDYDJID").Value = sDYDJID;
|
||||
DataSet dsCZB = dberp.OpenDataSet(tSql);
|
||||
for (int i = 0; i < dsCZB.Tables[0].Rows.Count; i++)
|
||||
{
|
||||
if (dsCZB.Tables[0].Rows[i]["XLXSBJCL_BJHQ"].ToString().Trim().Equals("1"))//1|材料行情
|
||||
dicCLHQ.Add(dsCZB.Tables[0].Rows[i]["XLJGCZBLM_CLQDL"].ToString().Trim(), dsCZB.Tables[0].Rows[i]["XLJGCZBLM_BJCLID"].ToString().Trim());
|
||||
else if (dsCZB.Tables[0].Rows[i]["XLXSBJCL_BJHQ"].ToString().Trim().Equals("2"))//2|物料行情
|
||||
dicWLHQ.Add(dsCZB.Tables[0].Rows[i]["XLJGCZBLM_CLQDL"].ToString().Trim(), dsCZB.Tables[0].Rows[i]["XLJGCZBLM_BJCLID"].ToString().Trim());
|
||||
}
|
||||
//存在物料行情材料
|
||||
if (dicWLHQ.Keys.Count > 0)
|
||||
{
|
||||
tSql.Clear();
|
||||
tSql.Add("select XLXSCLQD_JGCZBID,XLXSCLQD_JGCZBBBID,XLXSCLQD_JGCZBXH,XLXSCLQD_DRHH");
|
||||
tSql.Add(" from XLXSCLQD ");
|
||||
tSql.Add(" where XLXSCLQD_XLXHID=:pXLXHID and XLXSCLQD_XLGGID=:pXLGGID and XLXSCLQD_XLBZID=:pXLBZID and XLXSCLQD_DYDJID=:pDYDJID");
|
||||
tSql.ParamByName("pXLXHID").Value = sXLXHID;
|
||||
tSql.ParamByName("pXLGGID").Value = sXLGGID;
|
||||
tSql.ParamByName("pXLBZID").Value = sXLBZID;
|
||||
tSql.ParamByName("pDYDJID").Value = sDYDJID;
|
||||
DataSet dsCZBXL = dberp.OpenDataSet(tSql);
|
||||
if (dsCZBXL.Tables[0].Rows.Count > 0)
|
||||
{
|
||||
string sJGCZBID = dsCZBXL.Tables[0].Rows[0]["XLXSCLQD_JGCZBID"].ToString().Trim();
|
||||
string sJGCZBBBID = dsCZBXL.Tables[0].Rows[0]["XLXSCLQD_JGCZBBBID"].ToString().Trim();
|
||||
string sJGCZBXH = dsCZBXL.Tables[0].Rows[0]["XLXSCLQD_JGCZBXH"].ToString().Trim();
|
||||
string sDRHH = dsCZBXL.Tables[0].Rows[0]["XLXSCLQD_DRHH"].ToString().Trim();
|
||||
|
||||
#region 创建临时表
|
||||
DateTime TimeStamp = MISproUtils.GetServerTime();
|
||||
int VnewID = CMISproDataBase.GetMaxXH("DBERP", "V_XLXSCLQDWLHQ", "V_XLXSCLQDWLHQ_ID", "") + 1;
|
||||
|
||||
tSql.Clear();
|
||||
tSql.Add(@"insert into V_XLXSCLQDWLHQ(V_XLXSCLQDWLHQ_ID,V_XLXSCLQDWLHQ_TIMESTAMP,V_XLXSCLQDWLHQ_JGCZBID,V_XLXSCLQDWLHQ_JGCZBBBID,V_XLXSCLQDWLHQ_JGCZBXH,V_XLXSCLQDWLHQ_DRHH,V_XLXSCLQDWLHQ_HSBZ)
|
||||
select :pID,:pTime,XLXSCLQD_JGCZBID, XLXSCLQD_JGCZBBBID,XLXSCLQD_JGCZBXH,XLXSCLQD_DRHH,:pHSBZ from XLXSCLQD
|
||||
where XLXSCLQD_JGCZBID=:pJGCZBID and XLXSCLQD_JGCZBBBID=:pJGCZBBBID and XLXSCLQD_JGCZBXH=:pJGCZBXH and XLXSCLQD_DRHH=:pDRHH
|
||||
");
|
||||
tSql.ParamByName("pID").Value = VnewID;
|
||||
tSql.ParamByName("pTime").Value = TimeStamp;
|
||||
tSql.ParamByName("pHSBZ").Value = "N";
|
||||
tSql.ParamByName("pJGCZBID").Value = sJGCZBID;
|
||||
tSql.ParamByName("pJGCZBBBID").Value = sJGCZBBBID;
|
||||
tSql.ParamByName("pJGCZBXH").Value = CMISproConvert.StrToFloat(sJGCZBXH);
|
||||
tSql.ParamByName("pDRHH").Value = CMISproConvert.StrToFloat(sDRHH);
|
||||
dberp.ExecSQL(tSql);
|
||||
|
||||
|
||||
tSql.Clear();
|
||||
tSql.Add(@"insert into V_XLXSCLQDWLHQ(V_XLXSCLQDWLHQ_ID,V_XLXSCLQDWLHQ_TIMESTAMP,V_XLXSCLQDWLHQ_JGCZBID,V_XLXSCLQDWLHQ_JGCZBBBID,V_XLXSCLQDWLHQ_JGCZBXH,V_XLXSCLQDWLHQ_DRHH,V_XLXSCLQDWLHQ_HSBZ)
|
||||
select :pID,:pTime,XLXSCLQD_JGCZBID, XLXSCLQD_JGCZBBBID,XLXSCLQD_JGCZBXH,XLXSCLQD_DRHH,:pHSBZ from XLXSCLQD
|
||||
where XLXSCLQD_JGCZBID=:pJGCZBID and XLXSCLQD_JGCZBBBID=:pJGCZBBBID and XLXSCLQD_JGCZBXH=:pJGCZBXH and XLXSCLQD_DRHH=:pDRHH
|
||||
");
|
||||
tSql.ParamByName("pID").Value = VnewID;
|
||||
tSql.ParamByName("pTime").Value = TimeStamp;
|
||||
tSql.ParamByName("pHSBZ").Value = "Y";
|
||||
tSql.ParamByName("pJGCZBID").Value = sJGCZBID;
|
||||
tSql.ParamByName("pJGCZBBBID").Value = sJGCZBBBID;
|
||||
tSql.ParamByName("pJGCZBXH").Value = CMISproConvert.StrToFloat(sJGCZBXH);
|
||||
tSql.ParamByName("pDRHH").Value = CMISproConvert.StrToFloat(sDRHH);
|
||||
dberp.ExecSQL(tSql);
|
||||
|
||||
#endregion
|
||||
|
||||
#region 循环dsCLQDL更新临时表
|
||||
|
||||
|
||||
#region 含税
|
||||
|
||||
string sSQL_1 = " merge into V_XLXSCLQDWLHQ tar "
|
||||
+ " using ( "
|
||||
+ " select XLXSCLQDWL_JGCZBID,XLXSCLQDWL_JGCZBBBID,XLXSCLQDWL_JGCZBXH,XLXSCLQDWL_DRHH, ";
|
||||
string sSQL_2 = string.Empty;
|
||||
string sSQL_3 = " ' ' as MJBZ from XLXSCLQDWL ";
|
||||
string sSQL_4 = string.Empty;
|
||||
string sSQL_5 = " where XLXSCLQDWL_JGCZBID=:pJGCZBID and XLXSCLQDWL_JGCZBBBID=:pJGCZBBBID and XLXSCLQDWL_JGCZBXH=:pJGCZBXH and XLXSCLQDWL_DRHH=:pDRHH "
|
||||
+ " ) sor "
|
||||
+ " on ( "
|
||||
+ " XLXSCLQDWL_JGCZBID=V_XLXSCLQDWLHQ_JGCZBID and XLXSCLQDWL_JGCZBBBID=V_XLXSCLQDWLHQ_JGCZBBBID and XLXSCLQDWL_JGCZBXH=V_XLXSCLQDWLHQ_JGCZBXH and XLXSCLQDWL_DRHH=V_XLXSCLQDWLHQ_DRHH and V_XLXSCLQDWLHQ_HSBZ=:pHSBZ and V_XLXSCLQDWLHQ_ID=:pID "
|
||||
+ " ) when matched then update set V_XLXSCLQDWLHQ_HSBZ=:pHSBZ";
|
||||
string sSQL_6 = string.Empty;
|
||||
|
||||
int count = 0;//记录已经拼接的列数
|
||||
foreach (string sCLQDL in dicWLHQ.Keys)
|
||||
{
|
||||
sSQL_2 += string.Format("XLXSCLQDWL_WLID{0},", sCLQDL.Replace("第", "").Replace("列", ""));
|
||||
sSQL_2 += string.Format("case when d{0}.XLXSBJDWLHQ_WLID is null then isnull(c{0}.XLXSWLHQ_WSJG,0) else d{0}.XLXSBJDWLHQ_WSJG end as WSJG{0},", sCLQDL.Replace("第", "").Replace("列", ""));
|
||||
sSQL_2 += string.Format("case when d{0}.XLXSBJDWLHQ_WLID is null then isnull(c{0}.XLXSWLHQ_HSJG,0) else d{0}.XLXSBJDWLHQ_HSJG end as HSJG{0},", sCLQDL.Replace("第", "").Replace("列", ""));
|
||||
|
||||
|
||||
sSQL_4 += string.Format(" left join XLXSBJDWLHQ d{0} on d{0}.XLXSBJDWLHQ_BJDID='{1}' and d{0}.XLXSBJDWLHQ_WLID=XLXSCLQDWL_WLID{0} ", sCLQDL.Replace("第", "").Replace("列", ""), sBJDID);
|
||||
|
||||
|
||||
sSQL_4 += " left join";
|
||||
sSQL_4 += " (";
|
||||
sSQL_4 += " select XLXSWLHQ_WLID,XLXSWLHQ_WSJG,XLXSWLHQ_HSJG";
|
||||
sSQL_4 += " from XLXSWLHQ,";
|
||||
sSQL_4 += " (";
|
||||
sSQL_4 += " select XLXSWLHQ_WLID as WLID,max(XLXSWLHQ_YXQS)as maxYXQS";
|
||||
sSQL_4 += " from XLXSWLHQ";
|
||||
sSQL_4 += " where XLXSWLHQ_JGBID=' '";
|
||||
sSQL_4 += " and XLXSWLHQ_YXQS<=:pRQ and (XLXSWLHQ_YXQZ>=:pRQ or XLXSWLHQ_YXQZ is null)";
|
||||
sSQL_4 += " group by XLXSWLHQ_WLID";
|
||||
sSQL_4 += string.Format(") a{0} ", sCLQDL.Replace("第", "").Replace("列", ""));
|
||||
sSQL_4 += " where XLXSWLHQ_JGBID=' ' and XLXSWLHQ_WLID=WLID and XLXSWLHQ_YXQS=maxYXQS";
|
||||
sSQL_4 += string.Format(") c{0} on c{0}.XLXSWLHQ_WLID=XLXSCLQDWL_WLID{0} ", sCLQDL.Replace("第", "").Replace("列", ""));
|
||||
|
||||
sSQL_6 += string.Format(" ,V_XLXSCLQDWLHQ_JG{0} = HSJG{0} ", sCLQDL.Replace("第", "").Replace("列", ""));
|
||||
|
||||
count++;
|
||||
|
||||
if (count % 25 == 0 || count == dicWLHQ.Count)
|
||||
{
|
||||
tSql.Clear();
|
||||
tSql.Add(sSQL_1);
|
||||
tSql.Add(sSQL_2);
|
||||
tSql.Add(sSQL_3);
|
||||
tSql.Add(sSQL_4);
|
||||
tSql.Add(sSQL_5);
|
||||
tSql.Add(sSQL_6);
|
||||
tSql.ParamByName("pID").Value = VnewID;
|
||||
tSql.ParamByName("pHSBZ").Value = "Y";
|
||||
tSql.ParamByName("pRQ").Value = sBJRQ;
|
||||
tSql.ParamByName("pJGCZBID").Value = sJGCZBID;
|
||||
tSql.ParamByName("pJGCZBBBID").Value = sJGCZBBBID;
|
||||
tSql.ParamByName("pJGCZBXH").Value = CMISproConvert.StrToFloat(sJGCZBXH);
|
||||
tSql.ParamByName("pDRHH").Value = CMISproConvert.StrToFloat(sDRHH);
|
||||
dberp.ExecSQL(tSql);
|
||||
sSQL_2 = string.Empty;
|
||||
sSQL_4 = string.Empty;
|
||||
sSQL_6 = string.Empty;
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 无税
|
||||
|
||||
sSQL_1 = " merge into V_XLXSCLQDWLHQ tar "
|
||||
+ " using ( "
|
||||
+ " select XLXSCLQDWL_JGCZBID,XLXSCLQDWL_JGCZBBBID,XLXSCLQDWL_JGCZBXH,XLXSCLQDWL_DRHH, ";
|
||||
sSQL_2 = string.Empty;
|
||||
sSQL_3 = " from XLXSCLQDWL ";
|
||||
sSQL_4 = string.Empty;
|
||||
sSQL_5 = " where XLXSCLQDWL_JGCZBID=:pJGCZBID and XLXSCLQDWL_JGCZBBBID=:pJGCZBBBID and XLXSCLQDWL_JGCZBXH=:pJGCZBXH and XLXSCLQDWL_DRHH=:pDRHH "
|
||||
+ " ) sor "
|
||||
+ " on ( "
|
||||
+ " XLXSCLQDWL_JGCZBID=V_XLXSCLQDWLHQ_JGCZBID and XLXSCLQDWL_JGCZBBBID=V_XLXSCLQDWLHQ_JGCZBBBID and XLXSCLQDWL_JGCZBXH=V_XLXSCLQDWLHQ_JGCZBXH and XLXSCLQDWL_DRHH=V_XLXSCLQDWLHQ_DRHH and V_XLXSCLQDWLHQ_HSBZ=:pHSBZ and V_XLXSCLQDWLHQ_ID=:pID "
|
||||
+ " ) when matched then update set V_XLXSCLQDWLHQ_HSBZ=:pHSBZ";
|
||||
sSQL_6 = string.Empty;
|
||||
|
||||
count = 0;//记录已经拼接的列数
|
||||
foreach (string sCLQDL in dicWLHQ.Keys)
|
||||
{
|
||||
sSQL_2 += string.Format("XLXSCLQDWL_WLID{0},", sCLQDL.Replace("第", "").Replace("列", ""));
|
||||
sSQL_2 += string.Format("case when d{0}.XLXSBJDWLHQ_WLID is null then isnull(c{0}.XLXSWLHQ_WSJG,0) else d{0}.XLXSBJDWLHQ_WSJG end as WSJG{0},", sCLQDL.Replace("第", "").Replace("列", ""));
|
||||
sSQL_2 += string.Format("case when d{0}.XLXSBJDWLHQ_WLID is null then isnull(c{0}.XLXSWLHQ_HSJG,0) else d{0}.XLXSBJDWLHQ_HSJG end as HSJG{0}", sCLQDL.Replace("第", "").Replace("列", ""));
|
||||
|
||||
|
||||
sSQL_4 += string.Format(" left join XLXSBJDWLHQ d{0} on d{0}.XLXSBJDWLHQ_BJDID='{1}' and d{0}.XLXSBJDWLHQ_WLID=XLXSCLQDWL_WLID{0} ", sCLQDL.Replace("第", "").Replace("列", ""), sBJDID);
|
||||
|
||||
|
||||
sSQL_4 += " left join";
|
||||
sSQL_4 += " (";
|
||||
sSQL_4 += " select XLXSWLHQ_WLID,XLXSWLHQ_WSJG,XLXSWLHQ_HSJG";
|
||||
sSQL_4 += " from XLXSWLHQ,";
|
||||
sSQL_4 += " (";
|
||||
sSQL_4 += " select XLXSWLHQ_WLID as WLID,max(XLXSWLHQ_YXQS)as maxYXQS";
|
||||
sSQL_4 += " from XLXSWLHQ";
|
||||
sSQL_4 += " where XLXSWLHQ_JGBID=' '";
|
||||
sSQL_4 += " and XLXSWLHQ_YXQS<=:pRQ and (XLXSWLHQ_YXQZ>=:pRQ or XLXSWLHQ_YXQZ is null)";
|
||||
sSQL_4 += " group by XLXSWLHQ_WLID";
|
||||
sSQL_4 += string.Format(") a{0} ", sCLQDL.Replace("第", "").Replace("列", ""));
|
||||
sSQL_4 += " where XLXSWLHQ_JGBID=' ' and XLXSWLHQ_WLID=WLID and XLXSWLHQ_YXQS=maxYXQS";
|
||||
sSQL_4 += string.Format(") c{0} on c{0}.XLXSWLHQ_WLID=XLXSCLQDWL_WLID{0} ", sCLQDL.Replace("第", "").Replace("列", ""));
|
||||
|
||||
sSQL_6 += string.Format(" ,V_XLXSCLQDWLHQ_JG{0} = WSJG{0} ", sCLQDL.Replace("第", "").Replace("列", ""));
|
||||
|
||||
count++;
|
||||
|
||||
if (count % 25 == 0 || count == dicWLHQ.Count)
|
||||
{
|
||||
tSql.Clear();
|
||||
tSql.Add(sSQL_1);
|
||||
tSql.Add(sSQL_2);
|
||||
tSql.Add(sSQL_3);
|
||||
tSql.Add(sSQL_4);
|
||||
tSql.Add(sSQL_5);
|
||||
tSql.Add(sSQL_6);
|
||||
tSql.ParamByName("pID").Value = VnewID;
|
||||
tSql.ParamByName("pHSBZ").Value = "N";
|
||||
tSql.ParamByName("pRQ").Value = sBJRQ;
|
||||
tSql.ParamByName("pJGCZBID").Value = sJGCZBID;
|
||||
tSql.ParamByName("pJGCZBBBID").Value = sJGCZBBBID;
|
||||
tSql.ParamByName("pJGCZBXH").Value = CMISproConvert.StrToFloat(sJGCZBXH);
|
||||
tSql.ParamByName("pDRHH").Value = CMISproConvert.StrToFloat(sDRHH);
|
||||
dberp.ExecSQL(tSql);
|
||||
sSQL_2 = string.Empty;
|
||||
sSQL_4 = string.Empty;
|
||||
sSQL_6 = string.Empty;
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
#endregion
|
||||
|
||||
#endregion
|
||||
|
||||
#region 查询物料行情
|
||||
tSql.Clear();
|
||||
tSql.Add("select ");
|
||||
bool bFirst = true;
|
||||
foreach (string sCLQDL in dicWLHQ.Keys)
|
||||
{
|
||||
if (!bFirst)
|
||||
tSql.Add(",");
|
||||
bFirst = false;
|
||||
|
||||
tSql.Add(string.Format("XLXSCLQDWL_WLID{0},isnull(a.V_XLXSCLQDWLHQ_JG{0},0) as WSJG{0},isnull(b.V_XLXSCLQDWLHQ_JG{0},0) as HSJG{0}", sCLQDL.Replace("第", "").Replace("列", "")));
|
||||
}
|
||||
tSql.Add(" from XLXSCLQDWL");
|
||||
|
||||
tSql.Add(" left join");
|
||||
tSql.Add(" V_XLXSCLQDWLHQ a on ");
|
||||
tSql.Add(" XLXSCLQDWL_JGCZBID=a.V_XLXSCLQDWLHQ_JGCZBID and XLXSCLQDWL_JGCZBBBID=a.V_XLXSCLQDWLHQ_JGCZBBBID and XLXSCLQDWL_JGCZBXH=a.V_XLXSCLQDWLHQ_JGCZBXH and XLXSCLQDWL_DRHH=a.V_XLXSCLQDWLHQ_DRHH and a.V_XLXSCLQDWLHQ_HSBZ='N' and a.V_XLXSCLQDWLHQ_ID =:pID ");
|
||||
tSql.Add(" left join");
|
||||
tSql.Add(" V_XLXSCLQDWLHQ b on ");
|
||||
tSql.Add(" XLXSCLQDWL_JGCZBID=b.V_XLXSCLQDWLHQ_JGCZBID and XLXSCLQDWL_JGCZBBBID=b.V_XLXSCLQDWLHQ_JGCZBBBID and XLXSCLQDWL_JGCZBXH=b.V_XLXSCLQDWLHQ_JGCZBXH and XLXSCLQDWL_DRHH=b.V_XLXSCLQDWLHQ_DRHH and b.V_XLXSCLQDWLHQ_HSBZ='Y' and b.V_XLXSCLQDWLHQ_ID =:pID ");
|
||||
|
||||
tSql.Add(" where XLXSCLQDWL_JGCZBID=:pJGCZBID and XLXSCLQDWL_JGCZBBBID=:pJGCZBBBID and XLXSCLQDWL_JGCZBXH=:pJGCZBXH and XLXSCLQDWL_DRHH=:pDRHH");
|
||||
tSql.ParamByName("pID").Value = VnewID;
|
||||
tSql.ParamByName("pRQ").Value = sBJRQ;
|
||||
tSql.ParamByName("pJGCZBID").Value = sJGCZBID;
|
||||
tSql.ParamByName("pJGCZBBBID").Value = sJGCZBBBID;
|
||||
tSql.ParamByName("pJGCZBXH").Value = sJGCZBXH;
|
||||
tSql.ParamByName("pDRHH").Value = sDRHH;
|
||||
dsWLHQ = dberp.OpenDataSet(tSql);
|
||||
#endregion
|
||||
|
||||
//删除临时表
|
||||
tSql.Clear();
|
||||
tSql.Add("delete from V_XLXSCLQDWLHQ where V_XLXSCLQDWLHQ_ID=:pID ");
|
||||
tSql.ParamByName("pID").Value = VnewID;
|
||||
dberp.ExecSQL(tSql);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
TSQL SQL = new TSQL(dberp);
|
||||
SQL.Clear();
|
||||
|
||||
SQL.Add("select XLJGCZBLM_BJCLID,XLJGCZBLM_CLQDL,XLXSBJCL_BJCLMC,XLXSBJCL_BJHQ,WLXX,CLJG,CLSL,px0,SHL,CLJGBL,CLCB from( ");
|
||||
SQL.Add("select XLJGCZBLM_BJCLID,XLJGCZBLM_CLQDL,bjcl.XLXSBJCL_BJCLMC, case bjcl.XLXSBJCL_BJHQ when '1' then '1|材料行情' else '2|物料行情' end as XLXSBJCL_BJHQ ,");
|
||||
//物料信息
|
||||
|
||||
if (dicCLHQ.Count != 0 || dicWLHQ.Count != 0)
|
||||
{
|
||||
Dictionary<string, string> DicJGYWLID = new Dictionary<string, string>();
|
||||
#region 物料加工原物料ID
|
||||
TSQL sql = new TSQL(dberp);
|
||||
sql.Clear();
|
||||
sql.Add(" select XLXSBJCLWL_WLID,XLXSBJCLWL_JGYWLID ");
|
||||
sql.Add(" from XLXSBJCLWL ");
|
||||
sql.Add(" where XLXSBJCLWL_JGYWLID <> '-' ");
|
||||
DataSet dsWLJGYWL = dberp.OpenDataSet(sql);
|
||||
if (dsWLJGYWL.Tables[0].Rows.Count > 0)
|
||||
{
|
||||
foreach (DataRow trow in dsWLJGYWL.Tables[0].Rows)
|
||||
{
|
||||
string sWLID = trow["XLXSBJCLWL_WLID"].ToString().Trim();
|
||||
string sJGYWLID = trow["XLXSBJCLWL_JGYWLID"].ToString().Trim();
|
||||
if (!DicJGYWLID.ContainsKey(sWLID))
|
||||
{
|
||||
DicJGYWLID.Add(sWLID, sJGYWLID);
|
||||
}
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
SQL.Add(" case ");
|
||||
foreach (string sCLQDL in dicCLHQ.Keys)
|
||||
{
|
||||
SQL.Add(string.Format(" when XLJGCZBLM_CLQDL='{0}' then ' ' ", sCLQDL));
|
||||
}
|
||||
foreach (string sCLQDL in dicWLHQ.Keys)
|
||||
{
|
||||
if (dsWLHQ != null && dsWLHQ.Tables[0].Rows.Count > 0)
|
||||
{
|
||||
string sWLID = dsWLHQ.Tables[0].Rows[0]["XLXSCLQDWL_WLID" + sCLQDL.Replace("第", "").Replace("列", "")].ToString().Trim();
|
||||
if (DicJGYWLID.ContainsKey(sWLID))
|
||||
sWLID = DicJGYWLID[sWLID];
|
||||
SQL.Add(string.Format(" when XLJGCZBLM_CLQDL='{0}' then '{1}' ", sCLQDL, GetWLXX(sWLID)));
|
||||
}
|
||||
else
|
||||
SQL.Add(string.Format(" when XLJGCZBLM_CLQDL='{0}' then ' ' ", sCLQDL));
|
||||
}
|
||||
SQL.Add(" end as WLXX, ");
|
||||
}
|
||||
else
|
||||
{
|
||||
SQL.Add(" ' ' as WLXX, ");
|
||||
}
|
||||
|
||||
//材料价格
|
||||
if (dicCLHQ.Count != 0 || dicWLHQ.Count != 0)
|
||||
{
|
||||
SQL.Add(" case ");
|
||||
foreach (string sCLQDL in dicCLHQ.Keys)
|
||||
{
|
||||
if (bHSBZ)
|
||||
SQL.Add(string.Format(" when XLJGCZBLM_CLQDL='{0}' then isnull(HSJG,0.0) ", sCLQDL));
|
||||
else
|
||||
SQL.Add(string.Format(" when XLJGCZBLM_CLQDL='{0}' then isnull(CLJG,0.0) ", sCLQDL));
|
||||
}
|
||||
foreach (string sCLQDL in dicWLHQ.Keys)
|
||||
{
|
||||
if (dsWLHQ != null && dsWLHQ.Tables[0].Rows.Count > 0)
|
||||
{
|
||||
if (bHSBZ)
|
||||
SQL.Add(string.Format(" when XLJGCZBLM_CLQDL='{0}' then {1} ", sCLQDL, dsWLHQ.Tables[0].Rows[0]["HSJG" + sCLQDL.Replace("第", "").Replace("列", "")].ToString().Trim()));
|
||||
else
|
||||
SQL.Add(string.Format(" when XLJGCZBLM_CLQDL='{0}' then {1} ", sCLQDL, dsWLHQ.Tables[0].Rows[0]["WSJG" + sCLQDL.Replace("第", "").Replace("列", "")].ToString().Trim()));
|
||||
}
|
||||
else
|
||||
{
|
||||
SQL.Add(string.Format(" when XLJGCZBLM_CLQDL='{0}' then 0.0 ", sCLQDL));
|
||||
}
|
||||
}
|
||||
SQL.Add(" end as CLJG, ");
|
||||
}
|
||||
else
|
||||
{
|
||||
SQL.Add(" 0 as CLJG, ");
|
||||
}
|
||||
//材料数量
|
||||
if (dicCLHQ.Count != 0 || dicWLHQ.Count != 0)
|
||||
{
|
||||
SQL.Add(" case ");
|
||||
foreach (string sCLQDL in dicCLHQ.Keys)
|
||||
{
|
||||
SQL.Add(string.Format(" when XLJGCZBLM_CLQDL='{0}' then XLXSCLQD_SL{1} ", sCLQDL, sCLQDL.Replace("第", "").Replace("列", "")));
|
||||
}
|
||||
foreach (string sCLQDL in dicWLHQ.Keys)
|
||||
{
|
||||
SQL.Add(string.Format(" when XLJGCZBLM_CLQDL='{0}' then XLXSCLQD_SL{1} ", sCLQDL, sCLQDL.Replace("第", "").Replace("列", "")));
|
||||
}
|
||||
SQL.Add(" end as CLSL, ");
|
||||
}
|
||||
else
|
||||
{
|
||||
SQL.Add(" 0 as CLSL, ");
|
||||
}
|
||||
|
||||
if (dicCLHQ.Count != 0 || dicWLHQ.Count != 0)
|
||||
{
|
||||
SQL.Add(" case ");
|
||||
foreach (string sCLQDL in dicCLHQ.Keys)
|
||||
{
|
||||
SQL.Add(string.Format(" when XLJGCZBLM_CLQDL='{0}' then ( case when XLXSCLQD_SL{1} = 0 then 0 else 1 end) ", sCLQDL, sCLQDL.Replace("第", "").Replace("列", "")));
|
||||
}
|
||||
foreach (string sCLQDL in dicWLHQ.Keys)
|
||||
{
|
||||
SQL.Add(string.Format(" when XLJGCZBLM_CLQDL='{0}' then ( case when XLXSCLQD_SL{1} = 0 then 0 else 1 end) ", sCLQDL, sCLQDL.Replace("第", "").Replace("列", "")));
|
||||
}
|
||||
SQL.Add(" end as px0, ");
|
||||
}
|
||||
else
|
||||
{
|
||||
SQL.Add(" 0 as px0, ");
|
||||
}
|
||||
|
||||
|
||||
//损耗率
|
||||
if (dicCLHQ.Count != 0 || dicWLHQ.Count != 0)
|
||||
{
|
||||
SQL.Add(" case ");
|
||||
foreach (string sCLQDL in dicCLHQ.Keys)
|
||||
{
|
||||
SQL.Add(string.Format(" when XLJGCZBLM_CLQDL='{0}' then XLXSCLQD_SHL{1} ", sCLQDL, sCLQDL.Replace("第", "").Replace("列", "")));
|
||||
}
|
||||
foreach (string sCLQDL in dicWLHQ.Keys)
|
||||
{
|
||||
SQL.Add(string.Format(" when XLJGCZBLM_CLQDL='{0}' then XLXSCLQD_SHL{1} ", sCLQDL, sCLQDL.Replace("第", "").Replace("列", "")));
|
||||
}
|
||||
SQL.Add(" end as SHL, ");
|
||||
}
|
||||
else
|
||||
{
|
||||
SQL.Add(" 0 as SHL, ");
|
||||
}
|
||||
//材料用量比例
|
||||
if (dicCLHQ.Count != 0 || dicWLHQ.Count != 0)
|
||||
{
|
||||
SQL.Add(" case ");
|
||||
foreach (string sCLQDL in dicCLHQ.Keys)
|
||||
{
|
||||
SQL.Add(string.Format(" when XLJGCZBLM_CLQDL='{0}' then XLXSCLQD_CLJGBL{1} ", sCLQDL, sCLQDL.Replace("第", "").Replace("列", "")));
|
||||
}
|
||||
foreach (string sCLQDL in dicWLHQ.Keys)
|
||||
{
|
||||
SQL.Add(string.Format(" when XLJGCZBLM_CLQDL='{0}' then XLXSCLQD_CLJGBL{1} ", sCLQDL, sCLQDL.Replace("第", "").Replace("列", "")));
|
||||
}
|
||||
SQL.Add(" end as CLJGBL, ");
|
||||
}
|
||||
else
|
||||
{
|
||||
SQL.Add(" 0 as CLJGBL, ");
|
||||
}
|
||||
//材料成本
|
||||
if (dicCLHQ.Count != 0 || dicWLHQ.Count != 0)
|
||||
{
|
||||
SQL.Add(" case ");
|
||||
if (sJSBLFS.Equals("C1"))//C1|进一法(材料价各分项进一)
|
||||
{
|
||||
foreach (string sCLQDL in dicCLHQ.Keys)
|
||||
{
|
||||
if (bHSBZ)
|
||||
SQL.Add(string.Format(" when XLJGCZBLM_CLQDL='{0}' then CEILING(RoundFix(isnull(HSJG,0.0)*XLXSCLQD_SL{1}*(1+XLXSCLQD_SHL{1}/100)*XLXSCLQD_CLJGBL{1}*{2},8))/{2} ", sCLQDL, sCLQDL.Replace("第", "").Replace("列", ""), Math.Pow(10.0, iXSWS)));
|
||||
else
|
||||
SQL.Add(string.Format(" when XLJGCZBLM_CLQDL='{0}' then CEILING(RoundFix(isnull(CLJG,0.0)*XLXSCLQD_SL{1}*(1+XLXSCLQD_SHL{1}/100)*XLXSCLQD_CLJGBL{1}*{2},8))/{2} ", sCLQDL, sCLQDL.Replace("第", "").Replace("列", ""), Math.Pow(10.0, iXSWS)));
|
||||
}
|
||||
foreach (string sCLQDL in dicWLHQ.Keys)
|
||||
{
|
||||
if (dsWLHQ != null && dsWLHQ.Tables[0].Rows.Count > 0)
|
||||
{
|
||||
if (bHSBZ)
|
||||
SQL.Add(string.Format(" when XLJGCZBLM_CLQDL='{0}' then CEILING(RoundFix({2}*XLXSCLQD_SL{1}*(1+XLXSCLQD_SHL{1}/100)*XLXSCLQD_CLJGBL{1}*{3},8))/{3} ", sCLQDL, sCLQDL.Replace("第", "").Replace("列", ""),
|
||||
dsWLHQ.Tables[0].Rows[0]["HSJG" + sCLQDL.Replace("第", "").Replace("列", "")].ToString().Trim(), Math.Pow(10.0, iXSWS)));
|
||||
else
|
||||
SQL.Add(string.Format(" when XLJGCZBLM_CLQDL='{0}' then CEILING(RoundFix({2}*XLXSCLQD_SL{1}*(1+XLXSCLQD_SHL{1}/100)*XLXSCLQD_CLJGBL{1}*{3},8))/{3} ", sCLQDL, sCLQDL.Replace("第", "").Replace("列", ""),
|
||||
dsWLHQ.Tables[0].Rows[0]["WSJG" + sCLQDL.Replace("第", "").Replace("列", "")].ToString().Trim(), Math.Pow(10.0, iXSWS)));
|
||||
}
|
||||
else
|
||||
{
|
||||
SQL.Add(string.Format(" when XLJGCZBLM_CLQDL='{0}' then 0.0 ", sCLQDL));
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
foreach (string sCLQDL in dicCLHQ.Keys)
|
||||
{
|
||||
if (bHSBZ)
|
||||
SQL.Add(string.Format(" when XLJGCZBLM_CLQDL='{0}' then isnull(HSJG,0.0)*XLXSCLQD_SL{1}*(1+XLXSCLQD_SHL{1}/100)*XLXSCLQD_CLJGBL{1} ", sCLQDL, sCLQDL.Replace("第", "").Replace("列", "")));
|
||||
else
|
||||
SQL.Add(string.Format(" when XLJGCZBLM_CLQDL='{0}' then isnull(CLJG,0.0)*XLXSCLQD_SL{1}*(1+XLXSCLQD_SHL{1}/100)*XLXSCLQD_CLJGBL{1} ", sCLQDL, sCLQDL.Replace("第", "").Replace("列", "")));
|
||||
}
|
||||
foreach (string sCLQDL in dicWLHQ.Keys)
|
||||
{
|
||||
if (dsWLHQ != null && dsWLHQ.Tables[0].Rows.Count > 0)
|
||||
{
|
||||
if (bHSBZ)
|
||||
SQL.Add(string.Format(" when XLJGCZBLM_CLQDL='{0}' then {2}*XLXSCLQD_SL{1}*(1+XLXSCLQD_SHL{1}/100)*XLXSCLQD_CLJGBL{1} ", sCLQDL, sCLQDL.Replace("第", "").Replace("列", ""),
|
||||
dsWLHQ.Tables[0].Rows[0]["HSJG" + sCLQDL.Replace("第", "").Replace("列", "")].ToString().Trim()));
|
||||
else
|
||||
SQL.Add(string.Format(" when XLJGCZBLM_CLQDL='{0}' then {2}*XLXSCLQD_SL{1}*(1+XLXSCLQD_SHL{1}/100)*XLXSCLQD_CLJGBL{1} ", sCLQDL, sCLQDL.Replace("第", "").Replace("列", ""),
|
||||
dsWLHQ.Tables[0].Rows[0]["WSJG" + sCLQDL.Replace("第", "").Replace("列", "")].ToString().Trim()));
|
||||
}
|
||||
else
|
||||
{
|
||||
SQL.Add(string.Format(" when XLJGCZBLM_CLQDL='{0}' then 0.0 ", sCLQDL));
|
||||
}
|
||||
}
|
||||
}
|
||||
SQL.Add(" end as CLCB ");
|
||||
}
|
||||
else
|
||||
{
|
||||
SQL.Add(" 0 as CLCB ");
|
||||
}
|
||||
|
||||
SQL.Add(" from XLXSCLQD, ");
|
||||
SQL.Add(" XLJGCZBLM");
|
||||
SQL.Add(" left join XLXSBJCL bjcl on bjcl.XLXSBJCL_BJCLID=XLJGCZBLM_BJCLID");
|
||||
//SQL.Add(" left join XLJGCZBML on XLJGCZBML_JGCZBID = XLJGCZBLM_JGCZBID ");
|
||||
SQL.Add(" left join ");
|
||||
SQL.Add(" (");
|
||||
if (!XLBJDUtils.IsJGEJGB(sJGBID))//表价实时计算价格表
|
||||
{
|
||||
if (sBJDHQLY.Equals("1"))
|
||||
{
|
||||
SQL.Add(XLBJD_CLHQTZ.GetBJDHQSql().ToString());
|
||||
}
|
||||
else
|
||||
{
|
||||
SQL.Add(XLBJD_CLHQTZ.GetBJRHQSql().ToString());
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
SQL.Add(XLBJD_CLHQTZ.GetJGEHQSql(bHSBZ, sTBJCLID, sLBJCLID, sTJ, sLJ).ToString());
|
||||
}
|
||||
SQL.Add(" ) curbjdhq on curbjdhq.XLXSBJCL_BJCLID=bjcl.XLXSBJCL_BJCLID ");
|
||||
|
||||
SQL.Add("where XLJGCZBLM_JGCZBID=XLXSCLQD_JGCZBID and XLXSCLQD_JGCZBBBID = XLJGCZBLM_JGCZBBBID and isnull(XLJGCZBLM_CLQDL,' ')<>' ' ");
|
||||
SQL.Add(" and XLXSCLQD_XLXHID=:pXLXHID and XLXSCLQD_XLGGID=:pXLGGID and XLXSCLQD_XLBZID=:pXLBZID and XLXSCLQD_DYDJID=:pDYDJID ");
|
||||
SQL.Add(" and XLXSCLQD_WPID='ZZZZ'");
|
||||
SQL.Add(" ) M where CLSL>0 ");
|
||||
|
||||
SQL.Add(" order by px0 desc,XLJGCZBLM_CLQDL,XLJGCZBLM_BJCLID ");
|
||||
|
||||
SQL.ParamByName("pBJDID").Value = sBJDID;
|
||||
SQL.ParamByName("pBJRQ").Value = sBJRQ;
|
||||
SQL.ParamByName("pBJFLID").Value = sBJFLID;
|
||||
SQL.ParamByName("pJGBID").Value = sJGBID;
|
||||
|
||||
SQL.ParamByName("pXLXHID").Value = sXLXHID;
|
||||
SQL.ParamByName("pXLGGID").Value = sXLGGID;
|
||||
SQL.ParamByName("pXLBZID").Value = sXLBZID;
|
||||
SQL.ParamByName("pDYDJID").Value = sDYDJID;
|
||||
DataSet dsResult = dberp.OpenDataSet(SQL);
|
||||
|
||||
txtCLCB.Value = 0;
|
||||
|
||||
for (int i = 0; i < dsResult.Tables[0].Rows.Count; i++)
|
||||
{
|
||||
txtCLCB.Value += CMISproConvert.StrToFloat(dsResult.Tables[0].Rows[i]["CLCB"].ToString());
|
||||
}
|
||||
string sJGBTJYS = XLBJDUtils.GetXLXSJGBXXByJGBID(sJGBID).XLXSJGB_TJYS;
|
||||
if (sJSBLFS.Equals("C1") || (sJSBLFS.Equals("C2") && sJGBTJYS == "3"))//C1|进一法(材料价各分项进一)、C2|进一法(材料价汇总进一)
|
||||
{
|
||||
txtCLCB.Value = Math.Ceiling(txtCLCB.Value * Math.Pow(10.0, iXSWS)) / Math.Pow(10.0, iXSWS);
|
||||
}
|
||||
if (bExistedSYJGBMX && !bHasCLQD && (sJGBTJYS == "1" || sJGBTJYS == "3") && (sCPLJGS == "2" || sCPLJGS == "4"))
|
||||
{
|
||||
|
||||
if (sCPLJGS == "4")
|
||||
{
|
||||
txtCLCB.Value *= dCLCBYSJDZ;
|
||||
}
|
||||
else
|
||||
{
|
||||
txtCLCB.Value *= dYSJDZ;
|
||||
}
|
||||
}
|
||||
//无材料清单且料价计算方式为3|按报价单料价加点对照表计算
|
||||
if (!bHasCLQD && (sCPLJGS == "3"))
|
||||
{
|
||||
txtCLCB.Value *= dYSJDZ;
|
||||
}
|
||||
return dsResult;
|
||||
}
|
||||
|
||||
private string GetWLXX(string sWLID)
|
||||
{
|
||||
TDatabase dberp = TContextDatabases.GetDatabase("DBERP");
|
||||
TSQL sql = new TSQL(dberp);
|
||||
sql.Add("select WL_MC,WL_GG from WL where WL_WLID=:pWLID");
|
||||
sql.ParamByName("pWLID").Value = sWLID.Trim();
|
||||
DataSet ds = dberp.OpenDataSet(sql);
|
||||
if (ds.Tables[0].Rows.Count > 0)
|
||||
return sWLID.Trim() + "|" + ds.Tables[0].Rows[0]["WL_MC"].ToString().Trim() + "|" + ds.Tables[0].Rows[0]["WL_GG"].ToString().Trim();
|
||||
else
|
||||
return sWLID.Trim();
|
||||
}
|
||||
|
||||
private string GetBJCP(string sXLXHID, string sXLGGID, string sXLBZID, string sDYDJID)
|
||||
{
|
||||
string sRetValue = "";
|
||||
|
||||
if (!sXLXHID.Equals(""))
|
||||
{
|
||||
sRetValue = sRetValue + " " + sXLXHID;
|
||||
}
|
||||
|
||||
if (!sXLGGID.Equals(""))
|
||||
{
|
||||
sRetValue = sRetValue + " " + sXLGGID;
|
||||
}
|
||||
|
||||
if (!sXLBZID.Equals(""))
|
||||
{
|
||||
sRetValue = sRetValue + " " + sXLBZID;
|
||||
}
|
||||
|
||||
if (!sDYDJID.Equals(""))
|
||||
{
|
||||
sRetValue = sRetValue + " " + sDYDJID;
|
||||
}
|
||||
sRetValue = sRetValue.Trim();
|
||||
return sRetValue;
|
||||
}
|
||||
|
||||
private string GetXLBZXX(string sXLBZID)
|
||||
{
|
||||
TDatabase dberp = TContextDatabases.GetDatabase("DBERP");
|
||||
TSQL SQL = new TSQL(dberp);
|
||||
SQL.Clear();
|
||||
SQL.Add(" select rtrim(XLBZ_XLBZID)||'|'||rtrim(XLBZ_XLBZLXMC) as XLBZ_XLBZID from XLBZ where XLBZ_XLBZID= :pXLBZID ");
|
||||
SQL.ParamByName("pXLBZID").Value = sXLBZID;
|
||||
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 strPadRight(string s, int x)
|
||||
{
|
||||
string str = s;
|
||||
if (str.Split('.').Length == 2)
|
||||
{
|
||||
str = str.Split('.')[0] + "." + str.Split('.')[1].PadRight(x, '0');
|
||||
}
|
||||
else
|
||||
{
|
||||
string tmp = "0";
|
||||
if (x > 0)
|
||||
{
|
||||
tmp = tmp.PadRight(x, '0');
|
||||
str = str + "." + tmp;
|
||||
}
|
||||
}
|
||||
return str;
|
||||
}
|
||||
|
||||
private bool HasCLQD(string sXLXHID, string sXLGGID, string sXLBZID, string sDYDJID)
|
||||
{
|
||||
if (CMISproDataBase.ExistsRecord("DBERP", string.Format("select 1 from XLXSCLQD where XLXSCLQD_XLXHID='{0}' and XLXSCLQD_XLGGID='{1}' and XLXSCLQD_XLBZID='{2}' and XLXSCLQD_DYDJID='{3}' and XLXSCLQD_WPID='ZZZZ' ", sXLXHID, sXLGGID, sXLBZID, sDYDJID)))
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region 按钮事件
|
||||
|
||||
protected void btnTZJG_Click(object sender, EventArgs e)
|
||||
{
|
||||
TPageParams pageParams = new TPageParams();
|
||||
pageParams.UrlPath = "XLBJD_CLHQTZList.aspx";
|
||||
pageParams.Title = "调整材料行情" + ":" + txtBJCLID.Value.Trim() + "|" + txtBJCLMC.Value.Trim() + (txtWLXX.Value.Trim().Equals("") ? "" : "【" + txtWLXX.Value.Trim() + "】");
|
||||
pageParams.AddString("BJFLID", PageParam.GetRTrimString("BJFLID"));
|
||||
pageParams.AddString("BJDID", PageParam.GetRTrimString("BJDID"));
|
||||
pageParams.AddString("BJRQ", PageParam.GetRTrimString("BJRQ"));
|
||||
pageParams.AddString("JGBID", PageParam.GetRTrimString("JGBID"));
|
||||
pageParams.AddString("JCLLX", PageParam.GetRTrimString("JCLLX"));
|
||||
pageParams.AddString("LJJCLLX", PageParam.GetRTrimString("LJJCLLX"));
|
||||
pageParams.AddString("BJDHQLY", PageParam.GetRTrimString("BJDHQLY"));
|
||||
pageParams.AddString("BJLY", PageParam.GetRTrimString("BJLY"));
|
||||
pageParams.AddString("ZDXJJCLLX", PageParam.GetRTrimString("ZDXJJCLLX"));
|
||||
pageParams.AddString("btnRefreshCID", btnRefreshCLHQTZ.ClientID);
|
||||
|
||||
pageParams.AddString("HSBZ", PageParam.GetRTrimString("HSBZ"));
|
||||
pageParams.AddString("TBJCLID", PageParam.GetRTrimString("TBJCLID"));
|
||||
pageParams.AddString("LBJCLID", PageParam.GetRTrimString("LBJCLID"));
|
||||
pageParams.AddString("TJ", PageParam.GetRTrimString("TJ"));
|
||||
pageParams.AddString("LJ", PageParam.GetRTrimString("LJ"));
|
||||
pageParams.AddString("CPBJMRXSWS", PageParam.GetRTrimString("CPBJMRXSWS"));
|
||||
|
||||
pageParams.AddString("JYF", PageParam.GetRTrimString("JYF"));//计运费
|
||||
pageParams.AddString("YSJDID", PageParam.GetRTrimString("YSJDID"));//运输节点
|
||||
pageParams.AddString("GYSID", PageParam.GetRTrimString("GYSID"));//运输单位
|
||||
pageParams.AddString("YFWLID", PageParam.GetRTrimString("YFWLID"));//运费物料
|
||||
pageParams.AddString("BJHYF", PageParam.GetRTrimString("BJHYF"));//报价含运费
|
||||
|
||||
pageParams.AddString("BJCLID", txtBJCLID.Value.Trim());
|
||||
OpenModuleDialog(100860174, pageParams);
|
||||
}
|
||||
|
||||
protected void btnRefreshCLHQTZ_Click(object sender, EventArgs e)
|
||||
{
|
||||
int iIndex = grdContentGrid.SelectedIndex;
|
||||
moduleGV_PageIndexChanging(null, null);
|
||||
grdContentGrid.SelectedIndex = iIndex;
|
||||
}
|
||||
|
||||
protected void lblBJCP_Click(object sender, EventArgs e)
|
||||
{
|
||||
string sJGCZBIDFromJGCZBML = "";
|
||||
string sJGCZBBBIDFromJGCZBML = "";
|
||||
string sXLXHID = PageParam.GetRTrimString("XLXHID");
|
||||
string sXLGGID = PageParam.GetRTrimString("XLGGID");
|
||||
string sXLBZID = PageParam.GetRTrimString("XLBZID");
|
||||
string sDYDJID = PageParam.GetRTrimString("DYDJID");
|
||||
int iSYXH = 0;
|
||||
double dYSJDZ = 1;
|
||||
double dCLCBYSJDZ = 1;
|
||||
string sJGBID = PageParam.GetRTrimString("JGBID");
|
||||
if (XLBJDUtils.ExistedSYJGBMX(sXLXHID, sXLGGID, sXLBZID, sDYDJID, sJGBID, ref iSYXH, ref dYSJDZ, ref dCLCBYSJDZ))
|
||||
{
|
||||
XLBJDUtils.GetJGBMXBySYXH(sJGBID, iSYXH, ref sXLXHID, ref sXLGGID, ref sXLBZID, ref sDYDJID);
|
||||
}
|
||||
TDatabase dberp = TContextDatabases.GetDatabase("DBERP");
|
||||
TSQL sql = new TSQL(dberp);
|
||||
sql.Clear();
|
||||
sql.Add(" select XLXSCLQD_JGCZBID as JGCZBID, XLXSCLQD_JGCZBBBID as JGCZBBBID");
|
||||
sql.Add(" from XLXSCLQD where 1=1 and XLXSCLQD_WPID ='ZZZZ' ");
|
||||
sql.Add(" and XLXSCLQD_XLXHID = :pXLXHID ");
|
||||
sql.Add(" and XLXSCLQD_XLGGID = :pXLGGID ");
|
||||
sql.Add(" and XLXSCLQD_XLBZID = :pXLBZID ");
|
||||
sql.Add(" and XLXSCLQD_DYDJID = :pDYDJID ");
|
||||
sql.ParamByName("pXLXHID").Value = sXLXHID;
|
||||
sql.ParamByName("pXLGGID").Value = sXLGGID;
|
||||
sql.ParamByName("pXLBZID").Value = sXLBZID;
|
||||
sql.ParamByName("pDYDJID").Value = sDYDJID.Equals("") ? " " : sDYDJID;
|
||||
DataSet ds = dberp.OpenDataSet(sql);
|
||||
if (ds.Tables[0].Rows.Count > 0)
|
||||
{
|
||||
sJGCZBBBIDFromJGCZBML = ds.Tables[0].Rows[0]["JGCZBBBID"].ToString().Trim();
|
||||
sJGCZBIDFromJGCZBML = ds.Tables[0].Rows[0]["JGCZBID"].ToString().Trim() + "|" + sJGCZBBBIDFromJGCZBML;
|
||||
}
|
||||
else
|
||||
{
|
||||
ShowMessage("未查询到结构尺重表信息,请在102579008|报价材料用量模块检查该记录是否补充完整并流转结束!");
|
||||
return;
|
||||
}
|
||||
|
||||
TPageParams tpp = new TPageParams();
|
||||
tpp.UrlPath = "../Components/N_XLBJCL/CLQDList.aspx";
|
||||
tpp.CallAction = TPageCallAction.pcaBrowse;
|
||||
tpp.AddString("JGCZBIDFromJGCZBML", sJGCZBIDFromJGCZBML);
|
||||
tpp.AddString("JGCZBBBIDFromJGCZBML", sJGCZBBBIDFromJGCZBML);
|
||||
OpenFuncModuleDialog(102579001, tpp);
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
Generated
+151
@@ -0,0 +1,151 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// 此代码由工具生成。
|
||||
// 运行时版本:2.0.50727.9179
|
||||
//
|
||||
// 对此文件的更改可能会导致不正确的行为,并且如果
|
||||
// 重新生成代码,这些更改将会丢失。
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace GThinking.U20261363_N_XLXSBJ {
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// XLBJD_CBZSList 类。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的类。
|
||||
/// </remarks>
|
||||
public partial class XLBJD_CBZSList {
|
||||
|
||||
/// <summary>
|
||||
/// AddTable 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Table AddTable;
|
||||
|
||||
/// <summary>
|
||||
/// btnTZJG 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtButton btnTZJG;
|
||||
|
||||
/// <summary>
|
||||
/// btnRefreshCLHQTZ 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtButton btnRefreshCLHQTZ;
|
||||
|
||||
/// <summary>
|
||||
/// lblBJCP 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.LinkButton lblBJCP;
|
||||
|
||||
/// <summary>
|
||||
/// lblZHJD 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtLabel lblZHJD;
|
||||
|
||||
/// <summary>
|
||||
/// lblYSCP 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtLabel lblYSCP;
|
||||
|
||||
/// <summary>
|
||||
/// lblCLCB 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtLabel lblCLCB;
|
||||
|
||||
/// <summary>
|
||||
/// txtCLCB 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtNumTextBox txtCLCB;
|
||||
|
||||
/// <summary>
|
||||
/// lblDW 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtLabel lblDW;
|
||||
|
||||
/// <summary>
|
||||
/// grdContentGrid 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtGridView grdContentGrid;
|
||||
|
||||
/// <summary>
|
||||
/// txtBJCLID 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.HiddenField txtBJCLID;
|
||||
|
||||
/// <summary>
|
||||
/// txtBJCLMC 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.HiddenField txtBJCLMC;
|
||||
|
||||
/// <summary>
|
||||
/// txtWLXX 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.HiddenField txtWLXX;
|
||||
|
||||
/// <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,94 @@
|
||||
<%@ Page Language="C#" AutoEventWireup="True" Codebehind="XLBJD_CLCBInfo.aspx.cs" Inherits="GThinking.U20261363_N_XLXSBJ.XLBJD_CLCBInfo"
|
||||
MasterPageFile="~/N_MODEL/Page/MasterSingleGrid.Master" Title="线缆销售报价单表价" %>
|
||||
|
||||
<%@ MasterType VirtualPath="~/N_MODEL/Page/MasterSingleGrid.Master" %>
|
||||
<asp:Content ID="ContentButton" ContentPlaceHolderID="CPHButton" runat="server">
|
||||
<asp:Table ID="CustomButton" runat="server" CellPadding="0" CellSpacing="0">
|
||||
<asp:TableRow>
|
||||
<asp:TableCell>
|
||||
<gtc:gtToolButton ID="btnHSJJ" Caption="含税基价" ShowCaption="true" runat="server" Width="70px"
|
||||
Height="19px" OnClick="btnHSJJ_Click">
|
||||
</gtc:gtToolButton>
|
||||
</asp:TableCell>
|
||||
<asp:TableCell>
|
||||
<gtc:gtToolButton ID="btnSJDC" runat="server" Caption="导出数据" OnClick="btnSJDC_Click"
|
||||
ShowCaption="True" Width="70px" Height="19px" />
|
||||
</asp:TableCell>
|
||||
<asp:TableCell>
|
||||
<gtc:gtToolButton ID="btnHQDC" runat="server" Caption="导出材料成本" OnClick="btnHQDC_Click"
|
||||
ShowCaption="True" Width="94px" Height="19px" />
|
||||
</asp:TableCell>
|
||||
<asp:TableCell BorderWidth="0px" BorderStyle="NotSet">
|
||||
<gtc:gtToolButton ID="btnPLTJ" BorderWidth="0px" BorderStyle="NotSet" Width="82px"
|
||||
ButtonType="DropDown" ShowCaption="True" Caption="批量调价" runat="server" OnMenuItemClick="btnPLTJ_MenuItemClick"
|
||||
OnDropDown="btnPLTJ_OnDropDown" />
|
||||
</asp:TableCell>
|
||||
<asp:TableCell>
|
||||
<gtc:gtButton Style="display: none" ID="btnRefresh" OnClick="btnRefresh_Click"
|
||||
runat="server" EnableTheming="false"></gtc:gtButton>
|
||||
</asp:TableCell>
|
||||
<asp:TableCell>
|
||||
<gtc:gtButton Style="display: none" ID="btnRefresh2" OnClick="btnRefresh2_Click"
|
||||
runat="server" EnableTheming="false"></gtc:gtButton>
|
||||
</asp:TableCell>
|
||||
|
||||
</asp:TableRow>
|
||||
</asp:Table>
|
||||
</asp:Content>
|
||||
<asp:Content ID="ContentForm" ContentPlaceHolderID="cphForm" runat="server">
|
||||
<gtc:gtGridView ID="grdXLBJDMX" runat="server" AutoGenerateColumns="False" CheckBox="true" EnableViewState="false" MaintainScrollPositionXOnPostback="true" MaintainScrollPositionYOnPostback="true" >
|
||||
<FixRowCol TableHeight="100%" TableWidth="100%" />
|
||||
<Columns>
|
||||
<asp:BoundField DataField="XLXSBJDMX_XSSX" HeaderText="显示序号">
|
||||
<itemstyle width="50px" horizontalalign="right"></itemstyle>
|
||||
<headerstyle width="50px"></headerstyle>
|
||||
</asp:BoundField>
|
||||
<asp:BoundField DataField="XLXSBJDMX_XLXHID" HeaderText="型号">
|
||||
<itemstyle width="100px"></itemstyle>
|
||||
<headerstyle width="100px"></headerstyle>
|
||||
</asp:BoundField>
|
||||
<asp:BoundField DataField="XLXSBJDMX_XLGGID" HeaderText="规格">
|
||||
<itemstyle width="100px"></itemstyle>
|
||||
<headerstyle width="100px"></headerstyle>
|
||||
</asp:BoundField>
|
||||
<asp:BoundField DataField="XLBZ" HeaderText="标准">
|
||||
<itemstyle width="50px"></itemstyle>
|
||||
<headerstyle width="50px"></headerstyle>
|
||||
</asp:BoundField>
|
||||
<asp:BoundField DataField="XLXSBJDMX_DYDJID" HeaderText="电压等级">
|
||||
<itemstyle width="60px"></itemstyle>
|
||||
<headerstyle width="60px"></headerstyle>
|
||||
</asp:BoundField>
|
||||
<asp:BoundField DataField="XLYS" HeaderText="颜色">
|
||||
<itemstyle width="40px"></itemstyle>
|
||||
<headerstyle width="40px"></headerstyle>
|
||||
</asp:BoundField>
|
||||
<asp:BoundField DataField="XLXSBJDMX_BJCP" HeaderText="报价产品">
|
||||
<itemstyle width="200px"></itemstyle>
|
||||
<headerstyle width="200px"></headerstyle>
|
||||
</asp:BoundField>
|
||||
</Columns>
|
||||
<ColumnsEx>
|
||||
<gtc:gtGridView_Column DataField="XLXSBJDMX_XSSX" EditType="etnumber" NumberDecimalPlace="0" ShowHint="true">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="XLXSBJDMX_XLXHID" EditType="etstring" ShowHint="true">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="XLXSBJDMX_XLGGID" EditType="etString" ShowHint="true">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="XLBZ" EditType="etString" ShowHint="true">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="XLXSBJDMX_DYDJID" EditType="etString" ShowHint="true">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="XLYS" EditType="etString" ShowHint="true">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="XLXSBJDMX_BJCP" EditType="etString" ShowHint="true">
|
||||
</gtc:gtGridView_Column>
|
||||
</ColumnsEx>
|
||||
</gtc:gtGridView>
|
||||
<asp:HiddenField ID="txtPLSZYZList" runat="server" />
|
||||
<asp:HiddenField ID="txtTZZ" runat="server" />
|
||||
<asp:HiddenField ID="txtPLSZAll" runat="server" />
|
||||
</asp:Content>
|
||||
<asp:Content ID="ContentSync" ContentPlaceHolderID="CPHSync" runat="server">
|
||||
</asp:Content>
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Generated
+133
@@ -0,0 +1,133 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// 此代码由工具生成。
|
||||
// 运行时版本:2.0.50727.9179
|
||||
//
|
||||
// 对此文件的更改可能会导致不正确的行为,并且如果
|
||||
// 重新生成代码,这些更改将会丢失。
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace GThinking.U20261363_N_XLXSBJ {
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// XLBJD_CLCBInfo 类。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的类。
|
||||
/// </remarks>
|
||||
public partial class XLBJD_CLCBInfo {
|
||||
|
||||
/// <summary>
|
||||
/// CustomButton 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Table CustomButton;
|
||||
|
||||
/// <summary>
|
||||
/// btnHSJJ 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtToolButton btnHSJJ;
|
||||
|
||||
/// <summary>
|
||||
/// btnSJDC 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtToolButton btnSJDC;
|
||||
|
||||
/// <summary>
|
||||
/// btnHQDC 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtToolButton btnHQDC;
|
||||
|
||||
/// <summary>
|
||||
/// btnPLTJ 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtToolButton btnPLTJ;
|
||||
|
||||
/// <summary>
|
||||
/// btnRefresh 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtButton btnRefresh;
|
||||
|
||||
/// <summary>
|
||||
/// btnRefresh2 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtButton btnRefresh2;
|
||||
|
||||
/// <summary>
|
||||
/// grdXLBJDMX 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtGridView grdXLBJDMX;
|
||||
|
||||
/// <summary>
|
||||
/// txtPLSZYZList 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.HiddenField txtPLSZYZList;
|
||||
|
||||
/// <summary>
|
||||
/// txtTZZ 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.HiddenField txtTZZ;
|
||||
|
||||
/// <summary>
|
||||
/// txtPLSZAll 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.HiddenField txtPLSZAll;
|
||||
|
||||
/// <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,61 @@
|
||||
<%@ Page Language="C#" MasterPageFile="~/N_MODEL/Page/MasterSingleQuery.Master" AutoEventWireup="true"
|
||||
CodeBehind="XLBJD_CLCBQuery.aspx.cs" Inherits="GThinking.U20261363_N_XLXSBJ.XLBJD_CLCBQuery" Title="查询" %>
|
||||
|
||||
<%@ MasterType VirtualPath="~/N_MODEL/Page/MasterSingleQuery.Master" %>
|
||||
<asp:Content ID="ContentQuery" ContentPlaceHolderID="CPHQuery" runat="server">
|
||||
<asp:Table ID="QueryTalbe" runat="server">
|
||||
<asp:TableRow>
|
||||
<asp:TableCell></asp:TableCell>
|
||||
<asp:TableCell HorizontalAlign="Right" Width="100px" Height="23px">
|
||||
</asp:TableCell>
|
||||
<asp:TableCell ID="TableCell2" Height="23px" runat="server">
|
||||
<gtc:gtCheckBox ID="chkXSFBJYY" DataField="XSFBJYY" runat="server" Text="显示负表价原因">
|
||||
</gtc:gtCheckBox>
|
||||
</asp:TableCell>
|
||||
</asp:TableRow>
|
||||
<asp:TableRow>
|
||||
<asp:TableCell></asp:TableCell>
|
||||
<asp:TableCell HorizontalAlign="Right" Width="100px" Height="23px">
|
||||
</asp:TableCell>
|
||||
<asp:TableCell ID="TableCell1" Height="23px" runat="server">
|
||||
<gtc:gtCheckBox ID="chkZSBJZC" DataField="ZSBJZC" runat="server" Text="展示表价组成">
|
||||
</gtc:gtCheckBox>
|
||||
</asp:TableCell>
|
||||
</asp:TableRow>
|
||||
<asp:TableRow>
|
||||
<asp:TableCell></asp:TableCell>
|
||||
<asp:TableCell HorizontalAlign="Right" Width="100px" Height="23px">
|
||||
</asp:TableCell>
|
||||
<asp:TableCell ID="lblZSJJZC" Height="23px" runat="server">
|
||||
<gtc:gtCheckBox ID="chkZSJJZC" DataField="ZSJJZC" runat="server" Text="展示基价组成">
|
||||
</gtc:gtCheckBox>
|
||||
</asp:TableCell>
|
||||
</asp:TableRow>
|
||||
<asp:TableRow>
|
||||
<asp:TableCell></asp:TableCell>
|
||||
<asp:TableCell HorizontalAlign="Right" Width="100px" Height="23px">
|
||||
</asp:TableCell>
|
||||
<asp:TableCell ID="TableCell3" Height="23px" runat="server">
|
||||
<gtc:gtCheckBox ID="chkBXSCLCB" DataField="XSCLCB" runat="server" Text="显示材料成本">
|
||||
</gtc:gtCheckBox>
|
||||
</asp:TableCell>
|
||||
</asp:TableRow>
|
||||
<asp:TableRow ID="tbrXSGYBZ">
|
||||
<asp:TableCell></asp:TableCell>
|
||||
<asp:TableCell HorizontalAlign="Right" Width="100px" Height="23px">
|
||||
</asp:TableCell>
|
||||
<asp:TableCell ID="TableCell4" Height="23px" runat="server">
|
||||
<gtc:gtCheckBox ID="chkXSGYBZ" DataField="GYBZ" runat="server" Text="显示工艺备注">
|
||||
</gtc:gtCheckBox>
|
||||
</asp:TableCell>
|
||||
</asp:TableRow>
|
||||
<asp:TableRow Visible="false">
|
||||
<asp:TableCell></asp:TableCell>
|
||||
<asp:TableCell HorizontalAlign="Right" Width="140px" Height="23px">
|
||||
<gtc:gtLabel ID="GtLabel3" runat="server">价格表类型:</gtc:gtLabel></asp:TableCell>
|
||||
<asp:TableCell Height="23px">
|
||||
<gtc:gtTextBox ID="txtJGBLX" runat= "Server" DataField="ISJGE"></gtc:gtTextBox>
|
||||
</asp:TableCell>
|
||||
</asp:TableRow>
|
||||
</asp:Table>
|
||||
</asp:Content>
|
||||
@@ -0,0 +1,68 @@
|
||||
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.TableCache;
|
||||
|
||||
namespace GThinking.U20261363_N_XLXSBJ
|
||||
{
|
||||
public class XLBJD_CLCB_M : TBaseNamedQuery
|
||||
{
|
||||
public XLBJD_CLCB_M()
|
||||
{
|
||||
AddFieldDefs("XSFBJYY", "显示负表价原因");
|
||||
AddFieldDefs("ZSBJZC", "展示表价组成");
|
||||
AddFieldDefs("ZSJJZC", "展示基价组成");
|
||||
AddFieldDefs("ISJGE", "是否是JGE价格表");
|
||||
AddFieldDefs("XSCLCB", "显示材料成本");
|
||||
AddFieldDefs("GYBZ", "显示工艺备注");
|
||||
}
|
||||
}
|
||||
public partial class XLBJD_CLCBQuery : SingleQueryBase
|
||||
{
|
||||
XLBJD_CLCB_M queryentity = new XLBJD_CLCB_M();
|
||||
|
||||
#region Page_Load
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
this.UMID = 100860174;
|
||||
this.UMName = "线缆销售报价单表价 ";
|
||||
this.CurMaster = Master;
|
||||
this.CurQueryTable = QueryTalbe;
|
||||
this.CurQueryEntity = queryentity;
|
||||
|
||||
|
||||
base.InitPage();
|
||||
|
||||
if (!IsPostBack)
|
||||
{
|
||||
InitControl();
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region 私有函数
|
||||
|
||||
private void InitControl()
|
||||
{
|
||||
if (txtJGBLX.Text.Trim().Equals("N"))
|
||||
{
|
||||
lblZSJJZC.Visible = false;
|
||||
chkZSJJZC.Visible = false;
|
||||
}
|
||||
if (!DSActiveModule.IsActiveModule(102109001))
|
||||
{
|
||||
tbrXSGYBZ.Visible = false;
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
Generated
+160
@@ -0,0 +1,160 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// 此代码由工具生成。
|
||||
// 运行时版本:2.0.50727.9179
|
||||
//
|
||||
// 对此文件的更改可能会导致不正确的行为,并且如果
|
||||
// 重新生成代码,这些更改将会丢失。
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace GThinking.U20261363_N_XLXSBJ {
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// XLBJD_CLCBQuery 类。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的类。
|
||||
/// </remarks>
|
||||
public partial class XLBJD_CLCBQuery {
|
||||
|
||||
/// <summary>
|
||||
/// QueryTalbe 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Table QueryTalbe;
|
||||
|
||||
/// <summary>
|
||||
/// TableCell2 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.TableCell TableCell2;
|
||||
|
||||
/// <summary>
|
||||
/// chkXSFBJYY 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtCheckBox chkXSFBJYY;
|
||||
|
||||
/// <summary>
|
||||
/// TableCell1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.TableCell TableCell1;
|
||||
|
||||
/// <summary>
|
||||
/// chkZSBJZC 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtCheckBox chkZSBJZC;
|
||||
|
||||
/// <summary>
|
||||
/// lblZSJJZC 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.TableCell lblZSJJZC;
|
||||
|
||||
/// <summary>
|
||||
/// chkZSJJZC 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtCheckBox chkZSJJZC;
|
||||
|
||||
/// <summary>
|
||||
/// TableCell3 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.TableCell TableCell3;
|
||||
|
||||
/// <summary>
|
||||
/// chkBXSCLCB 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtCheckBox chkBXSCLCB;
|
||||
|
||||
/// <summary>
|
||||
/// tbrXSGYBZ 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.TableRow tbrXSGYBZ;
|
||||
|
||||
/// <summary>
|
||||
/// TableCell4 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.TableCell TableCell4;
|
||||
|
||||
/// <summary>
|
||||
/// chkXSGYBZ 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtCheckBox chkXSGYBZ;
|
||||
|
||||
/// <summary>
|
||||
/// GtLabel3 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtLabel GtLabel3;
|
||||
|
||||
/// <summary>
|
||||
/// txtJGBLX 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtTextBox txtJGBLX;
|
||||
|
||||
/// <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,120 @@
|
||||
<%@ Page Language="C#" AutoEventWireup="True" Codebehind="XLBJD_CLHQTZList.aspx.cs" Inherits="GThinking.U20261363_N_XLXSBJ.XLBJD_CLHQTZList"
|
||||
MasterPageFile="~/N_MODEL/Page/MasterOperation.Master" Title="调整材料行情" %>
|
||||
|
||||
<%@ MasterType VirtualPath="~/N_MODEL/Page/MasterOperation.Master" %>
|
||||
<asp:Content ID="ContentButton" ContentPlaceHolderID="CPHButton" runat="server">
|
||||
<asp:Table ID="CustomButton" runat="server" CellPadding="0" CellSpacing="0">
|
||||
<asp:TableRow>
|
||||
<asp:TableCell HorizontalAlign="Left" BorderWidth="0px" BorderStyle="notset">
|
||||
<gtc:gtToolButton ID="btnSZHQ" BorderWidth="0px" BorderStyle="NotSet" Width="160px"
|
||||
Height="19px" ButtonType="Button" ShowCaption="True" runat="server" OnClick="btnSZHQ_Click"
|
||||
Caption="设置加工料/加工原料行情" />
|
||||
</asp:TableCell>
|
||||
<asp:TableCell>
|
||||
<gtc:gtToolButton ID="btnWLHQ" Caption="查看物料行情" ShowCaption="true" runat="server" Width="94px"
|
||||
Height="19px" OnClick="btnWLHQ_Click">
|
||||
</gtc:gtToolButton>
|
||||
</asp:TableCell>
|
||||
<asp:TableCell>
|
||||
<gtc:gtToolButton ID="btnTZWLHQ" Caption="调整物料行情" ShowCaption="true" runat="server" Width="94px"
|
||||
Height="19px" OnClick="btnTZWLHQ_Click">
|
||||
</gtc:gtToolButton>
|
||||
</asp:TableCell>
|
||||
<asp:TableCell BorderWidth="0px" BorderStyle="NotSet">
|
||||
<gtc:gtToolButton ID="btnUpdCLHQ" runat="server" Caption="更新自材料行情[最新]" OnClick="btnUpdCLHQ_Click" OnMenuItemClick="btnUpdCLHQ_MenuItemClick"
|
||||
ShowCaption="True" Width="158px" ButtonType="DropDown">
|
||||
<Nodes>
|
||||
<gtc:gtTreeNode Text="更新自采购行情" Value="CGHQ" />
|
||||
</Nodes>
|
||||
</gtc:gtToolButton>
|
||||
</asp:TableCell>
|
||||
<asp:TableCell>
|
||||
<gtc:gtButton Style="display: none" ID="btnCallBack" OnClick="btnCallBack_Click"
|
||||
runat="server" Visible="true" EnableTheming="false" SkinID="hidden"></gtc:gtButton>
|
||||
</asp:TableCell>
|
||||
</asp:TableRow>
|
||||
</asp:Table>
|
||||
</asp:Content>
|
||||
<asp:Content ID="Query" ContentPlaceHolderID="CphQuery" runat="server">
|
||||
</asp:Content>
|
||||
<asp:Content ID="Form" ContentPlaceHolderID="CphBill" runat="server">
|
||||
</asp:Content>
|
||||
<asp:Content ID="Grid" ContentPlaceHolderID="CphForm" runat="server">
|
||||
<gtc:gtPageControl ID="Tab" runat="server" AutoPostBack="True" ActiveTabIndex="0">
|
||||
<gtc:gtPagePanel ID="pagSHD" runat="server" HeaderText="调整材料行情">
|
||||
<ContentTemplate>
|
||||
<asp:UpdatePanel runat="server" ID="UPSHD" UpdateMode="Conditional">
|
||||
<ContentTemplate>
|
||||
<div id="divGDZSY0">
|
||||
<gtc:gtAjaxGridView ShowPager="false" ID="grdSHD" runat="server" ReadOnly="false" Height="100%" OnCalculateField="grdSHD_CalculateField">
|
||||
<Columns>
|
||||
<gtc:gtAjaxGridViewColumn HeaderText="px" DataField="px0" EditType="etString"
|
||||
Width="80px" Visible="false"></gtc:gtAjaxGridViewColumn>
|
||||
<gtc:gtAjaxGridViewColumn HeaderText="px" DataField="px" EditType="etString"
|
||||
Width="80px" Visible="false"></gtc:gtAjaxGridViewColumn>
|
||||
<gtc:gtAjaxGridViewColumn HeaderText="px" DataField="px1" EditType="etString"
|
||||
Width="80px" Visible="false"></gtc:gtAjaxGridViewColumn>
|
||||
<gtc:gtAjaxGridViewColumn HeaderText="使用" DataField="SYF" EditType="etCheckBox"
|
||||
Width="25px" ReadOnly="true"></gtc:gtAjaxGridViewColumn>
|
||||
<gtc:gtAjaxGridViewColumn HeaderText="材料编码" DataField="XLXSBJCL_BJCLID" EditType="etString"
|
||||
ReadOnly="true" Width="80px"></gtc:gtAjaxGridViewColumn>
|
||||
<gtc:gtAjaxGridViewColumn HeaderText="材料名称" DataField="XLXSBJCL_BJCLMC" EditType="etString"
|
||||
ReadOnly="true" Width="200px"></gtc:gtAjaxGridViewColumn>
|
||||
<gtc:gtAjaxGridViewColumn HeaderText="报价行情" DataField="XLXSBJCL_BJHQ" EditType="etString"
|
||||
ReadOnly="true" Width="80px"></gtc:gtAjaxGridViewColumn>
|
||||
<gtc:gtAjaxGridViewColumn HeaderText="无税材料价格(元/Kg)" DataField="CLJG" EditType="etNumber" NumberDecimalPlace="2"
|
||||
Width="120px" CalculateField="true"></gtc:gtAjaxGridViewColumn>
|
||||
<gtc:gtAjaxGridViewColumn HeaderText="增值税率(%)" DataField="XLXSBJCL_ZZSL" EditType="etNumber" NumberDecimalPlace="2"
|
||||
ReadOnly="true" Width="80px"></gtc:gtAjaxGridViewColumn>
|
||||
<gtc:gtAjaxGridViewColumn HeaderText="含税材料价格(元/Kg)" DataField="HSJG" EditType="etNumber" NumberDecimalPlace="2"
|
||||
Width="120px" CalculateField="true"></gtc:gtAjaxGridViewColumn>
|
||||
<gtc:gtAjaxGridViewColumn HeaderText="无税加工费(元/Kg)" DataField="WSJGF" EditType="etNumber" NumberDecimalPlace="2"
|
||||
Width="120px" Visible="false"></gtc:gtAjaxGridViewColumn>
|
||||
<gtc:gtAjaxGridViewColumn HeaderText="含税加工费(元/Kg)" DataField="HSJGF" EditType="etNumber" NumberDecimalPlace="2"
|
||||
Width="120px" Visible="false"></gtc:gtAjaxGridViewColumn>
|
||||
<gtc:gtAjaxGridViewColumn HeaderText="所依价格表含税材料价格(元/Kg)" DataField="SYJGB_HSJG" EditType="etNumber" NumberDecimalPlace="2"
|
||||
Width="180px" ReadOnly="true"></gtc:gtAjaxGridViewColumn>
|
||||
<gtc:gtAjaxGridViewColumn HeaderText="维护人" DataField="V_XLXSBJDCLHQ_WHR" EditType="etString"
|
||||
ReadOnly="true" Width="72px"></gtc:gtAjaxGridViewColumn>
|
||||
<gtc:gtAjaxGridViewColumn HeaderText="维护人ID" DataField="V_XLXSBJDCLHQ_WHRID" EditType="etString"
|
||||
ReadOnly="true" Width="72px" Visible="false"></gtc:gtAjaxGridViewColumn>
|
||||
<gtc:gtAjaxGridViewColumn HeaderText="维护时间" DataField="V_XLXSBJDCLHQ_WHSJ" EditType="etDateTime" DateTimeEditKind="dtDateTime"
|
||||
ReadOnly="true" Width="125px"></gtc:gtAjaxGridViewColumn>
|
||||
<gtc:gtAjaxGridViewColumn HeaderText="加工原料材料编码" DataField="XLXSBJCL_JGYBJCLID" EditType="etString"
|
||||
Width="80px" Visible="false"></gtc:gtAjaxGridViewColumn>
|
||||
<gtc:gtAjaxGridViewColumn HeaderText="加工原料材料编码1" DataField="V_XLXSBJDCLHQ_JGYBJCLID1" EditType="etString"
|
||||
Width="80px" Visible="false"></gtc:gtAjaxGridViewColumn>
|
||||
<gtc:gtAjaxGridViewColumn HeaderText="价格比例1" DataField="V_XLXSBJDCLHQ_JGBL1" EditType="etNumber" NumberDecimalPlace="2"
|
||||
Width="120px" Visible="false"></gtc:gtAjaxGridViewColumn>
|
||||
</Columns>
|
||||
</gtc:gtAjaxGridView>
|
||||
</div>
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
</ContentTemplate>
|
||||
</gtc:gtPagePanel>
|
||||
</gtc:gtPageControl>
|
||||
<asp:HiddenField ID="txtVCLHQID" runat="server" />
|
||||
<asp:HiddenField ID="txtVWLHQID" runat="server" />
|
||||
<script type="text/javascript">
|
||||
function gridCellReadOnly(grid,gridid,row)
|
||||
{
|
||||
if(gridid == 'grdSHD')
|
||||
{
|
||||
var BJHQ = grid.getFieldValue('XLXSBJCL_BJHQ',row);
|
||||
var JGYBJCLID = grid.getFieldValue('XLXSBJCL_JGYBJCLID',row);
|
||||
if(JGYBJCLID != '' || BJHQ == '2|物料行情')
|
||||
{
|
||||
grid.setFieldReadOnly("CLJG", true, row);
|
||||
grid.setFieldReadOnly("HSJG", true, row);
|
||||
}
|
||||
else
|
||||
{
|
||||
grid.setFieldReadOnly("CLJG", false, row);
|
||||
grid.setFieldReadOnly("HSJG", false, row);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
</script>
|
||||
</asp:Content>
|
||||
File diff suppressed because it is too large
Load Diff
Generated
+142
@@ -0,0 +1,142 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// 此代码由工具生成。
|
||||
// 运行时版本:2.0.50727.9179
|
||||
//
|
||||
// 对此文件的更改可能会导致不正确的行为,并且如果
|
||||
// 重新生成代码,这些更改将会丢失。
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace GThinking.U20261363_N_XLXSBJ {
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// XLBJD_CLHQTZList 类。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的类。
|
||||
/// </remarks>
|
||||
public partial class XLBJD_CLHQTZList {
|
||||
|
||||
/// <summary>
|
||||
/// CustomButton 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Table CustomButton;
|
||||
|
||||
/// <summary>
|
||||
/// btnSZHQ 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtToolButton btnSZHQ;
|
||||
|
||||
/// <summary>
|
||||
/// btnWLHQ 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtToolButton btnWLHQ;
|
||||
|
||||
/// <summary>
|
||||
/// btnTZWLHQ 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtToolButton btnTZWLHQ;
|
||||
|
||||
/// <summary>
|
||||
/// btnUpdCLHQ 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtToolButton btnUpdCLHQ;
|
||||
|
||||
/// <summary>
|
||||
/// btnCallBack 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtButton btnCallBack;
|
||||
|
||||
/// <summary>
|
||||
/// Tab 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtPageControl Tab;
|
||||
|
||||
/// <summary>
|
||||
/// pagSHD 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtPagePanel pagSHD;
|
||||
|
||||
/// <summary>
|
||||
/// UPSHD 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.UpdatePanel UPSHD;
|
||||
|
||||
/// <summary>
|
||||
/// grdSHD 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtAjaxGridView grdSHD;
|
||||
|
||||
/// <summary>
|
||||
/// txtVCLHQID 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.HiddenField txtVCLHQID;
|
||||
|
||||
/// <summary>
|
||||
/// txtVWLHQID 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.HiddenField txtVWLHQID;
|
||||
|
||||
/// <summary>
|
||||
/// Master 属性。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的属性。
|
||||
/// </remarks>
|
||||
public new GThinking.N_MODEL.Page.MasterOperation Master {
|
||||
get {
|
||||
return ((GThinking.N_MODEL.Page.MasterOperation)(base.Master));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,72 @@
|
||||
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="XLBJD_CXQSCLList.aspx.cs" Inherits="GThinking.U20261363_N_XLXSBJ.XLBJD_CXQSCLList"
|
||||
MasterPageFile="~/N_MODEL/Page/MasterSingleGrid.Master" Title="查询缺失材料" %>
|
||||
|
||||
<%@ MasterType VirtualPath="~/N_MODEL/Page/MasterSingleGrid.Master" %>
|
||||
<asp:Content ID="ContentButton" ContentPlaceHolderID="CPHButton" runat="server">
|
||||
</asp:Content>
|
||||
<asp:Content ID="ContentForm" ContentPlaceHolderID="CPHForm" runat="server">
|
||||
<div>
|
||||
<table style="width: 100%" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td align="center" style="height: 10px">
|
||||
<table>
|
||||
<tr>
|
||||
<td align="right">
|
||||
<gtc:gtLabel ID="lblBJCP" runat="server" ></gtc:gtLabel>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr style="height:10px">
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div id="divGDZSY0" style="height:100%; width:100%;">
|
||||
<gtc:gtGridView ID="grdContentGrid" runat="server" EnableViewState="false" AutoGenerateColumns="False"
|
||||
CellPadding="0" CellSpacing="0" AllowPaging="True" AllowSorting="True" MaintainScrollPositionYOnPostback="true">
|
||||
<Columns>
|
||||
<asp:BoundField DataField="BJCLID" HeaderText="材料编码">
|
||||
<itemstyle width="80px"></itemstyle>
|
||||
<headerstyle width="80px"></headerstyle>
|
||||
</asp:BoundField>
|
||||
<asp:BoundField DataField="BJCLMC" HeaderText="材料名称">
|
||||
<itemstyle width="140px"></itemstyle>
|
||||
<headerstyle width="140px"></headerstyle>
|
||||
</asp:BoundField>
|
||||
<asp:BoundField DataField="WLXX" HeaderText="物料信息">
|
||||
<itemstyle width="140px"></itemstyle>
|
||||
<headerstyle width="140px"></headerstyle>
|
||||
</asp:BoundField>
|
||||
<asp:BoundField DataField="CLJG" HeaderText="材料价格(元/Kg)">
|
||||
<itemstyle width="95px" horizontalalign="Right"></itemstyle>
|
||||
<headerstyle width="95px"></headerstyle>
|
||||
</asp:BoundField>
|
||||
<asp:BoundField DataField="px0" HeaderText="序号">
|
||||
<itemstyle width="95px"></itemstyle>
|
||||
<headerstyle width="95px"></headerstyle>
|
||||
</asp:BoundField>
|
||||
</Columns>
|
||||
<FixRowCol TableHeight="100%" TableWidth="100%" />
|
||||
<ColumnsEx>
|
||||
<gtc:gtGridView_Column DataField="BJCLID" EditType="etString" ShowHint ="true">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="BJCLMC" EditType="etString" ShowHint ="true">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="WLXX" EditType="etString">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="CLJG" EditType="etString">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="px0" EditType="etNumber" NumberDecimalPlace="0">
|
||||
</gtc:gtGridView_Column>
|
||||
</ColumnsEx>
|
||||
</gtc:gtGridView>
|
||||
</div>
|
||||
<asp:HiddenField ID="txtBJCLID" runat="server" />
|
||||
<asp:HiddenField ID="txtBJCLMC" runat="server" />
|
||||
<asp:HiddenField ID="txtWLXX" runat="server" />
|
||||
|
||||
</asp:Content>
|
||||
<asp:Content ID="ContentSync" ContentPlaceHolderID="CPHSync" runat="server">
|
||||
</asp:Content>
|
||||
|
||||
@@ -0,0 +1,275 @@
|
||||
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_CONTROL;
|
||||
using GThinking.N_PUBLIC;
|
||||
using GThinking.N_MISPRO.Caching;
|
||||
using GThinking.N_MISPRO.Utility;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace GThinking.U20261363_N_XLXSBJ
|
||||
{
|
||||
[TableMap(DB = "DBERP", DbTableName = "XLXSCLQD", Umid = 100860174, IsWorkFlow = false, IsAttach = false, UseWhr = false)]
|
||||
|
||||
public class XLBJD_CBZS : EntityManager
|
||||
{
|
||||
}
|
||||
|
||||
public partial class XLBJD_CXQSCLList : SingleGridBase
|
||||
{
|
||||
XLBJD_CBZS entity = new XLBJD_CBZS();
|
||||
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
this.UMID = 100860174;
|
||||
this.UMName = "线缆销售报价单";
|
||||
this.CurMaster = Master;
|
||||
this.ModuleGV = grdContentGrid;
|
||||
this.CurEntity = entity;
|
||||
this.PageWidth = 700;
|
||||
this.PageHeight = 500;
|
||||
|
||||
Master.EnableQueryBtn = false;
|
||||
Master.EnableAttachBtn = false;
|
||||
Master.EnableNewBtn = false;
|
||||
Master.EnableViewBtn = false;
|
||||
Master.EnableEditBtn = false;
|
||||
Master.EnableCopyBtn = false;
|
||||
Master.EnableDeleteBtn = false;
|
||||
|
||||
base.InitPage();
|
||||
ModuleGV.OnClientDblClick = "return false;";
|
||||
|
||||
grdContentGrid.FindColumnByFieldName("px0").Visible = false;
|
||||
if (!IsPostBack)
|
||||
{
|
||||
Master_OnStandardQuery(null, null);
|
||||
|
||||
lblBJCP.Text = GetBJCP();
|
||||
}
|
||||
grdContentGrid.FindColumnExByFieldName("CLJG").NumberDecimalPlace = XLBJDUtils.BJCLPriceDecimal;
|
||||
}
|
||||
|
||||
#region 模板继承事件
|
||||
|
||||
protected override void Master_OnStandardQuery(object sender, EventArgs e)
|
||||
{
|
||||
entity.EntityTable.QuerySelSql = "select 1 from XLXSCLQD where 1<>1";
|
||||
base.Master_OnStandardQuery(sender, e);
|
||||
DataSet ds = GetTable();
|
||||
entity.GridDataBind(grdContentGrid, tSession);
|
||||
entity.GridDataBind(grdContentGrid, ds.Tables[0], ds.Tables[0].Rows.Count);
|
||||
grdContentGrid.DataSource = ds;
|
||||
}
|
||||
|
||||
protected override void moduleGV_PageIndexChanging(object sender, GridViewPageEventArgs e)
|
||||
{
|
||||
entity.EntityTable.QuerySelSql = "select 1 from XLXSCLQD where 1<>1";
|
||||
base.moduleGV_PageIndexChanging(sender, e);
|
||||
grdContentGrid.SelectedIndex = -1;
|
||||
DataSet ds = GetTable();
|
||||
entity.GridDataBind(grdContentGrid, tSession);
|
||||
entity.GridDataBind(grdContentGrid, ds.Tables[0], ds.Tables[0].Rows.Count);
|
||||
grdContentGrid.DataSource = ds;
|
||||
}
|
||||
|
||||
protected override void moduleGV_RowDataBound(object sender, GridViewRowEventArgs e)
|
||||
{
|
||||
if (e.Row.RowType == DataControlRowType.DataRow)
|
||||
{
|
||||
|
||||
}
|
||||
base.moduleGV_RowDataBound(sender, e);
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region 自定义事件
|
||||
|
||||
private DataSet GetTable()
|
||||
{
|
||||
return GetTableFromJGE();
|
||||
}
|
||||
|
||||
private DataSet GetTableFromJGE()
|
||||
{
|
||||
string sBJDID = PageParam.GetRTrimString("BJDID");
|
||||
string sXH = PageParam.GetRTrimString("XH");
|
||||
|
||||
DataSet dsResult = new DataSet();
|
||||
TDatabase dberp = TContextDatabases.GetDatabase("DBERP");
|
||||
TSQL tSql = new TSQL(dberp);
|
||||
tSql.Clear();
|
||||
tSql.Add("select XLXSBJDCLCB_BJDID, XLXSBJDCLCB_XH");
|
||||
for (int i = 1; i <= 80; i++)
|
||||
{
|
||||
tSql.Add(string.Format(",XLXSBJDCLCB_CLSL{0}", i.ToString().PadLeft(2, '0').Trim()));
|
||||
tSql.Add(string.Format(",XLXSBJDCLCB_CLID{0}", i.ToString().PadLeft(2, '0').Trim()));
|
||||
tSql.Add(string.Format(",XLXSBJDCLCB_CLDJ{0}", i.ToString().PadLeft(2, '0').Trim()));
|
||||
}
|
||||
tSql.Add(" from XLXSBJDCLCB ");
|
||||
tSql.Add(" where XLXSBJDCLCB_BJDID=:pBJDID and XLXSBJDCLCB_XH=:pXH ");
|
||||
tSql.ParamByName("pBJDID").Value = sBJDID;
|
||||
tSql.ParamByName("pXH").Value = sXH;
|
||||
DataSet dsBJCL = dberp.OpenDataSet(tSql);
|
||||
if (dsBJCL.Tables[0].Rows.Count > 0)
|
||||
{
|
||||
DataTable dt1 = new DataTable();
|
||||
dt1.Columns.Add("BJCLID", typeof(string));
|
||||
dt1.Columns.Add("BJCLMC", typeof(string));
|
||||
dt1.Columns.Add("WLXX", typeof(string));
|
||||
dt1.Columns.Add("CLJG", typeof(string));
|
||||
dt1.Columns.Add("CLSL", typeof(double));
|
||||
dt1.Columns.Add("px0", typeof(double));
|
||||
dt1.Columns.Add("CLCB", typeof(double));
|
||||
for (int i = 1; i <= 80; i++)
|
||||
{
|
||||
string sCLID = dsBJCL.Tables[0].Rows[0][string.Format("XLXSBJDCLCB_CLID{0}", i.ToString().PadLeft(2, '0').Trim())].ToString().Trim();
|
||||
if (sCLID.Equals(""))
|
||||
{
|
||||
//避免出现跳空列的情况
|
||||
continue;
|
||||
}
|
||||
string sBJCLID = "";
|
||||
string sWLID = "";
|
||||
if (sCLID.Contains("|"))
|
||||
{
|
||||
sBJCLID = sCLID.Split('|')[0];
|
||||
sWLID = sCLID.Split('|')[1];
|
||||
}
|
||||
else
|
||||
sBJCLID = sCLID;
|
||||
string sWLXX = GetWLXX(sWLID);
|
||||
string sBJCLMC = GetBJCLMC(sBJCLID);
|
||||
string sCLSL = dsBJCL.Tables[0].Rows[0][string.Format("XLXSBJDCLCB_CLSL{0}", i.ToString().PadLeft(2, '0').Trim())].ToString().Trim();
|
||||
double dCLSL = CMISproConvert.StrToFloat(sCLSL);
|
||||
string sCLDJ = dsBJCL.Tables[0].Rows[0][string.Format("XLXSBJDCLCB_CLDJ{0}", i.ToString().PadLeft(2, '0').Trim())].ToString().Trim();
|
||||
string sCLCB = NumberUtils.RoundX(CMISproConvert.StrToFloat(sCLSL) * CMISproConvert.StrToFloat(sCLDJ), 6).ToString().Trim();
|
||||
if (dCLSL > 0)//数量大于0的存放在dt1,不大于0的存在dt2
|
||||
{
|
||||
DataRow dtrow = dt1.NewRow();
|
||||
dtrow["BJCLID"] = sBJCLID;
|
||||
dtrow["BJCLMC"] = sBJCLMC;
|
||||
dtrow["WLXX"] = sWLXX;
|
||||
dtrow["CLJG"] = sCLDJ;
|
||||
dtrow["CLSL"] = dCLSL;
|
||||
dtrow["px0"] = 0;
|
||||
dtrow["CLCB"] = CMISproConvert.StrToFloat(sCLCB);
|
||||
dt1.Rows.Add(dtrow);
|
||||
}
|
||||
}
|
||||
dsResult.Tables.Add(dt1);
|
||||
}
|
||||
|
||||
return dsResult;
|
||||
}
|
||||
|
||||
private string GetWLXX(string sWLID)
|
||||
{
|
||||
TDatabase dberp = TContextDatabases.GetDatabase("DBERP");
|
||||
TSQL sql = new TSQL(dberp);
|
||||
sql.Add("select WL_MC,WL_GG from WL where WL_WLID=:pWLID");
|
||||
sql.ParamByName("pWLID").Value = sWLID.Trim();
|
||||
DataSet ds = dberp.OpenDataSet(sql);
|
||||
if (ds.Tables[0].Rows.Count > 0)
|
||||
return sWLID.Trim() + "|" + ds.Tables[0].Rows[0]["WL_MC"].ToString().Trim() + "|" + ds.Tables[0].Rows[0]["WL_GG"].ToString().Trim();
|
||||
else
|
||||
return sWLID.Trim();
|
||||
}
|
||||
|
||||
private string GetBJCP()
|
||||
{
|
||||
string sRetValue = "";
|
||||
string sXLXHID = PageParam.GetRTrimString("XLXHID");
|
||||
string sXLGGID = PageParam.GetRTrimString("XLGGID");
|
||||
string sXLBZID = GetXLBZXX(PageParam.GetRTrimString("XLBZID"));
|
||||
string sDYDJID = PageParam.GetRTrimString("DYDJID");
|
||||
|
||||
if (!sXLXHID.Equals(""))
|
||||
{
|
||||
sRetValue = sRetValue + " " + sXLXHID;
|
||||
}
|
||||
|
||||
if (!sXLGGID.Equals(""))
|
||||
{
|
||||
sRetValue = sRetValue + " " + sXLGGID;
|
||||
}
|
||||
|
||||
if (!sXLBZID.Equals(""))
|
||||
{
|
||||
sRetValue = sRetValue + " " + sXLBZID;
|
||||
}
|
||||
|
||||
if (!sDYDJID.Equals(""))
|
||||
{
|
||||
sRetValue = sRetValue + " " + sDYDJID;
|
||||
}
|
||||
sRetValue = sRetValue.Trim();
|
||||
return sRetValue;
|
||||
}
|
||||
|
||||
private string GetXLBZXX(string sXLBZID)
|
||||
{
|
||||
TDatabase dberp = TContextDatabases.GetDatabase("DBERP");
|
||||
TSQL SQL = new TSQL(dberp);
|
||||
SQL.Clear();
|
||||
SQL.Add(" select rtrim(XLBZ_XLBZID)||'|'||rtrim(XLBZ_XLBZLXMC) as XLBZ_XLBZID from XLBZ where XLBZ_XLBZID= :pXLBZID ");
|
||||
SQL.ParamByName("pXLBZID").Value = sXLBZID;
|
||||
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 strPadRight(string s, int x)
|
||||
{
|
||||
string str = s;
|
||||
if (str.Split('.').Length == 2)
|
||||
{
|
||||
str = str.Split('.')[0] + "." + str.Split('.')[1].PadRight(x, '0');
|
||||
}
|
||||
else
|
||||
{
|
||||
string tmp = "0";
|
||||
if (x > 0)
|
||||
{
|
||||
tmp = tmp.PadRight(x, '0');
|
||||
str = str + "." + tmp;
|
||||
}
|
||||
}
|
||||
return str;
|
||||
}
|
||||
|
||||
private string GetBJCLMC(string sBJCLID)
|
||||
{
|
||||
TDatabase dberp = TContextDatabases.GetDatabase("DBERP");
|
||||
TSQL sql = new TSQL(dberp);
|
||||
sql.Add(" select XLXSBJCL_BJCLMC from XLXSBJCL where XLXSBJCL_BJCLID=:pBJCLID ");
|
||||
sql.ParamByName("pBJCLID").Value = sBJCLID.Trim();
|
||||
DataSet ds = dberp.OpenDataSet(sql);
|
||||
if (ds.Tables[0].Rows.Count > 0)
|
||||
return ds.Tables[0].Rows[0]["XLXSBJCL_BJCLMC"].ToString().Trim();
|
||||
else
|
||||
return "";
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region 按钮事件
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
Generated
+79
@@ -0,0 +1,79 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// 此代码由工具生成。
|
||||
// 运行时版本:2.0.50727.9179
|
||||
//
|
||||
// 对此文件的更改可能会导致不正确的行为,并且如果
|
||||
// 重新生成代码,这些更改将会丢失。
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace GThinking.U20261363_N_XLXSBJ {
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// XLBJD_CXQSCLList 类。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的类。
|
||||
/// </remarks>
|
||||
public partial class XLBJD_CXQSCLList {
|
||||
|
||||
/// <summary>
|
||||
/// lblBJCP 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtLabel lblBJCP;
|
||||
|
||||
/// <summary>
|
||||
/// grdContentGrid 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtGridView grdContentGrid;
|
||||
|
||||
/// <summary>
|
||||
/// txtBJCLID 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.HiddenField txtBJCLID;
|
||||
|
||||
/// <summary>
|
||||
/// txtBJCLMC 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.HiddenField txtBJCLMC;
|
||||
|
||||
/// <summary>
|
||||
/// txtWLXX 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.HiddenField txtWLXX;
|
||||
|
||||
/// <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,97 @@
|
||||
<%@ Page Language="C#" MasterPageFile="~/N_MODEL/Page/MasterSingleGrid.Master" AutoEventWireup="true"
|
||||
CodeBehind="XLBJD_FBJXQList.aspx.cs" Inherits="GThinking.U20261363_N_XLXSBJ.XLBJD_FBJXQList" Title="异常表价详情" %>
|
||||
|
||||
<%@ MasterType VirtualPath="~/N_MODEL/Page/MasterSingleGrid.Master" %>
|
||||
<asp:Content ID="ContentButton" ContentPlaceHolderID="CPHButton" runat="server">
|
||||
<asp:Table ID="AddTable" runat="server" CellPadding="0" CellSpacing="0">
|
||||
<asp:TableRow>
|
||||
<asp:TableCell>
|
||||
<gtc:gtButton Style="display: none" ID="btnCXQSCL" OnClick="btnCXQSCL_Click" runat="server"
|
||||
Visible="true" EnableTheming="false" SkinID="hidden"></gtc:gtButton>
|
||||
</asp:TableCell>
|
||||
</asp:TableRow>
|
||||
</asp:Table>
|
||||
</asp:Content>
|
||||
<asp:Content ID="ContentForm" ContentPlaceHolderID="cphForm" runat="server">
|
||||
<gtc:gtGridView ID="ContentGrid" runat="server" AutoGenerateColumns="False" EnableViewState="false">
|
||||
<FixRowCol TableHeight="100%" TableWidth="100%" />
|
||||
<Columns>
|
||||
<asp:BoundField HeaderText="显示序号" DataField="XLXSBJDMX_XSSX">
|
||||
<itemstyle horizontalalign="Right" width="80px"></itemstyle>
|
||||
<headerstyle width="80px"></headerstyle>
|
||||
</asp:BoundField>
|
||||
<asp:BoundField HeaderText="型号" DataField="XLXSBJDMX_XLXHID">
|
||||
<itemstyle width="120px"></itemstyle>
|
||||
<headerstyle width="120px" verticalalign="Middle"></headerstyle>
|
||||
</asp:BoundField>
|
||||
<asp:BoundField HeaderText="规格" DataField="XLXSBJDMX_XLGGID">
|
||||
<itemstyle width="120px"></itemstyle>
|
||||
<headerstyle width="120px"></headerstyle>
|
||||
</asp:BoundField>
|
||||
<asp:BoundField HeaderText="标准" DataField="XLBZ">
|
||||
<itemstyle width="80px"></itemstyle>
|
||||
<headerstyle width="80px"></headerstyle>
|
||||
</asp:BoundField>
|
||||
<asp:BoundField HeaderText="电压等级" DataField="XLXSBJDMX_DYDJID">
|
||||
<itemstyle width="80px"></itemstyle>
|
||||
<headerstyle width="80px"></headerstyle>
|
||||
</asp:BoundField>
|
||||
<asp:BoundField HeaderText="报价产品" DataField="XLXSBJDMX_BJCP">
|
||||
<itemstyle width="120px"></itemstyle>
|
||||
<headerstyle width="120px"></headerstyle>
|
||||
</asp:BoundField>
|
||||
<asp:BoundField HeaderText="计量单位" DataField="XLXSBJDMX_JLDW">
|
||||
<itemstyle width="50px"></itemstyle>
|
||||
<headerstyle width="50px"></headerstyle>
|
||||
</asp:BoundField>
|
||||
<asp:BoundField HeaderText="表价" DataField="XLXSBJDMX_JGBBJ">
|
||||
<itemstyle width="80px"></itemstyle>
|
||||
<headerstyle width="80px"></headerstyle>
|
||||
</asp:BoundField>
|
||||
<asp:BoundField HeaderText="负表价原因" DataField="XLXSBJDMX_JSYCBZ">
|
||||
<itemstyle horizontalalign="Right" width="100px"></itemstyle>
|
||||
<headerstyle width="100px"></headerstyle>
|
||||
</asp:BoundField>
|
||||
</Columns>
|
||||
<ColumnsEx>
|
||||
<gtc:gtGridView_Column DataField="XLXSBJDMX_XSSX" EditType="etNumber" ShowZero="false"
|
||||
NumberDecimalPlace="0">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="XLXSBJDMX_XLXHID" EditType="etActualString" ShowHint="true">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="XLXSBJDMX_XLGGID" EditType="etString" ShowHint="true">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="XLBZ" EditType="etString" ShowHint="true">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="XLXSBJDMX_DYDJID" EditType="etString" ShowHint="true">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="XLXSBJDMX_BJCP" EditType="etString" ShowHint="true">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="XLXSBJDMX_JLDW" EditType="etString" ShowHint="true">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="XLXSBJDMX_JGBBJ" EditType="etString" ShowHint="true" >
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="XLXSBJDMX_JSYCBZ" EditType="etString" ShowHint="true">
|
||||
</gtc:gtGridView_Column>
|
||||
</ColumnsEx>
|
||||
</gtc:gtGridView>
|
||||
<asp:HiddenField ID="txtXLXHID" runat="server" />
|
||||
<asp:HiddenField ID="txtXLGGID" runat="server" />
|
||||
<asp:HiddenField ID="txtXLBZID" runat="server" />
|
||||
<asp:HiddenField ID="txtDYDJID" runat="server" />
|
||||
<asp:HiddenField ID="txtXH" runat="server" />
|
||||
<script type="text/javascript">
|
||||
function CellClick(sXLXHID,sXLGGID,sXLBZID,sDYDJID,sXH)
|
||||
{
|
||||
document.getElementById("ctl00_CPHForm_txtXLXHID").value = sXLXHID;
|
||||
document.getElementById("ctl00_CPHForm_txtXLGGID").value = sXLGGID;
|
||||
document.getElementById("ctl00_CPHForm_txtXLBZID").value = sXLBZID;
|
||||
document.getElementById("ctl00_CPHForm_txtDYDJID").value = sDYDJID;
|
||||
document.getElementById("ctl00_CPHForm_txtXH").value = sXH;
|
||||
setTimeout("$get('ctl00_CPHButton_btnCXQSCL').click();", 100);
|
||||
}
|
||||
</script>
|
||||
</asp:Content>
|
||||
<asp:Content ID="ContentSync" ContentPlaceHolderID="CPHSync" runat="server">
|
||||
</asp:Content>
|
||||
|
||||
@@ -0,0 +1,236 @@
|
||||
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 System.Collections.Generic;
|
||||
using GThinking.N_MISPRO.Data;
|
||||
using System.Text;
|
||||
using GThinking.N_MISPRO;
|
||||
using GThinking.N_MISPRO.Utility;
|
||||
|
||||
namespace GThinking.U20261363_N_XLXSBJ
|
||||
{
|
||||
|
||||
[TableMap(DB = "DBERP", DbTableName = "XLXSBJDMX", Umid = 100860174, IsWorkFlow = false, IsAttach = false, UseWhr = false)]
|
||||
|
||||
public class XLBJD_FBJXQ : EntityManager
|
||||
{
|
||||
}
|
||||
|
||||
public partial class XLBJD_FBJXQList : SingleGridBase
|
||||
{
|
||||
XLBJD_FBJXQ entity = new XLBJD_FBJXQ();
|
||||
Dictionary<string, string> dicJGBTJYZ = new Dictionary<string, string>();
|
||||
int iXSWS = 5;
|
||||
|
||||
#region Page类事件继承
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
this.UMID = 100860174;
|
||||
this.UMName = "线缆销售报价单";
|
||||
this.CurMaster = Master;
|
||||
this.ModuleGV = ContentGrid;
|
||||
this.CurEntity = entity;
|
||||
this.PageHeight = 600;
|
||||
this.PageWidth = 750;
|
||||
|
||||
base.DataKeyNames = new string[] { "XLXSBJDMX_XH", "XLXSBJDMX_XSSX", "XLXSBJDMX_JSYCBZ" };
|
||||
Master.EnableNewBtn = false;
|
||||
Master.EnableCopyBtn = false;
|
||||
Master.EnableViewBtn = false;
|
||||
Master.EnableEditBtn = false;
|
||||
Master.EnableDeleteBtn = false;
|
||||
Master.EnableQueryBtn = false;
|
||||
iXSWS = string.IsNullOrEmpty(GetOption(100860000, "BJU002")) ? 5 : CMISproConvert.StrToInt(GetOption(100860000, "BJU002"));
|
||||
if (iXSWS < 0)
|
||||
iXSWS = 0;
|
||||
else if (iXSWS > 8)
|
||||
iXSWS = 8;
|
||||
string sBJBM = XLBJDUtils.GetJGBBJBM(PageParam.GetRTrimString("BJFLID"));
|
||||
if (!sBJBM.Equals(""))
|
||||
ContentGrid.FindColumnByFieldName("XLXSBJDMX_JGBBJ").HeaderText = XLBJDUtils.GetJGBBJBM(PageParam.GetRTrimString("BJFLID"));
|
||||
base.InitPage();
|
||||
this.ModuleGV.OnClientDblClick = "return false;";
|
||||
if (!IsPostBack)
|
||||
{
|
||||
Master_OnStandardQuery(null, null);
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 模板事件
|
||||
protected override void Master_OnStandardQuery(object sender, EventArgs e)
|
||||
{
|
||||
entity.EntityTable.QuerySelSql = GetSql();
|
||||
base.Master_OnStandardQuery(sender, e);
|
||||
entity.GridDataBind(ContentGrid, tSession);
|
||||
}
|
||||
|
||||
protected override void moduleGV_PageIndexChanging(object sender, GridViewPageEventArgs e)
|
||||
{
|
||||
entity.EntityTable.QuerySelSql = GetSql();
|
||||
base.moduleGV_PageIndexChanging(sender, e);
|
||||
ContentGrid.SelectedIndex = -1;
|
||||
}
|
||||
|
||||
protected override void moduleGV_RowDataBound(object sender, GridViewRowEventArgs e)
|
||||
{
|
||||
InitDic();
|
||||
if (e.Row.RowType == DataControlRowType.DataRow)
|
||||
{
|
||||
if (e.Row.Cells[8].Text.Contains("A") || CMISproConvert.StrToInt(e.Row.Cells[7].Text.Trim()) == 0)
|
||||
{
|
||||
e.Row.Cells[7].Text = string.Format("<A href='#' onclick=\"CellClick('{0}','{1}','{2}','{3}','{4}') \"><U>" + XLBJDUtils.strPadRight(e.Row.Cells[7].Text.Trim(), iXSWS) + "</U></A>",
|
||||
e.Row.Cells[1].Text.Trim(), e.Row.Cells[2].Text.Trim(), e.Row.Cells[3].Text.Trim(), e.Row.Cells[4].Text.Trim(), ContentGrid.DataKeys[e.Row.RowIndex]["XLXSBJDMX_XH"].ToString().Trim());
|
||||
}
|
||||
if ((e.Row.Cells[8].Text.Trim() != "") && (e.Row.Cells[8].Text.Trim() != " "))
|
||||
{
|
||||
e.Row.Cells[8].Text = GetJSYCXQ(e.Row.Cells[8].Text.Trim(), dicJGBTJYZ);
|
||||
}
|
||||
}
|
||||
base.moduleGV_RowDataBound(sender, e);
|
||||
}
|
||||
|
||||
protected override void ReportDataSetAdd()
|
||||
{
|
||||
AddUserReportField("JSYCBZ", "XLXSBJDMX_JSYCBZ", "负表价原因", "S");
|
||||
base.ReportDataSetAdd();
|
||||
}
|
||||
|
||||
protected override void ReportRecordSetAdd()
|
||||
{
|
||||
TDatabase DBERP = TContextDatabases.GetDatabase("DBERP");
|
||||
TSQL SQL = new TSQL(DBERP);
|
||||
SQL.Text = GetSql();
|
||||
DataSet ds = DBERP.OpenDataSet(SQL);
|
||||
if (ds.Tables[0].Rows.Count > 0)
|
||||
{
|
||||
int i = 0;
|
||||
foreach (DataRow row in ds.Tables[0].Rows)
|
||||
{
|
||||
string sJSYCBZ = row["XLXSBJDMX_JSYCBZ"].ToString().Trim();
|
||||
if (string.IsNullOrEmpty(sJSYCBZ))
|
||||
{
|
||||
ds.Tables[0].Rows[i]["XLXSBJDMX_JSYCBZ"] = GetJSYCXQ(sJSYCBZ, dicJGBTJYZ);
|
||||
}
|
||||
i++;
|
||||
}
|
||||
}
|
||||
AddUserReportDataSet("JSYCBZ", ds);
|
||||
base.ReportRecordSetAdd();
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region 自定义函数
|
||||
|
||||
private string GetSql()
|
||||
{
|
||||
StringBuilder strSQL = new StringBuilder();
|
||||
strSQL.AppendLine(" select XLXSBJDMX_XH,XLXSBJDMX_XSSX,XLXSBJDMX_XLXHID,XLXSBJDMX_JGBBJ,XLXSBJDMX_XLGGID,rtrim(XLXSBJDMX_XLBZID) ||'|'|| rtrim(XLBZ_XLBZLXMC) as XLBZ,XLXSBJDMX_DYDJID,");
|
||||
strSQL.AppendLine(" XLXSBJDMX_BJCP,XLXSBJDMX_JLDW,XLXSBJDMX_JSYCBZ ");
|
||||
strSQL.AppendLine(" from XLXSBJDMX ");
|
||||
strSQL.AppendLine(" left join XLBZ on XLBZ_XLBZID = XLXSBJDMX_XLBZID ");
|
||||
strSQL.AppendLine(" where XLXSBJDMX_BJDID = '" + PageParam.GetRTrimString("BJDID").Trim() + "' and (XLXSBJDMX_JGBBJ < 0 OR XLXSBJDMX_BJDHQCLCB=0) order by XLXSBJDMX_XSSX ");
|
||||
return strSQL.ToString();
|
||||
}
|
||||
|
||||
|
||||
public static string GetJSYCXQ(string sJSYCBZ, Dictionary<string, string> dicJGBTJYZ)
|
||||
{
|
||||
if (sJSYCBZ.Equals(""))
|
||||
return "";
|
||||
string Rstr = "";
|
||||
foreach (string str in sJSYCBZ.Split(','))
|
||||
{
|
||||
if (!str.Trim().Equals(""))
|
||||
{
|
||||
if (!Rstr.Equals(""))
|
||||
Rstr += ",";
|
||||
if (str.Trim().Equals("A"))
|
||||
{
|
||||
Rstr += "材料价缺失/有用量栏目未指定材料";
|
||||
}
|
||||
string YZID = "";
|
||||
if (str.Contains("F"))
|
||||
{
|
||||
string sFGQCP = str.TrimEnd('F');
|
||||
if (sFGQCP.Trim().Equals("0"))
|
||||
YZID = "JZ10";
|
||||
else
|
||||
{
|
||||
YZID = "JZ0" + sFGQCP;
|
||||
}
|
||||
if (dicJGBTJYZ.ContainsKey(YZID))
|
||||
{
|
||||
Rstr += dicJGBTJYZ[YZID] + "尚未覆盖本产品";
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if (str.Trim().Equals("0"))
|
||||
YZID = "JZ10";
|
||||
else
|
||||
{
|
||||
YZID = "JZ0" + str;
|
||||
}
|
||||
if (dicJGBTJYZ.ContainsKey(YZID))
|
||||
{
|
||||
Rstr += dicJGBTJYZ[YZID] + "缺失异常";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return Rstr;
|
||||
}
|
||||
|
||||
private void InitDic()
|
||||
{
|
||||
if (dicJGBTJYZ.Count > 0)
|
||||
return;
|
||||
dicJGBTJYZ = XLBJDUtils.GetJZJYZIDDic();
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
|
||||
#region 控件事件
|
||||
|
||||
protected void btnCXQSCL_Click(object sender, EventArgs e)
|
||||
{
|
||||
string sXLXHID = txtXLXHID.Value.Trim();
|
||||
string sXLGGID = txtXLGGID.Value.Trim();
|
||||
string sXLBZID = txtXLBZID.Value.Trim();
|
||||
string sDYDJID = txtDYDJID.Value.Trim();
|
||||
string sXH = txtXH.Value.Trim();
|
||||
TPageParams tpp = new TPageParams();
|
||||
tpp.UrlPath = "XLBJD_CXQSCLList.aspx";
|
||||
tpp.AddString("XLXHID", sXLXHID);
|
||||
tpp.AddString("XLGGID", sXLGGID);
|
||||
tpp.AddString("XLBZID", sXLBZID);
|
||||
tpp.AddString("DYDJID", sDYDJID);
|
||||
tpp.AddString("BJDID", PageParam.GetRTrimString("BJDID"));
|
||||
tpp.AddString("XH", sXH);
|
||||
tpp.AddString("BJRQ", PageParam.GetRTrimString("BJRQ"));
|
||||
tpp.AddString("BJFLID", PageParam.GetRTrimString("BJFLID"));
|
||||
tpp.AddString("JGBID", PageParam.GetRTrimString("JGBID"));
|
||||
tpp.AddString("JGBIDS", PageParam.GetRTrimString("JGBIDS"));
|
||||
tpp.AddString("HSBZ", PageParam.GetRTrimString("HSBZ"));
|
||||
tpp.AddString("BJDHQLY", PageParam.GetRTrimString("BJDHQLY"));
|
||||
tpp.AddString("TBJCLID", PageParam.GetRTrimString("TBJCLID"));
|
||||
tpp.AddString("LBJCLID", PageParam.GetRTrimString("LBJCLID"));
|
||||
tpp.AddString("TJ", PageParam.GetRTrimString("TJ"));
|
||||
tpp.AddString("LJ", PageParam.GetRTrimString("LJ"));
|
||||
OpenModuleDialog(100860174, tpp);
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
Generated
+106
@@ -0,0 +1,106 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// 此代码由工具生成。
|
||||
// 运行时版本:2.0.50727.9179
|
||||
//
|
||||
// 对此文件的更改可能会导致不正确的行为,并且如果
|
||||
// 重新生成代码,这些更改将会丢失。
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace GThinking.U20261363_N_XLXSBJ {
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// XLBJD_FBJXQList 类。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的类。
|
||||
/// </remarks>
|
||||
public partial class XLBJD_FBJXQList {
|
||||
|
||||
/// <summary>
|
||||
/// AddTable 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Table AddTable;
|
||||
|
||||
/// <summary>
|
||||
/// btnCXQSCL 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtButton btnCXQSCL;
|
||||
|
||||
/// <summary>
|
||||
/// ContentGrid 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtGridView ContentGrid;
|
||||
|
||||
/// <summary>
|
||||
/// txtXLXHID 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.HiddenField txtXLXHID;
|
||||
|
||||
/// <summary>
|
||||
/// txtXLGGID 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.HiddenField txtXLGGID;
|
||||
|
||||
/// <summary>
|
||||
/// txtXLBZID 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.HiddenField txtXLBZID;
|
||||
|
||||
/// <summary>
|
||||
/// txtDYDJID 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.HiddenField txtDYDJID;
|
||||
|
||||
/// <summary>
|
||||
/// txtXH 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.HiddenField txtXH;
|
||||
|
||||
/// <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,125 @@
|
||||
<%@ Page Language="C#" MasterPageFile="~/N_MODEL/Page/MasterSingleGrid.Master" AutoEventWireup="true"
|
||||
CodeBehind="XLBJD_JGECBZSList.aspx.cs" Inherits="GThinking.U20261363_N_XLXSBJ.XLBJD_JGECBZSList" Title="料价追溯" %>
|
||||
|
||||
<%@ MasterType VirtualPath="~/N_MODEL/Page/MasterSingleGrid.Master" %>
|
||||
<asp:Content ID="ContentButton" ContentPlaceHolderID="CPHButton" runat="server">
|
||||
<asp:Table ID="AddTable" runat="server" CellPadding="0" CellSpacing="0">
|
||||
<asp:TableRow>
|
||||
<asp:TableCell>
|
||||
<gtc:gtButton Style="display: none" ID="btnTZJG" OnClick="btnTZJG_Click" runat="server"
|
||||
Visible="true" EnableTheming="false" SkinID="hidden"></gtc:gtButton>
|
||||
</asp:TableCell>
|
||||
<asp:TableCell>
|
||||
<gtc:gtButton Style="display: none" ID="btnRefreshCLHQTZ" OnClick="btnRefreshCLHQTZ_Click"
|
||||
runat="server" Visible="true" EnableTheming="false" SkinID="hidden"></gtc:gtButton>
|
||||
</asp:TableCell>
|
||||
</asp:TableRow>
|
||||
</asp:Table>
|
||||
</asp:Content>
|
||||
<asp:Content ID="ContentForm" ContentPlaceHolderID="CPHForm" runat="server">
|
||||
<div>
|
||||
<table style="width: 100%" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td align="center" style="height: 10px">
|
||||
<table>
|
||||
<tr>
|
||||
<td align="right">
|
||||
<asp:LinkButton ID="lblBJCP" runat="server" Font-Underline="false" OnClick="lblBJCP_Click"></asp:LinkButton>
|
||||
</td>
|
||||
<td align="right">
|
||||
<gtc:gtLabel ID="lblCLCB" runat="server" Width="120px">材料成本合计:</gtc:gtLabel>
|
||||
</td>
|
||||
<td align="left">
|
||||
<table border="0" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td>
|
||||
<gtc:gtNumTextBox ID="txtCLCB" runat="server" DecimalPlaces="2" Width="100px" Enabled="false"></gtc:gtNumTextBox></td>
|
||||
<td>
|
||||
<gtc:gtLabel ID="lblDW" runat="server" Text=""></gtc:gtLabel></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr style="height:10px">
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div id="divGDZSY0" style="height:100%; width:100%;">
|
||||
<gtc:gtGridView ID="grdContentGrid" runat="server" EnableViewState="false" AutoGenerateColumns="False"
|
||||
CellPadding="0" CellSpacing="0" AllowPaging="True" AllowSorting="True" MaintainScrollPositionYOnPostback="true">
|
||||
<Columns>
|
||||
<asp:BoundField DataField="BJCLID" HeaderText="材料编码">
|
||||
<itemstyle width="80px"></itemstyle>
|
||||
<headerstyle width="80px"></headerstyle>
|
||||
</asp:BoundField>
|
||||
<asp:BoundField DataField="BJCLMC" HeaderText="材料名称">
|
||||
<itemstyle width="140px"></itemstyle>
|
||||
<headerstyle width="140px"></headerstyle>
|
||||
</asp:BoundField>
|
||||
<asp:BoundField DataField="BJHQ" HeaderText="报价行情">
|
||||
<itemstyle width="60px"></itemstyle>
|
||||
<headerstyle width="60px"></headerstyle>
|
||||
</asp:BoundField>
|
||||
<asp:BoundField DataField="WLXX" HeaderText="物料信息">
|
||||
<itemstyle width="140px"></itemstyle>
|
||||
<headerstyle width="140px"></headerstyle>
|
||||
</asp:BoundField>
|
||||
<asp:BoundField DataField="CLJG" HeaderText="材料价格(元/Kg)">
|
||||
<itemstyle width="95px" horizontalalign="Right"></itemstyle>
|
||||
<headerstyle width="95px"></headerstyle>
|
||||
</asp:BoundField>
|
||||
<asp:BoundField DataField="CLSL" HeaderText="材料用量">
|
||||
<itemstyle width="95px" horizontalalign="Right"></itemstyle>
|
||||
<headerstyle width="95px"></headerstyle>
|
||||
</asp:BoundField>
|
||||
<asp:BoundField DataField="px0" HeaderText="序号">
|
||||
<itemstyle width="95px"></itemstyle>
|
||||
<headerstyle width="95px"></headerstyle>
|
||||
</asp:BoundField>
|
||||
<asp:BoundField DataField="CLCB" HeaderText="材料成本">
|
||||
<itemstyle width="104px" horizontalalign="Right"></itemstyle>
|
||||
<headerstyle width="104px"></headerstyle>
|
||||
</asp:BoundField>
|
||||
</Columns>
|
||||
<FixRowCol TableHeight="100%" TableWidth="100%" />
|
||||
<ColumnsEx>
|
||||
<gtc:gtGridView_Column DataField="BJCLID" EditType="etString" ShowHint ="true">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="BJCLMC" EditType="etString" ShowHint ="true">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="BJHQ" EditType="etString" ShowHint ="true">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="WLXX" EditType="etString">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="CLJG" EditType="etString">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="CLSL" EditType="etNumber" NumberDecimalPlace="6">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="px0" EditType="etNumber" NumberDecimalPlace="0">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="CLCB" EditType="etNumber" NumberDecimalPlace="5">
|
||||
</gtc:gtGridView_Column>
|
||||
</ColumnsEx>
|
||||
</gtc:gtGridView>
|
||||
</div>
|
||||
<asp:HiddenField ID="txtBJCLID" runat="server" />
|
||||
<asp:HiddenField ID="txtBJCLMC" runat="server" />
|
||||
<asp:HiddenField ID="txtWLXX" runat="server" />
|
||||
|
||||
<script type="text/javascript">
|
||||
function CellClick(sBJCLID,sBJCLMC,sWLXX)
|
||||
{
|
||||
document.getElementById("ctl00_CPHForm_txtBJCLID").value = sBJCLID;
|
||||
document.getElementById("ctl00_CPHForm_txtBJCLMC").value = sBJCLMC;
|
||||
document.getElementById("ctl00_CPHForm_txtWLXX").value = sWLXX;
|
||||
setTimeout("$get('ctl00_CPHButton_btnTZJG').click();", 100);
|
||||
}
|
||||
</script>
|
||||
</asp:Content>
|
||||
<asp:Content ID="ContentSync" ContentPlaceHolderID="CPHSync" runat="server">
|
||||
</asp:Content>
|
||||
|
||||
|
||||
@@ -0,0 +1,465 @@
|
||||
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 System.Collections.Generic;
|
||||
using GThinking.N_MISPRO.Utility;
|
||||
using GThinking.N_MISPRO;
|
||||
|
||||
namespace GThinking.U20261363_N_XLXSBJ
|
||||
{
|
||||
|
||||
[TableMap(DB = "DBERP", DbTableName = "XLXSCLQD", Umid = 100860174, IsWorkFlow = false, IsAttach = false, UseWhr = false)]
|
||||
|
||||
public class XLBJD_JGECBZS : EntityManager
|
||||
{
|
||||
}
|
||||
public partial class XLBJD_JGECBZSList : SingleGridBase
|
||||
{
|
||||
XLBJD_JGECBZS entity = new XLBJD_JGECBZS();
|
||||
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
this.UMID = 100860174;
|
||||
this.UMName = "成本追溯";
|
||||
this.CurMaster = Master;
|
||||
this.ModuleGV = grdContentGrid;
|
||||
this.CurEntity = entity;
|
||||
this.PageWidth = 700;
|
||||
this.PageHeight = 500;
|
||||
|
||||
Master.EnableQueryBtn = false;
|
||||
Master.EnableAttachBtn = false;
|
||||
Master.EnableNewBtn = false;
|
||||
Master.EnableViewBtn = false;
|
||||
Master.EnableEditBtn = false;
|
||||
Master.EnableCopyBtn = false;
|
||||
Master.EnableDeleteBtn = false;
|
||||
|
||||
base.InitPage();
|
||||
ModuleGV.OnClientDblClick = "return false;";
|
||||
|
||||
grdContentGrid.FindColumnByFieldName("px0").Visible = false;
|
||||
if (GetOption(100860000, "BJU002") != null)
|
||||
{
|
||||
grdContentGrid.FindColumnExByFieldName("CLCB").NumberDecimalPlace = CMISproConvert.StrToInt(GetOption(100860000, "BJU002"), 2);
|
||||
txtCLCB.DecimalPlaces = CMISproConvert.StrToInt(GetOption(100860000, "BJU002"), 2);
|
||||
}
|
||||
|
||||
if (GetOption(100860000, "BJU003") != null)
|
||||
{
|
||||
grdContentGrid.FindColumnByFieldName("CLSL").HeaderText = "材料用量(Kg/" + GetOption(100860000, "BJU003") + ")";
|
||||
grdContentGrid.FindColumnByFieldName("CLCB").HeaderText = "材料成本(元/" + GetOption(100860000, "BJU003") + ")";
|
||||
lblDW.Text = "元/" + GetOption(100860000, "BJU003") + "";
|
||||
}
|
||||
|
||||
if (!IsPostBack)
|
||||
{
|
||||
Master_OnStandardQuery(null, null);
|
||||
|
||||
lblBJCP.Text = GetBJCP();
|
||||
}
|
||||
grdContentGrid.FindColumnExByFieldName("CLJG").NumberDecimalPlace = XLBJDUtils.BJCLPriceDecimal;
|
||||
}
|
||||
|
||||
#region 模板继承事件
|
||||
|
||||
protected override void Master_OnStandardQuery(object sender, EventArgs e)
|
||||
{
|
||||
entity.EntityTable.QuerySelSql = "select 1 from XLXSCLQD where 1<>1";
|
||||
base.Master_OnStandardQuery(sender, e);
|
||||
DataSet ds = GetTable();
|
||||
entity.GridDataBind(grdContentGrid, tSession);
|
||||
entity.GridDataBind(grdContentGrid, ds.Tables[0], ds.Tables[0].Rows.Count);
|
||||
grdContentGrid.DataSource = ds;
|
||||
}
|
||||
|
||||
protected override void moduleGV_PageIndexChanging(object sender, GridViewPageEventArgs e)
|
||||
{
|
||||
entity.EntityTable.QuerySelSql = "select 1 from XLXSCLQD where 1<>1";
|
||||
base.moduleGV_PageIndexChanging(sender, e);
|
||||
grdContentGrid.SelectedIndex = -1;
|
||||
DataSet ds = GetTable();
|
||||
entity.GridDataBind(grdContentGrid, tSession);
|
||||
entity.GridDataBind(grdContentGrid, ds.Tables[0], ds.Tables[0].Rows.Count);
|
||||
grdContentGrid.DataSource = ds;
|
||||
}
|
||||
|
||||
protected override void moduleGV_RowDataBound(object sender, GridViewRowEventArgs e)
|
||||
{
|
||||
if (e.Row.RowType == DataControlRowType.DataRow)
|
||||
{
|
||||
//TZCLHQ=Y说明可以调整材料行情
|
||||
if (PageParam.GetRTrimString("TZCLHQ").Equals("Y") && PageParam.GetRTrimString("CANEDIT").Equals("Y"))
|
||||
{
|
||||
//材料价格
|
||||
e.Row.Cells[4].Text = string.Format("<A href='#' onclick=\"CellClick('{0}','{1}','{2}') \"><U>" + strPadRight(e.Row.Cells[4].Text.ToString().Trim(), XLBJDUtils.BJCLPriceDecimal) + "</U></A>",
|
||||
e.Row.Cells[0].Text.Trim(), e.Row.Cells[1].Text.Trim(), e.Row.Cells[3].Text.Trim());
|
||||
}
|
||||
}
|
||||
base.moduleGV_RowDataBound(sender, e);
|
||||
}
|
||||
|
||||
protected override void ReportRecordSetAdd()
|
||||
{
|
||||
DataSet ds = GetTable();
|
||||
AddUserReportDataSet("XLXSBJDMXCLCB", ds);
|
||||
base.ReportRecordSetAdd();
|
||||
}
|
||||
|
||||
protected override void ReportDataSetAdd()
|
||||
{
|
||||
DataSet ds = GetTable();
|
||||
for (int i = 0; i < grdContentGrid.Columns.Count; i++)
|
||||
{
|
||||
string sDataField = ((System.Web.UI.WebControls.BoundField)(grdContentGrid.Columns[i])).DataField.ToString().Trim();
|
||||
string sHeaderText = grdContentGrid.Columns[i].HeaderText;
|
||||
AddUserReportField("XLXSBJDMXCLCB", sDataField, sHeaderText, "S");
|
||||
}
|
||||
base.ReportDataSetAdd();
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region 自定义事件
|
||||
|
||||
private DataSet GetTable()
|
||||
{
|
||||
string sBJDID = PageParam.GetRTrimString("BJDID");
|
||||
string sXH = PageParam.GetRTrimString("XH");
|
||||
|
||||
DataSet dsResult = new DataSet();
|
||||
TDatabase dberp = TContextDatabases.GetDatabase("DBERP");
|
||||
Dictionary<string, string> DicJGYWLID = new Dictionary<string, string>();
|
||||
#region 物料加工原物料ID
|
||||
TSQL sql = new TSQL(dberp);
|
||||
sql.Clear();
|
||||
sql.Add(" select XLXSBJCLWL_WLID,XLXSBJCLWL_JGYWLID ");
|
||||
sql.Add(" from XLXSBJCLWL ");
|
||||
sql.Add(" where XLXSBJCLWL_JGYWLID <> '-' ");
|
||||
DataSet dsWLJGYWL = dberp.OpenDataSet(sql);
|
||||
if (dsWLJGYWL.Tables[0].Rows.Count > 0)
|
||||
{
|
||||
foreach (DataRow trow in dsWLJGYWL.Tables[0].Rows)
|
||||
{
|
||||
string sWLID = trow["XLXSBJCLWL_WLID"].ToString().Trim();
|
||||
string sJGYWLID = trow["XLXSBJCLWL_JGYWLID"].ToString().Trim();
|
||||
if (!DicJGYWLID.ContainsKey(sWLID))
|
||||
{
|
||||
DicJGYWLID.Add(sWLID, sJGYWLID);
|
||||
}
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
#region 不计入成本栏目
|
||||
Dictionary<string, string> DicBJRCLCBLM = new Dictionary<string, string>();
|
||||
if (CMISproDataBase.ExistsRecord("DBERP", "select 1 from XLJGCZBLM where isnull(XLJGCZBLM_BJRCLCB,'N') = 'Y' and isnull(XLJGCZBLM_CLQDL,' ')<>' ' "))
|
||||
{
|
||||
sql.Clear();
|
||||
sql.Add(" select BJDLJZSBJRCBLM_XH,BJDLJZSBJRCBLM_BJDCLCBLMH from BJDLJZSBJRCBLM where BJDLJZSBJRCBLM_BJDID = :pBJDID and BJDLJZSBJRCBLM_XH=:pXH ");
|
||||
sql.ParamByName("pBJDID").Value = sBJDID;
|
||||
sql.ParamByName("pXH").Value = sXH;
|
||||
DataSet dsJRCBLM = dberp.OpenDataSet(sql);
|
||||
if (dsJRCBLM.Tables[0].Rows.Count > 0)
|
||||
{
|
||||
foreach (DataRow trow in dsJRCBLM.Tables[0].Rows)
|
||||
{
|
||||
string sKey = trow["BJDLJZSBJRCBLM_BJDCLCBLMH"].ToString().Trim();
|
||||
if (!DicBJRCLCBLM.ContainsKey(sKey))
|
||||
DicBJRCLCBLM.Add(sKey, sKey);
|
||||
}
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
TSQL tSql = new TSQL(dberp);
|
||||
tSql.Clear();
|
||||
tSql.Add("select XLXSBJDCLCB_BJDID, XLXSBJDCLCB_XH");
|
||||
for (int i = 1; i <= 80; i++)
|
||||
{
|
||||
tSql.Add(string.Format(",XLXSBJDCLCB_CLSL{0}", i.ToString().PadLeft(2, '0').Trim()));
|
||||
tSql.Add(string.Format(",XLXSBJDCLCB_CLID{0}", i.ToString().PadLeft(2, '0').Trim()));
|
||||
tSql.Add(string.Format(",XLXSBJDCLCB_CLDJ{0}", i.ToString().PadLeft(2, '0').Trim()));
|
||||
}
|
||||
tSql.Add(" from XLXSBJDCLCB ");
|
||||
tSql.Add(" where XLXSBJDCLCB_BJDID=:pBJDID and XLXSBJDCLCB_XH=:pXH ");
|
||||
tSql.ParamByName("pBJDID").Value = sBJDID;
|
||||
tSql.ParamByName("pXH").Value = sXH;
|
||||
DataSet dsBJCL = dberp.OpenDataSet(tSql);
|
||||
if (dsBJCL.Tables[0].Rows.Count > 0)
|
||||
{
|
||||
DataTable dt1 = new DataTable();
|
||||
DataTable dt2 = new DataTable();
|
||||
dt1.Columns.Add("BJCLID", typeof(string));
|
||||
dt1.Columns.Add("BJCLMC", typeof(string));
|
||||
dt1.Columns.Add("BJHQ", typeof(string));
|
||||
dt1.Columns.Add("WLXX", typeof(string));
|
||||
dt1.Columns.Add("CLJG", typeof(string));
|
||||
dt1.Columns.Add("CLSL", typeof(double));
|
||||
dt1.Columns.Add("px0", typeof(double));
|
||||
dt1.Columns.Add("CLCB", typeof(double));
|
||||
dt2.Columns.Add("BJCLID", typeof(string));
|
||||
dt2.Columns.Add("BJCLMC", typeof(string));
|
||||
dt2.Columns.Add("BJHQ", typeof(string));
|
||||
dt2.Columns.Add("WLXX", typeof(string));
|
||||
dt2.Columns.Add("CLJG", typeof(string));
|
||||
dt2.Columns.Add("CLSL", typeof(double));
|
||||
dt2.Columns.Add("px0", typeof(double));
|
||||
dt2.Columns.Add("CLCB", typeof(double));
|
||||
for (int i = 1; i <= 80; i++)
|
||||
{
|
||||
string sBJRCBLMKey = i.ToString().PadLeft(2, '0');
|
||||
string sCLID = dsBJCL.Tables[0].Rows[0][string.Format("XLXSBJDCLCB_CLID{0}", i.ToString().PadLeft(2, '0').Trim())].ToString().Trim();
|
||||
if (sCLID.Equals(""))
|
||||
{
|
||||
//避免出现跳空列的情况
|
||||
continue;
|
||||
}
|
||||
string sBJCLID = "";
|
||||
string sWLID = "";
|
||||
if (sCLID.Contains("|"))
|
||||
{
|
||||
sBJCLID = sCLID.Split('|')[0];
|
||||
sWLID = sCLID.Split('|')[1];
|
||||
}
|
||||
else
|
||||
sBJCLID = sCLID;
|
||||
|
||||
string sCLSL = dsBJCL.Tables[0].Rows[0][string.Format("XLXSBJDCLCB_CLSL{0}", i.ToString().PadLeft(2, '0').Trim())].ToString().Trim();
|
||||
double dCLSL = CMISproConvert.StrToFloat(sCLSL);
|
||||
string sCLDJ = dsBJCL.Tables[0].Rows[0][string.Format("XLXSBJDCLCB_CLDJ{0}", i.ToString().PadLeft(2, '0').Trim())].ToString().Trim();
|
||||
string sCLCB = NumberUtils.RoundX(CMISproConvert.StrToFloat(sCLSL) * CMISproConvert.StrToFloat(sCLDJ), 6).ToString().Trim();
|
||||
if (dCLSL > 0)//数量大于0的存放在dt1,不大于0的存在dt2
|
||||
{
|
||||
if (DicJGYWLID.ContainsKey(sWLID))
|
||||
sWLID = DicJGYWLID[sWLID];
|
||||
string sWLXX = GetWLXX(sWLID);
|
||||
string sBJCLMC = GetBJCLMC(sBJCLID);
|
||||
if (DicBJRCLCBLM.ContainsKey(sBJRCBLMKey))
|
||||
sBJCLMC += "(不计入成本)";
|
||||
string sBJHQ = GetBJCLHQ(sBJCLID);
|
||||
DataRow dtrow = dt1.NewRow();
|
||||
dtrow["BJCLID"] = sBJCLID;
|
||||
dtrow["BJCLMC"] = sBJCLMC;
|
||||
dtrow["BJHQ"] = sBJHQ;
|
||||
dtrow["WLXX"] = sWLXX;
|
||||
dtrow["CLJG"] = sCLDJ;
|
||||
dtrow["CLSL"] = dCLSL;
|
||||
dtrow["px0"] = 0;
|
||||
dtrow["CLCB"] = CMISproConvert.StrToFloat(sCLCB);
|
||||
if (DicBJRCLCBLM.ContainsKey(sBJRCBLMKey))
|
||||
dtrow["CLCB"] = 0;
|
||||
dt1.Rows.Add(dtrow);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
dsResult.Tables.Add(dt1);
|
||||
}
|
||||
|
||||
txtCLCB.Value = 0;
|
||||
for (int i = 0; i < dsResult.Tables[0].Rows.Count; i++)
|
||||
{
|
||||
txtCLCB.Value += CMISproConvert.StrToFloat(dsResult.Tables[0].Rows[i]["CLCB"].ToString());
|
||||
}
|
||||
return dsResult;
|
||||
}
|
||||
|
||||
private string GetBJCLMC(string sBJCLID)
|
||||
{
|
||||
TDatabase dberp = TContextDatabases.GetDatabase("DBERP");
|
||||
TSQL sql = new TSQL(dberp);
|
||||
sql.Add(" select XLXSBJCL_BJCLMC from XLXSBJCL where XLXSBJCL_BJCLID=:pBJCLID ");
|
||||
sql.ParamByName("pBJCLID").Value = sBJCLID.Trim();
|
||||
DataSet ds = dberp.OpenDataSet(sql);
|
||||
if (ds.Tables[0].Rows.Count > 0)
|
||||
return ds.Tables[0].Rows[0]["XLXSBJCL_BJCLMC"].ToString().Trim();
|
||||
else
|
||||
return "";
|
||||
}
|
||||
private string GetBJCLHQ(string sBJCLID)
|
||||
{
|
||||
TDatabase dberp = TContextDatabases.GetDatabase("DBERP");
|
||||
TSQL sql = new TSQL(dberp);
|
||||
sql.Add(" select case XLXSBJCL_BJHQ when '1' then '1|材料行情' else '2|物料行情' end as XLXSBJCL_BJHQ from XLXSBJCL where XLXSBJCL_BJCLID=:pBJCLID ");
|
||||
sql.ParamByName("pBJCLID").Value = sBJCLID.Trim();
|
||||
DataSet ds = dberp.OpenDataSet(sql);
|
||||
if (ds.Tables[0].Rows.Count > 0)
|
||||
return ds.Tables[0].Rows[0]["XLXSBJCL_BJHQ"].ToString().Trim();
|
||||
else
|
||||
return "";
|
||||
}
|
||||
|
||||
private string GetWLXX(string sWLID)
|
||||
{
|
||||
TDatabase dberp = TContextDatabases.GetDatabase("DBERP");
|
||||
TSQL sql = new TSQL(dberp);
|
||||
sql.Add("select WL_MC,WL_GG from WL where WL_WLID=:pWLID");
|
||||
sql.ParamByName("pWLID").Value = sWLID.Trim();
|
||||
DataSet ds = dberp.OpenDataSet(sql);
|
||||
if (ds.Tables[0].Rows.Count > 0)
|
||||
return sWLID.Trim() + "|" + ds.Tables[0].Rows[0]["WL_MC"].ToString().Trim() + "|" + ds.Tables[0].Rows[0]["WL_GG"].ToString().Trim();
|
||||
else
|
||||
return sWLID.Trim();
|
||||
}
|
||||
|
||||
private string GetBJCP()
|
||||
{
|
||||
string sRetValue = "";
|
||||
string sXLXHID = PageParam.GetRTrimString("XLXHID");
|
||||
string sXLGGID = PageParam.GetRTrimString("XLGGID");
|
||||
string sXLBZID = GetXLBZXX(PageParam.GetRTrimString("XLBZID"));
|
||||
string sDYDJID = PageParam.GetRTrimString("DYDJID");
|
||||
|
||||
if (!sXLXHID.Equals(""))
|
||||
{
|
||||
sRetValue = sRetValue + " " + sXLXHID;
|
||||
}
|
||||
|
||||
if (!sXLGGID.Equals(""))
|
||||
{
|
||||
sRetValue = sRetValue + " " + sXLGGID;
|
||||
}
|
||||
|
||||
if (!sXLBZID.Equals(""))
|
||||
{
|
||||
sRetValue = sRetValue + " " + sXLBZID;
|
||||
}
|
||||
|
||||
if (!sDYDJID.Equals(""))
|
||||
{
|
||||
sRetValue = sRetValue + " " + sDYDJID;
|
||||
}
|
||||
sRetValue = sRetValue.Trim();
|
||||
return sRetValue;
|
||||
}
|
||||
|
||||
private string GetXLBZXX(string sXLBZID)
|
||||
{
|
||||
TDatabase dberp = TContextDatabases.GetDatabase("DBERP");
|
||||
TSQL SQL = new TSQL(dberp);
|
||||
SQL.Clear();
|
||||
SQL.Add(" select rtrim(XLBZ_XLBZID)||'|'||rtrim(XLBZ_XLBZLXMC) as XLBZ_XLBZID from XLBZ where XLBZ_XLBZID= :pXLBZID ");
|
||||
SQL.ParamByName("pXLBZID").Value = sXLBZID;
|
||||
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 strPadRight(string s, int x)
|
||||
{
|
||||
string str = s;
|
||||
if (str.Split('.').Length == 2)
|
||||
{
|
||||
str = str.Split('.')[0] + "." + str.Split('.')[1].PadRight(x, '0');
|
||||
}
|
||||
else
|
||||
{
|
||||
string tmp = "0";
|
||||
if (x > 0)
|
||||
{
|
||||
tmp = tmp.PadRight(x, '0');
|
||||
str = str + "." + tmp;
|
||||
}
|
||||
}
|
||||
return str;
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region 按钮事件
|
||||
|
||||
protected void btnTZJG_Click(object sender, EventArgs e)
|
||||
{
|
||||
TPageParams pageParams = new TPageParams();
|
||||
pageParams.UrlPath = "XLBJD_CLHQTZList.aspx";
|
||||
pageParams.Title = "调整材料行情" + ":" + txtBJCLID.Value.Trim() + "|" + txtBJCLMC.Value.Trim() + (txtWLXX.Value.Trim().Equals("") ? "" : "【" + txtWLXX.Value.Trim() + "】");
|
||||
pageParams.AddString("BJFLID", PageParam.GetRTrimString("BJFLID"));
|
||||
pageParams.AddString("BJDID", PageParam.GetRTrimString("BJDID"));
|
||||
pageParams.AddString("BJRQ", PageParam.GetRTrimString("BJRQ"));
|
||||
pageParams.AddString("JGBID", PageParam.GetRTrimString("JGBID"));
|
||||
pageParams.AddString("JCLLX", PageParam.GetRTrimString("JCLLX"));
|
||||
pageParams.AddString("LJJCLLX", PageParam.GetRTrimString("LJJCLLX"));
|
||||
pageParams.AddString("BJDHQLY", PageParam.GetRTrimString("BJDHQLY"));
|
||||
pageParams.AddString("BJLY", PageParam.GetRTrimString("BJLY"));
|
||||
pageParams.AddString("ZDXJJCLLX", PageParam.GetRTrimString("ZDXJJCLLX"));
|
||||
pageParams.AddString("btnRefreshCID", btnRefreshCLHQTZ.ClientID);
|
||||
|
||||
pageParams.AddString("HSBZ", PageParam.GetRTrimString("HSBZ"));
|
||||
pageParams.AddString("TBJCLID", PageParam.GetRTrimString("TBJCLID"));
|
||||
pageParams.AddString("LBJCLID", PageParam.GetRTrimString("LBJCLID"));
|
||||
pageParams.AddString("TJ", PageParam.GetRTrimString("TJ"));
|
||||
pageParams.AddString("LJ", PageParam.GetRTrimString("LJ"));
|
||||
pageParams.AddString("CPBJMRXSWS", PageParam.GetRTrimString("CPBJMRXSWS"));
|
||||
|
||||
pageParams.AddString("JYF", PageParam.GetRTrimString("JYF"));//计运费
|
||||
pageParams.AddString("YSJDID", PageParam.GetRTrimString("YSJDID"));//运输节点
|
||||
pageParams.AddString("GYSID", PageParam.GetRTrimString("GYSID"));//运输单位
|
||||
pageParams.AddString("YFWLID", PageParam.GetRTrimString("YFWLID"));//运费物料
|
||||
pageParams.AddString("BJHYF", PageParam.GetRTrimString("BJHYF"));//报价含运费
|
||||
|
||||
pageParams.AddString("BJCLID", txtBJCLID.Value.Trim());
|
||||
OpenModuleDialog(100860174, pageParams);
|
||||
}
|
||||
|
||||
protected void btnRefreshCLHQTZ_Click(object sender, EventArgs e)
|
||||
{
|
||||
int iIndex = grdContentGrid.SelectedIndex;
|
||||
moduleGV_PageIndexChanging(null, null);
|
||||
grdContentGrid.SelectedIndex = iIndex;
|
||||
}
|
||||
|
||||
protected void lblBJCP_Click(object sender, EventArgs e)
|
||||
{
|
||||
string sJGCZBIDFromJGCZBML = "";
|
||||
string sJGCZBBBIDFromJGCZBML = "";
|
||||
string sXLXHID = PageParam.GetRTrimString("XLXHID");
|
||||
string sXLGGID = PageParam.GetRTrimString("XLGGID");
|
||||
string sXLBZID = PageParam.GetRTrimString("XLBZID");
|
||||
string sDYDJID = PageParam.GetRTrimString("DYDJID");
|
||||
TDatabase dberp = TContextDatabases.GetDatabase("DBERP");
|
||||
TSQL sql = new TSQL(dberp);
|
||||
sql.Clear();
|
||||
sql.Add(" select XLXSCLQD_JGCZBID as JGCZBID, XLXSCLQD_JGCZBBBID as JGCZBBBID");
|
||||
sql.Add(" from XLXSCLQD where 1=1 and XLXSCLQD_WPID ='ZZZZ' ");
|
||||
sql.Add(" and XLXSCLQD_XLXHID = :pXLXHID ");
|
||||
sql.Add(" and XLXSCLQD_XLGGID = :pXLGGID ");
|
||||
sql.Add(" and XLXSCLQD_XLBZID = :pXLBZID ");
|
||||
sql.Add(" and XLXSCLQD_DYDJID = :pDYDJID ");
|
||||
sql.ParamByName("pXLXHID").Value = sXLXHID;
|
||||
sql.ParamByName("pXLGGID").Value = sXLGGID;
|
||||
sql.ParamByName("pXLBZID").Value = sXLBZID;
|
||||
sql.ParamByName("pDYDJID").Value = sDYDJID.Equals("") ? " " : sDYDJID;
|
||||
DataSet ds = dberp.OpenDataSet(sql);
|
||||
if (ds.Tables[0].Rows.Count > 0)
|
||||
{
|
||||
sJGCZBBBIDFromJGCZBML = ds.Tables[0].Rows[0]["JGCZBBBID"].ToString().Trim();
|
||||
sJGCZBIDFromJGCZBML = ds.Tables[0].Rows[0]["JGCZBID"].ToString().Trim() + "|" + sJGCZBBBIDFromJGCZBML;
|
||||
}
|
||||
else
|
||||
{
|
||||
ShowMessage("未查询到结构尺重表信息,请在102579008|报价材料用量模块检查该记录是否补充完整并流转结束!");
|
||||
return;
|
||||
}
|
||||
|
||||
TPageParams tpp = new TPageParams();
|
||||
tpp.UrlPath = "../Components/N_XLBJCL/CLQDList.aspx";
|
||||
tpp.CallAction = TPageCallAction.pcaBrowse;
|
||||
tpp.AddString("JGCZBIDFromJGCZBML", sJGCZBIDFromJGCZBML);
|
||||
tpp.AddString("JGCZBBBIDFromJGCZBML", sJGCZBBBIDFromJGCZBML);
|
||||
OpenFuncModuleDialog(102579001, tpp);
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
Generated
+133
@@ -0,0 +1,133 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// 此代码由工具生成。
|
||||
// 运行时版本:2.0.50727.9179
|
||||
//
|
||||
// 对此文件的更改可能会导致不正确的行为,并且如果
|
||||
// 重新生成代码,这些更改将会丢失。
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace GThinking.U20261363_N_XLXSBJ {
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// XLBJD_JGECBZSList 类。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的类。
|
||||
/// </remarks>
|
||||
public partial class XLBJD_JGECBZSList {
|
||||
|
||||
/// <summary>
|
||||
/// AddTable 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Table AddTable;
|
||||
|
||||
/// <summary>
|
||||
/// btnTZJG 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtButton btnTZJG;
|
||||
|
||||
/// <summary>
|
||||
/// btnRefreshCLHQTZ 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtButton btnRefreshCLHQTZ;
|
||||
|
||||
/// <summary>
|
||||
/// lblBJCP 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.LinkButton lblBJCP;
|
||||
|
||||
/// <summary>
|
||||
/// lblCLCB 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtLabel lblCLCB;
|
||||
|
||||
/// <summary>
|
||||
/// txtCLCB 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtNumTextBox txtCLCB;
|
||||
|
||||
/// <summary>
|
||||
/// lblDW 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtLabel lblDW;
|
||||
|
||||
/// <summary>
|
||||
/// grdContentGrid 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtGridView grdContentGrid;
|
||||
|
||||
/// <summary>
|
||||
/// txtBJCLID 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.HiddenField txtBJCLID;
|
||||
|
||||
/// <summary>
|
||||
/// txtBJCLMC 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.HiddenField txtBJCLMC;
|
||||
|
||||
/// <summary>
|
||||
/// txtWLXX 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.HiddenField txtWLXX;
|
||||
|
||||
/// <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,144 @@
|
||||
<%@ Page Language="C#" MasterPageFile="~/N_MODEL/Page/MasterSingleCard.Master" AutoEventWireup="true"
|
||||
Codebehind="XLBJD_JGFLDInfo.aspx.cs" Inherits="GThinking.U20261363_N_XLXSBJ.XLBJD_JGFLDInfo"
|
||||
Title="设置加工料/加工原料行情" %>
|
||||
|
||||
<%@ MasterType VirtualPath="~/N_MODEL/Page/MasterSingleCard.Master" %>
|
||||
<asp:Content ID="cntTool" ContentPlaceHolderID="cphUserToolbar" runat="server">
|
||||
<asp:Table CellPadding="0" CellSpacing="0" runat="server" ID="tbl1">
|
||||
<asp:TableRow>
|
||||
<asp:TableCell>
|
||||
<gtc:gtToolButton ID="btnQR" runat="server" Caption="确 认" ShowCaption="true" OnClick="btnQR_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="cntForm" ContentPlaceHolderID="cphForm" runat="server">
|
||||
<div id="div2">
|
||||
<%--加工料--%>
|
||||
<table style="width: 100%" id="table2" runat="server">
|
||||
<tr>
|
||||
<td align="right">
|
||||
<gtc:gtLabel ID="GtLabel4" runat="server">加工原料:</gtc:gtLabel>
|
||||
</td>
|
||||
<td align="left">
|
||||
<gtc:gtComboBox ID="cbxJGYLID" runat="server" Width="120px" ReadOnly="true" ShowValue="false">
|
||||
</gtc:gtComboBox>
|
||||
</td>
|
||||
<td align="right">
|
||||
<gtc:gtLabel ID="lblZZSL" runat="server" Text="增值税率:"></gtc:gtLabel>
|
||||
</td>
|
||||
<td align="left">
|
||||
<gtc:gtNumTextBox ID="txtJGLZZSL" runat="server" Width="72px" DecimalPlaces="2" ShowZero="false"
|
||||
ReadOnly="true"></gtc:gtNumTextBox>
|
||||
<gtc:gtLabel ID="lblZZSLTag" runat="server" Text="%" Width="6px"></gtc:gtLabel>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="right">
|
||||
<gtc:gtLabel ID="GtLabel13" runat="server">无税材料价格:</gtc:gtLabel>
|
||||
</td>
|
||||
<td align="left">
|
||||
<gtc:gtNumTextBox ID="txtJCCLJG" runat="server" Width="72px" ReadOnly="true"></gtc:gtNumTextBox>
|
||||
<gtc:gtLabel ID="GtLabel14" runat="server">元/Kg</gtc:gtLabel>
|
||||
</td>
|
||||
<td align="right">
|
||||
<gtc:gtLabel ID="GtLabel15" runat="server">含税材料价格:</gtc:gtLabel>
|
||||
</td>
|
||||
<td align="left">
|
||||
<gtc:gtNumTextBox ID="txtJCHSJG" runat="server" Width="72px" ReadOnly="true"></gtc:gtNumTextBox>
|
||||
<gtc:gtLabel ID="GtLabel16" runat="server">元/Kg</gtc:gtLabel>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="right">
|
||||
<gtc:gtLabel ID="GtLabel12" runat="server">加工料:</gtc:gtLabel>
|
||||
</td>
|
||||
<td align="left">
|
||||
<gtc:gtComboBox ID="cbxJGLID" runat="server" Width="120px" ReadOnly="true" ShowValue="false">
|
||||
</gtc:gtComboBox>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="right">
|
||||
<gtc:gtLabel ID="lblWSJGF" runat="server">无税加工费:</gtc:gtLabel>
|
||||
</td>
|
||||
<td align="left">
|
||||
<gtc:gtNumTextBox ID="txtJGLWSJGF" runat="server" Width="72px" AutoPostBack="true"
|
||||
OnTextChanged="txtJGLWSJGF_OnTextChanged"></gtc:gtNumTextBox>
|
||||
<gtc:gtLabel ID="lblWSJGFRMB" runat="server">元/Kg</gtc:gtLabel>
|
||||
</td>
|
||||
<td align="right">
|
||||
<gtc:gtLabel ID="lblHSJGF" runat="server">含税加工费:</gtc:gtLabel>
|
||||
</td>
|
||||
<td align="left">
|
||||
<gtc:gtNumTextBox ID="txtJGLHSJGF" runat="server" Width="72px" AutoPostBack="true"
|
||||
OnTextChanged="txtJGLHSJGF_OnTextChanged"></gtc:gtNumTextBox>
|
||||
<gtc:gtLabel ID="lblHSJGFRMB" runat="server">元/Kg</gtc:gtLabel>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="right">
|
||||
<gtc:gtLabel ID="GtLabel1" runat="server">无税材料价格:</gtc:gtLabel>
|
||||
</td>
|
||||
<td align="left">
|
||||
<gtc:gtNumTextBox ID="txtJGLCLJG" runat="server" Width="72px" ReadOnly="true"></gtc:gtNumTextBox>
|
||||
<gtc:gtLabel ID="GtLabel2" runat="server">元/Kg</gtc:gtLabel>
|
||||
</td>
|
||||
<td align="right">
|
||||
<gtc:gtLabel ID="GtLabel3" runat="server">含税材料价格:</gtc:gtLabel>
|
||||
</td>
|
||||
<td align="left">
|
||||
<gtc:gtNumTextBox ID="txtJGLHSJG" runat="server" Width="72px" ReadOnly="true"></gtc:gtNumTextBox>
|
||||
<gtc:gtLabel ID="GtLabel5" runat="server">元/Kg</gtc:gtLabel>
|
||||
</td>
|
||||
</tr>
|
||||
<%--end--%>
|
||||
</table>
|
||||
<table style="width: 100%" id="table3" runat="server">
|
||||
<%--加工原料--%>
|
||||
<tr style="height: 8px">
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="right">
|
||||
<gtc:gtLabel ID="GtLabel7" runat="server" Text="增值税率:"></gtc:gtLabel>
|
||||
</td>
|
||||
<td align="left">
|
||||
<gtc:gtNumTextBox ID="txtJGYLZZSL" runat="server" Width="72px" DecimalPlaces="2"
|
||||
ShowZero="false" ReadOnly="true"></gtc:gtNumTextBox>
|
||||
<gtc:gtLabel ID="GtLabel8" runat="server" Text="%" Width="6px"></gtc:gtLabel>
|
||||
</td>
|
||||
<td>
|
||||
</td>
|
||||
<td>
|
||||
</td>
|
||||
</tr>
|
||||
<tr style="height: 8px">
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="right">
|
||||
<gtc:gtLabel ID="GtLabel6" runat="server">无税材料价格:</gtc:gtLabel>
|
||||
</td>
|
||||
<td align="left">
|
||||
<gtc:gtNumTextBox ID="txtJGYLCLJG" runat="server" Width="72px" AutoPostBack="true"
|
||||
OnTextChanged="txtJGYLCLJG_OnTextChanged"></gtc:gtNumTextBox>
|
||||
<gtc:gtLabel ID="GtLabel9" runat="server">元/Kg</gtc:gtLabel>
|
||||
</td>
|
||||
<td align="right">
|
||||
<gtc:gtLabel ID="GtLabel10" runat="server">含税材料价格:</gtc:gtLabel>
|
||||
</td>
|
||||
<td align="left">
|
||||
<gtc:gtNumTextBox ID="txtJGYLHSJG" runat="server" Width="72px" AutoPostBack="true"
|
||||
OnTextChanged="txtJGYLHSJG_OnTextChanged"></gtc:gtNumTextBox>
|
||||
<gtc:gtLabel ID="GtLabel11" runat="server">元/Kg</gtc:gtLabel>
|
||||
</td>
|
||||
</tr>
|
||||
<%--end--%>
|
||||
</table>
|
||||
</div>
|
||||
</asp:Content>
|
||||
|
||||
@@ -0,0 +1,703 @@
|
||||
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_WORKFLOW;
|
||||
using System.Collections.Generic;
|
||||
using GThinking.N_CONTROL;
|
||||
using System.Text;
|
||||
|
||||
namespace GThinking.U20261363_N_XLXSBJ
|
||||
{
|
||||
|
||||
[TableMap(DB = "DBERP", DbTableName = "XLXSJGBMX", Umid = 100860174, IsWorkFlow = false, IsAttach = false, UseWhr = true,
|
||||
|
||||
QuerySelSql = " ",
|
||||
|
||||
EntitySelSql = " ",
|
||||
|
||||
UpdateSql = " ",
|
||||
|
||||
InsertSql = " ",
|
||||
|
||||
DeleteSql = " ")]
|
||||
|
||||
public class XLBJD_JGFLD : EntityManager
|
||||
{
|
||||
|
||||
}
|
||||
public partial class XLBJD_JGFLDInfo : SingleCardBase
|
||||
{
|
||||
XLBJD_JGFLD entity = new XLBJD_JGFLD();
|
||||
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
this.UMID = 100860174;
|
||||
this.UMName = "线缆销售报价单";
|
||||
this.CurMaster = Master;
|
||||
this.CurEntity = entity;
|
||||
this.PageHeight = 180;
|
||||
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;
|
||||
|
||||
txtJCCLJG.DecimalPlaces = XLBJDUtils.BJCLPriceDecimal;
|
||||
txtJCHSJG.DecimalPlaces = XLBJDUtils.BJCLPriceDecimal;
|
||||
txtJGLWSJGF.DecimalPlaces = XLBJDUtils.BJCLPriceDecimal;
|
||||
txtJGLHSJGF.DecimalPlaces = XLBJDUtils.BJCLPriceDecimal;
|
||||
txtJGLCLJG.DecimalPlaces = XLBJDUtils.BJCLPriceDecimal;
|
||||
txtJGLHSJG.DecimalPlaces = XLBJDUtils.BJCLPriceDecimal;
|
||||
txtJGYLCLJG.DecimalPlaces = XLBJDUtils.BJCLPriceDecimal;
|
||||
txtJGYLHSJG.DecimalPlaces = XLBJDUtils.BJCLPriceDecimal;
|
||||
|
||||
base.InitPage();
|
||||
|
||||
if (!this.IsPostBack)
|
||||
{
|
||||
InitControls();
|
||||
}
|
||||
}
|
||||
|
||||
#region 模板事件继承
|
||||
|
||||
#endregion
|
||||
|
||||
#region 自定义函数
|
||||
|
||||
private void InitControls()
|
||||
{
|
||||
int flag = 0;
|
||||
DataSet dsBJCL = null;
|
||||
string sBJCLID = PageParam.GetRTrimString("BJCLID");
|
||||
string sJGBID = PageParam.GetRTrimString("JGBID");
|
||||
string sBJDID = PageParam.GetRTrimString("BJDID");
|
||||
string sBJDHQLY = PageParam.GetRTrimString("BJDHQLY");
|
||||
string sBJLY = PageParam.GetRTrimString("BJLY");
|
||||
string sBJFLID = PageParam.GetRTrimString("BJFLID");
|
||||
string sBJRQ = PageParam.GetRTrimString("BJRQ");
|
||||
TDatabase dberp = TContextDatabases.GetDatabase("DBERP");
|
||||
TSQL SQL = new TSQL(dberp);
|
||||
if (!sBJCLID.Equals(""))
|
||||
{
|
||||
SQL.Clear();
|
||||
SQL.Add(" select XLXSBJCL_JGYBJCLID,XLXSBJCL_BJCLID,XLXSBJCL_BJCLMC from XLXSBJCL where (XLXSBJCL_BJCLID = :pBJCLID or XLXSBJCL_JGYBJCLID = :pBJCLID) order by XLXSBJCL_JGYBJCLID ");
|
||||
SQL.ParamByName("pBJCLID").Value = sBJCLID;
|
||||
dsBJCL = dberp.OpenDataSet(SQL);
|
||||
if (dsBJCL.Tables[0].Rows.Count > 0)
|
||||
{
|
||||
//判断 加工原料 铜
|
||||
for (int i = 0; i < dsBJCL.Tables[0].Rows.Count; i++)
|
||||
{
|
||||
if (dsBJCL.Tables[0].Rows[i]["XLXSBJCL_JGYBJCLID"].ToString().Trim().Equals(""))
|
||||
{
|
||||
flag = 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
flag = 2;
|
||||
}
|
||||
}
|
||||
|
||||
//加工料----table2
|
||||
//加工原料----table3
|
||||
|
||||
//铜丝
|
||||
if (0 == flag)
|
||||
{
|
||||
table2.Style["display"] = "block";
|
||||
table3.Style["display"] = "none";
|
||||
txtJGLZZSL.Value = CMISproConvert.StrToFloat(PageParam.GetRTrimString("ZZSL"));
|
||||
txtJGLCLJG.Value = CMISproConvert.StrToFloat(PageParam.GetRTrimString("CLJG"));
|
||||
txtJGLHSJG.Value = CMISproConvert.StrToFloat(PageParam.GetRTrimString("HSJG"));
|
||||
|
||||
txtJGLWSJGF.Value = CMISproConvert.StrToFloat(PageParam.GetRTrimString("WSJGF"));
|
||||
txtJGLHSJGF.Value = CMISproConvert.StrToFloat(PageParam.GetRTrimString("HSJGF"));
|
||||
//加工原料-铜
|
||||
string sJGYBJCLID = dsBJCL.Tables[0].Rows[0]["XLXSBJCL_JGYBJCLID"].ToString().Trim();
|
||||
TComboBox.SetComboBox("DBERP", cbxJGYLID, "select XLXSBJCL_BJCLID,XLXSBJCL_BJCLMC from XLXSBJCL where 1=1 order by XLXSBJCL_BJCLID", false);
|
||||
TComboBox.SetComboBox("DBERP", cbxJGLID, "select XLXSBJCL_BJCLID,XLXSBJCL_BJCLMC from XLXSBJCL where 1=1 order by XLXSBJCL_BJCLID", false);
|
||||
cbxJGYLID.SelectedValue = dsBJCL.Tables[0].Rows[0]["XLXSBJCL_JGYBJCLID"].ToString().Trim();
|
||||
cbxJGLID.SelectedValue = sBJCLID;
|
||||
txtJCCLJG.Value = CMISproConvert.StrToFloat(PageParam.GetRTrimString("JCCLJG"));
|
||||
txtJCHSJG.Value = CMISproConvert.StrToFloat(PageParam.GetRTrimString("JCHSJG"));
|
||||
|
||||
}
|
||||
//铜
|
||||
else if (1 == flag)
|
||||
{
|
||||
table2.Style["display"] = "none";
|
||||
table3.Style["display"] = "block";
|
||||
txtJGYLZZSL.Value = CMISproConvert.StrToFloat(PageParam.GetRTrimString("ZZSL"));
|
||||
txtJGYLCLJG.Value = CMISproConvert.StrToFloat(PageParam.GetRTrimString("CLJG"));
|
||||
txtJGYLHSJG.Value = CMISproConvert.StrToFloat(PageParam.GetRTrimString("HSJG"));
|
||||
}
|
||||
else
|
||||
{
|
||||
table2.Style["display"] = "none";
|
||||
table3.Style["display"] = "none";
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region 控件事件
|
||||
|
||||
protected void btnQR_Click(object sender, EventArgs e)
|
||||
{
|
||||
int flag = 0;
|
||||
DataSet dsBJCL = null;
|
||||
string sBJCLID = PageParam.GetRTrimString("BJCLID");
|
||||
string sJGBID = PageParam.GetRTrimString("JGBID");
|
||||
string sBJDID = PageParam.GetRTrimString("BJDID");
|
||||
string sWLVID = PageParam.GetRTrimString("WLVID");
|
||||
string sCLVID = PageParam.GetRTrimString("CLVID");
|
||||
string sBJDHQLY = PageParam.GetRTrimString("BJDHQLY");
|
||||
string sBJLY = PageParam.GetRTrimString("BJLY");
|
||||
string sBJFLID = PageParam.GetRTrimString("BJFLID");
|
||||
string sBJRQ = PageParam.GetRTrimString("BJRQ");
|
||||
string sJGYBJCLID1 = PageParam.GetRTrimString("JGYBJCLID1");
|
||||
double fJGBL1 = CMISproConvert.StrToFloat(PageParam.GetRTrimString("JGBL1"));
|
||||
TDatabase dberp = TContextDatabases.GetDatabase("DBERP");
|
||||
TSQL SQL = new TSQL(dberp);
|
||||
if (!sBJCLID.Equals(""))
|
||||
{
|
||||
SQL.Clear();
|
||||
SQL.Add(" select XLXSBJCL_JGYBJCLID,XLXSBJCL_BJCLID,XLXSBJCL_BJCLMC from XLXSBJCL where (XLXSBJCL_BJCLID = :pBJCLID or XLXSBJCL_JGYBJCLID = :pBJCLID) order by XLXSBJCL_JGYBJCLID ");
|
||||
SQL.ParamByName("pBJCLID").Value = sBJCLID;
|
||||
dsBJCL = dberp.OpenDataSet(SQL);
|
||||
if (dsBJCL.Tables[0].Rows.Count > 0)
|
||||
{
|
||||
//判断 加工原料 铜
|
||||
for (int i = 0; i < dsBJCL.Tables[0].Rows.Count; i++)
|
||||
{
|
||||
if (dsBJCL.Tables[0].Rows[i]["XLXSBJCL_JGYBJCLID"].ToString().Trim().Equals(""))
|
||||
{
|
||||
flag = 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
flag = 2;
|
||||
}
|
||||
}
|
||||
|
||||
try
|
||||
{
|
||||
SQL.Clear();
|
||||
SQL.Add(" select V_XLXSBJDCLHQ_WSJG,V_XLXSBJDCLHQ_HSJG from V_XLXSBJDCLHQ where V_XLXSBJDCLHQ_BJCLID = :pBJCLID and V_XLXSBJDCLHQ_BJDID = :pBJDID ");
|
||||
SQL.Add(" and V_XLXSBJDCLHQ_ID = :pCLVID and V_XLXSBJDCLHQ_TZRYID = :pRYID ");
|
||||
SQL.ParamByName("pBJCLID").Value = sBJCLID;
|
||||
SQL.ParamByName("pBJDID").Value = sBJDID;
|
||||
SQL.ParamByName("pCLVID").Value = sCLVID;
|
||||
SQL.ParamByName("pRYID").Value = tSession.RYID;
|
||||
DataSet dsBJDCLHQ = dberp.OpenDataSet(SQL);
|
||||
//铜丝
|
||||
if (0 == flag)
|
||||
{
|
||||
//加工料
|
||||
//if (txtJGLWSJGF.Value < 0)
|
||||
//{
|
||||
// ShowMessage("无税加工费不允许小于0!");
|
||||
// return;
|
||||
//}
|
||||
|
||||
//if (txtJGLHSJGF.Value < 0)
|
||||
//{
|
||||
// ShowMessage("含税加工费不允许小于0!");
|
||||
// return;
|
||||
//}
|
||||
if (txtJGLCLJG.Value < 0)
|
||||
{
|
||||
ShowMessage("无税材料价格不允许小于0!");
|
||||
return;
|
||||
}
|
||||
|
||||
if (txtJGLHSJG.Value < 0)
|
||||
{
|
||||
ShowMessage("含税材料价格不允许小于0!");
|
||||
return;
|
||||
}
|
||||
if (dsBJDCLHQ.Tables[0].Rows.Count > 0)
|
||||
{
|
||||
//更新
|
||||
SQL.Clear();
|
||||
SQL.Add(" update V_XLXSBJDCLHQ ");
|
||||
SQL.Add(" set V_XLXSBJDCLHQ_WSJG = :XLXSBJDCLHQ_WSJG,V_XLXSBJDCLHQ_HSJG=:XLXSBJDCLHQ_HSJG,V_XLXSBJDCLHQ_WSJGF= :XLXSBJDCLHQ_WSJGF, V_XLXSBJDCLHQ_HSJGF=:XLXSBJDCLHQ_HSJGF, ");
|
||||
SQL.Add(" V_XLXSBJDCLHQ_WSJG1=:V_XLXSBJDCLHQ_WSJG1,V_XLXSBJDCLHQ_HSJG1=:V_XLXSBJDCLHQ_HSJG1,V_XLXSBJDCLHQ_JGBL1=:V_XLXSBJDCLHQ_JGBL1, ");
|
||||
SQL.Add(" V_XLXSBJDCLHQ_WHRID = :XLXSBJDCLHQ_WHRID, V_XLXSBJDCLHQ_WHR = :XLXSBJDCLHQ_WHR, V_XLXSBJDCLHQ_WHSJ = :XLXSBJDCLHQ_WHSJ");
|
||||
SQL.Add(" where V_XLXSBJDCLHQ_BJDID =:pBJDID and V_XLXSBJDCLHQ_BJCLID = :pBJCLID and V_XLXSBJDCLHQ_ID = :pCLVID and V_XLXSBJDCLHQ_TZRYID = :pRYID ");
|
||||
SQL.ParamByName("XLXSBJDCLHQ_WSJG").Value = txtJGLCLJG.Value;
|
||||
SQL.ParamByName("XLXSBJDCLHQ_HSJG").Value = txtJGLHSJG.Value;
|
||||
SQL.ParamByName("XLXSBJDCLHQ_WSJGF").Value = txtJGLWSJGF.Value;
|
||||
SQL.ParamByName("XLXSBJDCLHQ_HSJGF").Value = txtJGLHSJGF.Value;
|
||||
SQL.ParamByName("V_XLXSBJDCLHQ_WSJG1").Value = txtJGYLCLJG.Value;
|
||||
SQL.ParamByName("V_XLXSBJDCLHQ_HSJG1").Value = txtJGYLHSJG.Value;
|
||||
SQL.ParamByName("V_XLXSBJDCLHQ_JGBL1").Value = fJGBL1;
|
||||
SQL.ParamByName("XLXSBJDCLHQ_WHR").Value = tSession.UserName;
|
||||
SQL.ParamByName("XLXSBJDCLHQ_WHRID").Value = tSession.UserId;
|
||||
SQL.ParamByName("XLXSBJDCLHQ_WHSJ").Value = DateTime.Now.ToString();
|
||||
SQL.ParamByName("pBJCLID").Value = sBJCLID;
|
||||
SQL.ParamByName("pBJDID").Value = sBJDID;
|
||||
SQL.ParamByName("pCLVID").Value = sCLVID;
|
||||
SQL.ParamByName("pRYID").Value = tSession.RYID;
|
||||
dberp.ExecSQL(SQL);
|
||||
}
|
||||
else
|
||||
{
|
||||
//插入
|
||||
SQL.Clear();
|
||||
SQL.Add(" insert into V_XLXSBJDCLHQ( ");
|
||||
SQL.Add(" V_XLXSBJDCLHQ_BJCLID,V_XLXSBJDCLHQ_BJDID, V_XLXSBJDCLHQ_WSJG,V_XLXSBJDCLHQ_HSJG, V_XLXSBJDCLHQ_WSJGF,V_XLXSBJDCLHQ_HSJGF, ");
|
||||
SQL.Add(" V_XLXSBJDCLHQ_JGYBJCLID1,V_XLXSBJDCLHQ_WSJG1,V_XLXSBJDCLHQ_HSJG1,V_XLXSBJDCLHQ_JGBL1, ");
|
||||
SQL.Add(" V_XLXSBJDCLHQ_ID,V_XLXSBJDCLHQ_TZRYID,V_XLXSBJDCLHQ_TZRYGH,V_XLXSBJDCLHQ_TZRYMC,V_XLXSBJDCLHQ_TIMESTAMP,V_XLXSBJDCLHQ_WHRID, V_XLXSBJDCLHQ_WHR, V_XLXSBJDCLHQ_WHSJ )");
|
||||
SQL.Add(" values(");
|
||||
SQL.Add(" :XLXSBJDCLHQ_BJCLID, :XLXSBJDCLHQ_BJDID, :XLXSBJDCLHQ_WSJG,:XLXSBJDCLHQ_HSJG, :XLXSBJDCLHQ_WSJGF, :XLXSBJDCLHQ_HSJGF,");
|
||||
SQL.Add(" :V_XLXSBJDCLHQ_JGYBJCLID1,:V_XLXSBJDCLHQ_WSJG1,:V_XLXSBJDCLHQ_HSJG1,:V_XLXSBJDCLHQ_JGBL1, ");
|
||||
SQL.Add(" :pCLVID,:pRYID,:pRYGH,:pRYMC,:pTIMESTAMP, :XLXSBJDCLHQ_WHRID, :XLXSBJDCLHQ_WHR, :XLXSBJDCLHQ_WHSJ )");
|
||||
SQL.ParamByName("XLXSBJDCLHQ_BJCLID").Value = sBJCLID;
|
||||
SQL.ParamByName("XLXSBJDCLHQ_BJDID").Value = sBJDID;
|
||||
SQL.ParamByName("pCLVID").Value = sCLVID;
|
||||
SQL.ParamByName("pRYID").Value = tSession.RYID;
|
||||
SQL.ParamByName("pRYGH").Value = tSession.UserId;
|
||||
SQL.ParamByName("pRYMC").Value = tSession.UserName;
|
||||
SQL.ParamByName("pTIMESTAMP").Value = MISproUtils.GetServerTime();
|
||||
SQL.ParamByName("XLXSBJDCLHQ_WSJG").Value = txtJGLCLJG.Value;
|
||||
SQL.ParamByName("XLXSBJDCLHQ_HSJG").Value = txtJGLHSJG.Value;
|
||||
SQL.ParamByName("XLXSBJDCLHQ_WSJGF").Value = txtJGLWSJGF.Value;
|
||||
SQL.ParamByName("XLXSBJDCLHQ_HSJGF").Value = txtJGLHSJGF.Value;
|
||||
SQL.ParamByName("V_XLXSBJDCLHQ_JGYBJCLID1").Value = sJGYBJCLID1;
|
||||
SQL.ParamByName("V_XLXSBJDCLHQ_WSJG1").Value = txtJGYLCLJG.Value;
|
||||
SQL.ParamByName("V_XLXSBJDCLHQ_HSJG1").Value = txtJGYLHSJG.Value;
|
||||
SQL.ParamByName("V_XLXSBJDCLHQ_JGBL1").Value = fJGBL1;
|
||||
SQL.ParamByName("XLXSBJDCLHQ_WHR").Value = tSession.UserName;
|
||||
SQL.ParamByName("XLXSBJDCLHQ_WHRID").Value = tSession.UserId;
|
||||
SQL.ParamByName("XLXSBJDCLHQ_WHSJ").Value = DateTime.Now;
|
||||
dberp.ExecSQL(SQL);
|
||||
}
|
||||
}
|
||||
//铜
|
||||
else if (1 == flag)
|
||||
{
|
||||
//加工原料
|
||||
if (txtJGYLCLJG.Value < 0)
|
||||
{
|
||||
ShowMessage("无税材料价格不允许小于0!");
|
||||
return;
|
||||
}
|
||||
|
||||
if (txtJGYLHSJG.Value < 0)
|
||||
{
|
||||
ShowMessage("含税材料价格不允许小于0!");
|
||||
return;
|
||||
}
|
||||
if (dsBJDCLHQ.Tables[0].Rows.Count > 0)
|
||||
{
|
||||
//更新铜
|
||||
SQL.Clear();
|
||||
SQL.Add(" update V_XLXSBJDCLHQ ");
|
||||
SQL.Add(" set V_XLXSBJDCLHQ_WSJG = :XLXSBJDCLHQ_WSJG,V_XLXSBJDCLHQ_HSJG=:XLXSBJDCLHQ_HSJG, ");
|
||||
SQL.Add(" V_XLXSBJDCLHQ_WHRID = :XLXSBJDCLHQ_WHRID, V_XLXSBJDCLHQ_WHR = :XLXSBJDCLHQ_WHR, V_XLXSBJDCLHQ_WHSJ = :XLXSBJDCLHQ_WHSJ");
|
||||
SQL.Add(" where V_XLXSBJDCLHQ_BJDID =:pBJDID and V_XLXSBJDCLHQ_BJCLID = :pBJCLID and V_XLXSBJDCLHQ_ID = :pCLVID and V_XLXSBJDCLHQ_TZRYID = :pRYID ");
|
||||
SQL.ParamByName("XLXSBJDCLHQ_WSJG").Value = txtJGYLCLJG.Value;
|
||||
SQL.ParamByName("XLXSBJDCLHQ_HSJG").Value = txtJGYLHSJG.Value;
|
||||
SQL.ParamByName("XLXSBJDCLHQ_WHR").Value = tSession.UserName;
|
||||
SQL.ParamByName("XLXSBJDCLHQ_WHRID").Value = tSession.UserId;
|
||||
SQL.ParamByName("XLXSBJDCLHQ_WHSJ").Value = DateTime.Now;
|
||||
SQL.ParamByName("pBJCLID").Value = sBJCLID;
|
||||
SQL.ParamByName("pBJDID").Value = sBJDID;
|
||||
SQL.ParamByName("pCLVID").Value = sCLVID;
|
||||
SQL.ParamByName("pRYID").Value = tSession.RYID;
|
||||
dberp.ExecSQL(SQL);
|
||||
}
|
||||
else
|
||||
{
|
||||
//插入
|
||||
SQL.Clear();
|
||||
SQL.Add(" insert into V_XLXSBJDCLHQ( ");
|
||||
SQL.Add(" V_XLXSBJDCLHQ_BJCLID,V_XLXSBJDCLHQ_BJDID, V_XLXSBJDCLHQ_WSJG,V_XLXSBJDCLHQ_HSJG, ");
|
||||
SQL.Add(" V_XLXSBJDCLHQ_ID,V_XLXSBJDCLHQ_TZRYID,V_XLXSBJDCLHQ_TZRYGH,V_XLXSBJDCLHQ_TZRYMC,V_XLXSBJDCLHQ_TIMESTAMP,V_XLXSBJDCLHQ_WHRID, V_XLXSBJDCLHQ_WHR, V_XLXSBJDCLHQ_WHSJ )");
|
||||
SQL.Add(" values(");
|
||||
SQL.Add(" :XLXSBJDCLHQ_BJCLID, :XLXSBJDCLHQ_BJDID, :XLXSBJDCLHQ_WSJG,:XLXSBJDCLHQ_HSJG,");
|
||||
SQL.Add(" :pCLVID,:pRYID,:pRYGH,:pRYMC,:pTIMESTAMP, :XLXSBJDCLHQ_WHRID, :XLXSBJDCLHQ_WHR, :XLXSBJDCLHQ_WHSJ )");
|
||||
SQL.ParamByName("XLXSBJDCLHQ_BJCLID").Value = sBJCLID;
|
||||
SQL.ParamByName("XLXSBJDCLHQ_BJDID").Value = sBJDID;
|
||||
SQL.ParamByName("pCLVID").Value = sCLVID;
|
||||
SQL.ParamByName("pRYID").Value = tSession.RYID;
|
||||
SQL.ParamByName("pRYGH").Value = tSession.UserId;
|
||||
SQL.ParamByName("pRYMC").Value = tSession.UserName;
|
||||
SQL.ParamByName("pTIMESTAMP").Value = MISproUtils.GetServerTime();
|
||||
SQL.ParamByName("XLXSBJDCLHQ_WSJG").Value = txtJGYLCLJG.Value;
|
||||
SQL.ParamByName("XLXSBJDCLHQ_HSJG").Value = txtJGYLHSJG.Value;
|
||||
SQL.ParamByName("XLXSBJDCLHQ_WHR").Value = tSession.UserName;
|
||||
SQL.ParamByName("XLXSBJDCLHQ_WHRID").Value = tSession.UserId;
|
||||
SQL.ParamByName("XLXSBJDCLHQ_WHSJ").Value = DateTime.Now;
|
||||
dberp.ExecSQL(SQL);
|
||||
}
|
||||
|
||||
//处理 因为铜导致的--铜丝,铜带等数据的变更;2020.09.21【LF】铜带细分的物料价格变更
|
||||
string sJGLBJCL = "";
|
||||
string sJGLWLBJCL = "";
|
||||
string sJGLBJCLID = "";
|
||||
double JGLWSJGF = 0.0;
|
||||
double JGLHSJGF = 0.0;
|
||||
if (dsBJCL.Tables[0].Rows.Count > 0)
|
||||
{
|
||||
//判断 加工原料 铜
|
||||
for (int i = 0; i < dsBJCL.Tables[0].Rows.Count; i++)
|
||||
{
|
||||
JGLWSJGF = 0.0;
|
||||
JGLHSJGF = 0.0;
|
||||
sJGLBJCLID = dsBJCL.Tables[0].Rows[i]["XLXSBJCL_BJCLID"].ToString().Trim();
|
||||
if (!dsBJCL.Tables[0].Rows[i]["XLXSBJCL_JGYBJCLID"].ToString().Trim().Equals(""))
|
||||
{
|
||||
sJGLBJCL = sJGLBJCL + dsBJCL.Tables[0].Rows[i]["XLXSBJCL_BJCLMC"].ToString().Trim() + "、";
|
||||
SQL.Clear();
|
||||
//查询是否存在记录
|
||||
SQL.Add("select 1 from V_XLXSBJDCLHQ where V_XLXSBJDCLHQ_BJDID =:pBJDID and V_XLXSBJDCLHQ_BJCLID = :pBJCLID ");
|
||||
SQL.Add(" and V_XLXSBJDCLHQ_ID = :pCLVID and V_XLXSBJDCLHQ_TZRYID = :pRYID ");
|
||||
SQL.ParamByName("pBJDID").Value = sBJDID;
|
||||
SQL.ParamByName("pCLVID").Value = sCLVID;
|
||||
SQL.ParamByName("pRYID").Value = tSession.RYID;
|
||||
SQL.ParamByName("pBJCLID").Value = sJGLBJCLID;
|
||||
DataSet ds = dberp.OpenDataSet(SQL);
|
||||
if (ds.Tables[0].Rows.Count > 0)
|
||||
{
|
||||
SQL.Clear();
|
||||
SQL.Add(" update V_XLXSBJDCLHQ ");
|
||||
SQL.Add(" set V_XLXSBJDCLHQ_WSJG1 = :XLXSBJDCLHQ_WSJG,V_XLXSBJDCLHQ_HSJG1=:XLXSBJDCLHQ_HSJG, ");
|
||||
SQL.Add(" V_XLXSBJDCLHQ_WHRID = :XLXSBJDCLHQ_WHRID, V_XLXSBJDCLHQ_WHR = :XLXSBJDCLHQ_WHR, V_XLXSBJDCLHQ_WHSJ = :XLXSBJDCLHQ_WHSJ");
|
||||
SQL.Add(" where V_XLXSBJDCLHQ_BJDID =:pBJDID and V_XLXSBJDCLHQ_ID = :pCLVID and V_XLXSBJDCLHQ_TZRYID = :pRYID and V_XLXSBJDCLHQ_BJCLID = :pBJCLID ");
|
||||
|
||||
SQL.ParamByName("XLXSBJDCLHQ_WSJG").Value = txtJGYLCLJG.Value;
|
||||
SQL.ParamByName("XLXSBJDCLHQ_HSJG").Value = txtJGYLHSJG.Value;
|
||||
SQL.ParamByName("XLXSBJDCLHQ_WHR").Value = tSession.UserName;
|
||||
SQL.ParamByName("XLXSBJDCLHQ_WHRID").Value = tSession.UserId;
|
||||
SQL.ParamByName("XLXSBJDCLHQ_WHSJ").Value = DateTime.Now;
|
||||
SQL.ParamByName("pBJCLID").Value = sJGLBJCLID;
|
||||
SQL.ParamByName("pBJDID").Value = sBJDID;
|
||||
SQL.ParamByName("pCLVID").Value = sCLVID;
|
||||
SQL.ParamByName("pRYID").Value = tSession.RYID;
|
||||
dberp.ExecSQL(SQL);
|
||||
}
|
||||
else
|
||||
{
|
||||
string sJGYBJCLID = string.Empty;
|
||||
//'ZZZZZZZZ'
|
||||
SQL.Clear();
|
||||
SQL.Add(" select XLXSCLHQ_WSJGF,XLXSCLHQ_HSJGF,XLXSCLHQ_JGYBJCLID1 ");
|
||||
SQL.Add(" from XLXSCLHQ ");
|
||||
SQL.Add(" where XLXSCLHQ_JGBID= :pJGBID ");
|
||||
SQL.Add(" and XLXSCLHQ_BJCLID=:pBJCLID ");
|
||||
SQL.Add(" and XLXSCLHQ_YXQS=");
|
||||
SQL.Add(" (");
|
||||
SQL.Add(" select max(XLXSCLHQ_YXQS) as maxYXQS");
|
||||
SQL.Add(" from XLXSCLHQ");
|
||||
SQL.Add(" where XLXSCLHQ_JGBID= :pJGBID ");
|
||||
SQL.Add(" and XLXSCLHQ_BJCLID=:pBJCLID");
|
||||
SQL.Add(" and XLXSCLHQ_YXQS<=:pYXQS");
|
||||
SQL.Add(" )");
|
||||
//1-价格表行情 2-报价日行情
|
||||
string tSQL = string.Format(" select 1 from XLXSBJFLBJRHQCL "
|
||||
+ " where XLXSBJFLBJRHQCL_BJCLID = '{0}' and XLXSBJFLBJRHQCL_BJFLID = '{1}' ", sBJCLID, sBJFLID);
|
||||
if (CMISproDataBase.ExistsRecord("DBERP", tSQL) || sBJDHQLY.Equals("2"))
|
||||
{
|
||||
SQL.ParamByName("pJGBID").Value = "ZZZZZZZZ";
|
||||
SQL.ParamByName("pBJCLID").Value = sJGLBJCLID;
|
||||
SQL.ParamByName("pYXQS").Value = sBJRQ;
|
||||
DataSet dsBJRCLHQ = dberp.OpenDataSet(SQL);
|
||||
if (dsBJRCLHQ.Tables[0].Rows.Count > 0)
|
||||
{
|
||||
JGLHSJGF = CMISproConvert.StrToFloat(dsBJRCLHQ.Tables[0].Rows[0]["XLXSCLHQ_HSJGF"].ToString().Trim());
|
||||
JGLWSJGF = CMISproConvert.StrToFloat(dsBJRCLHQ.Tables[0].Rows[0]["XLXSCLHQ_WSJGF"].ToString().Trim());
|
||||
sJGYBJCLID = dsBJRCLHQ.Tables[0].Rows[0]["XLXSCLHQ_JGYBJCLID1"].ToString().Trim();
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
SQL.ParamByName("pJGBID").Value = sJGBID;
|
||||
SQL.ParamByName("pBJCLID").Value = sJGLBJCLID;
|
||||
SQL.ParamByName("pYXQS").Value = sBJRQ;
|
||||
DataSet dsJGBCLHQ = dberp.OpenDataSet(SQL);
|
||||
if (dsJGBCLHQ.Tables[0].Rows.Count > 0)
|
||||
{
|
||||
JGLHSJGF = CMISproConvert.StrToFloat(dsJGBCLHQ.Tables[0].Rows[0]["XLXSCLHQ_HSJGF"].ToString().Trim());
|
||||
JGLWSJGF = CMISproConvert.StrToFloat(dsJGBCLHQ.Tables[0].Rows[0]["XLXSCLHQ_WSJGF"].ToString().Trim());
|
||||
sJGYBJCLID = dsJGBCLHQ.Tables[0].Rows[0]["XLXSCLHQ_JGYBJCLID1"].ToString().Trim();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
SQL.Clear();
|
||||
SQL.Add(" insert into V_XLXSBJDCLHQ( ");
|
||||
SQL.Add(" V_XLXSBJDCLHQ_BJCLID,V_XLXSBJDCLHQ_BJDID, V_XLXSBJDCLHQ_WSJG1,V_XLXSBJDCLHQ_HSJG1,V_XLXSBJDCLHQ_WSJGF,V_XLXSBJDCLHQ_HSJGF,");
|
||||
SQL.Add(" V_XLXSBJDCLHQ_JGYBJCLID1,V_XLXSBJDCLHQ_JGBL1,");
|
||||
SQL.Add(" V_XLXSBJDCLHQ_ID,V_XLXSBJDCLHQ_TZRYID,V_XLXSBJDCLHQ_TZRYGH,V_XLXSBJDCLHQ_TZRYMC,V_XLXSBJDCLHQ_TIMESTAMP,V_XLXSBJDCLHQ_WHRID, V_XLXSBJDCLHQ_WHR, V_XLXSBJDCLHQ_WHSJ )");
|
||||
SQL.Add(" VALUES(:pBJCLID,:pBJDID, :XLXSBJDCLHQ_WSJG,:XLXSBJDCLHQ_HSJG, ");
|
||||
SQL.Add(" isnull(:XLXSBJDCLHQ_WSJGF,0),isnull(:XLXSBJDCLHQ_HSJGF,0), ");
|
||||
SQL.Add(" :XLXSBJDCLHQ_JGYBJCLID1, isnull(:XLXSBJDCLHQ_JGBL1,0), ");
|
||||
SQL.Add(" :pCLVID,:pRYID,:pRYGH,:pRYMC,:pTIMESTAMP,:XLXSBJDCLHQ_WHRID, :XLXSBJDCLHQ_WHR, :XLXSBJDCLHQ_WHSJ)");
|
||||
SQL.ParamByName("XLXSBJDCLHQ_WSJG").Value = txtJGYLCLJG.Value;
|
||||
SQL.ParamByName("XLXSBJDCLHQ_HSJG").Value = txtJGYLHSJG.Value;
|
||||
SQL.ParamByName("XLXSBJDCLHQ_WSJGF").Value = JGLWSJGF;
|
||||
SQL.ParamByName("XLXSBJDCLHQ_HSJGF").Value = JGLHSJGF;
|
||||
SQL.ParamByName("XLXSBJDCLHQ_JGYBJCLID1").Value = sJGYBJCLID;
|
||||
SQL.ParamByName("XLXSBJDCLHQ_JGBL1").Value = 1;
|
||||
SQL.ParamByName("XLXSBJDCLHQ_WHR").Value = tSession.UserName;
|
||||
SQL.ParamByName("XLXSBJDCLHQ_WHRID").Value = tSession.UserId;
|
||||
SQL.ParamByName("XLXSBJDCLHQ_WHSJ").Value = DateTime.Now;
|
||||
SQL.ParamByName("pBJCLID").Value = sJGLBJCLID;
|
||||
SQL.ParamByName("pBJDID").Value = sBJDID;
|
||||
SQL.ParamByName("pCLVID").Value = sCLVID;
|
||||
SQL.ParamByName("pRYID").Value = tSession.RYID;
|
||||
SQL.ParamByName("pRYGH").Value = tSession.UserId;
|
||||
SQL.ParamByName("pRYMC").Value = tSession.UserName;
|
||||
SQL.ParamByName("pTIMESTAMP").Value = MISproUtils.GetServerTime();
|
||||
dberp.ExecSQL(SQL);
|
||||
}
|
||||
|
||||
//更新或插入后处理加工料的HSJG、WSJG
|
||||
SQL.Clear();
|
||||
SQL.Add(" update V_XLXSBJDCLHQ set V_XLXSBJDCLHQ_WSJG=V_XLXSBJDCLHQ_WSJG1*V_XLXSBJDCLHQ_JGBL1+V_XLXSBJDCLHQ_WSJGF, ");
|
||||
SQL.Add(" V_XLXSBJDCLHQ_HSJG=V_XLXSBJDCLHQ_HSJG1*V_XLXSBJDCLHQ_JGBL1+V_XLXSBJDCLHQ_HSJGF ");
|
||||
SQL.Add(" where V_XLXSBJDCLHQ_BJDID =:pBJDID and V_XLXSBJDCLHQ_ID = :pCLVID and V_XLXSBJDCLHQ_TZRYID = :pRYID and V_XLXSBJDCLHQ_BJCLID = :pBJCLID ");
|
||||
SQL.ParamByName("pBJCLID").Value = sJGLBJCLID;
|
||||
SQL.ParamByName("pBJDID").Value = sBJDID;
|
||||
SQL.ParamByName("pCLVID").Value = sCLVID;
|
||||
SQL.ParamByName("pRYID").Value = tSession.RYID;
|
||||
dberp.ExecSQL(SQL);
|
||||
|
||||
//#region 更新XLXSBJD_TJ,XLXSBJD_LJ---不用更新,调整材料行情确定时会更新
|
||||
//if (!PageParam.GetRTrimString("TBJCLID").Equals(""))
|
||||
//{
|
||||
// SQL.Clear();
|
||||
// SQL.Add("update XLXSBJD set XLXSBJD_TJ=(select ");
|
||||
// if (PageParam.GetRTrimString("HSBZ").Equals("Y"))
|
||||
// SQL.Add("XLXSBJDCLHQ_HSJG ");
|
||||
// else
|
||||
// SQL.Add("XLXSBJDCLHQ_WSJG ");
|
||||
// SQL.Add(" from XLXSBJDCLHQ ");
|
||||
// SQL.Add("where XLXSBJDCLHQ_BJDID=:pBJDID");
|
||||
// SQL.Add(" and XLXSBJDCLHQ_BJCLID=:pTBJCLID");
|
||||
// SQL.Add(") ");
|
||||
// SQL.Add("where XLXSBJD_BJDID=:pBJDID");
|
||||
// SQL.ParamByName("pBJDID").Value = sBJDID;
|
||||
// SQL.ParamByName("pTBJCLID").Value = PageParam.GetRTrimString("TBJCLID");
|
||||
// dberp.ExecSQL(SQL);
|
||||
//}
|
||||
//if (!PageParam.GetRTrimString("LBJCLID").Equals(""))
|
||||
//{
|
||||
// SQL.Clear();
|
||||
// SQL.Add("update XLXSBJD set XLXSBJD_LJ=(select ");
|
||||
// if (PageParam.GetRTrimString("HSBZ").Equals("Y"))
|
||||
// SQL.Add("XLXSBJDCLHQ_HSJG ");
|
||||
// else
|
||||
// SQL.Add("XLXSBJDCLHQ_WSJG ");
|
||||
// SQL.Add(" from XLXSBJDCLHQ ");
|
||||
// SQL.Add("where XLXSBJDCLHQ_BJDID=:pBJDID");
|
||||
// SQL.Add(" and XLXSBJDCLHQ_BJCLID=:pLBJCLID");
|
||||
// SQL.Add(") ");
|
||||
// SQL.Add("where XLXSBJD_BJDID=:pBJDID");
|
||||
// SQL.ParamByName("pBJDID").Value = sBJDID;
|
||||
// SQL.ParamByName("pLBJCLID").Value = PageParam.GetRTrimString("LBJCLID");
|
||||
// dberp.ExecSQL(SQL);
|
||||
//}
|
||||
//#endregion
|
||||
|
||||
#region 补充----同步调整对应的物料行情
|
||||
|
||||
SQL.Clear();
|
||||
SQL.Add(" SELECT XLXSBJCLWL_WLID,XLXSBJCLWL_BJCLID,XLXSBJCL_BJCLMC FROM XLXSBJCLWL ");
|
||||
SQL.Add(" left join XLXSBJCL on XLXSBJCL_BJCLID=XLXSBJCLWL_BJCLID ");
|
||||
SQL.Add(" WHERE XLXSBJCL_BJHQ = '2' and isnull(XLXSBJCL_JGYBJCLID,' ') <> ' ' ");
|
||||
DataSet dsBJCLWL = dberp.OpenDataSet(SQL);
|
||||
if (dsBJCLWL.Tables[0].Rows.Count > 0)
|
||||
{
|
||||
for (int j = 0; j < dsBJCLWL.Tables[0].Rows.Count; j++)
|
||||
{
|
||||
if (dsBJCLWL.Tables[0].Rows[j]["XLXSBJCLWL_BJCLID"].ToString().Trim().Equals(sJGLBJCLID))
|
||||
{
|
||||
if (!sJGLWLBJCL.Contains(dsBJCLWL.Tables[0].Rows[j]["XLXSBJCL_BJCLMC"].ToString().Trim()))
|
||||
{
|
||||
sJGLWLBJCL = sJGLWLBJCL + dsBJCLWL.Tables[0].Rows[j]["XLXSBJCL_BJCLMC"].ToString().Trim() + "、";
|
||||
}
|
||||
|
||||
string sWLID = dsBJCLWL.Tables[0].Rows[j]["XLXSBJCLWL_WLID"].ToString().Trim();
|
||||
SQL.Clear();
|
||||
//查询是否存在插入记录
|
||||
SQL.Add("select 1 from V_XLXSBJDWLHQ where V_XLXSBJDWLHQ_BJDID=:pBJDID and V_XLXSBJDWLHQ_WLID=:pWLID ");
|
||||
SQL.Add(" and V_XLXSBJDWLHQ_ID = :pWLVID and V_XLXSBJDWLHQ_TZRYID = :pRYID ");
|
||||
SQL.ParamByName("pBJDID").Value = sBJDID;
|
||||
SQL.ParamByName("pWLVID").Value = sWLVID;
|
||||
SQL.ParamByName("pRYID").Value = tSession.RYID;
|
||||
SQL.ParamByName("pWLID").Value = sWLID;
|
||||
DataSet dsWLHQ = dberp.OpenDataSet(SQL);
|
||||
if (dsWLHQ.Tables[0].Rows.Count > 0)
|
||||
{
|
||||
SQL.Clear();
|
||||
SQL.Add(" update V_XLXSBJDWLHQ ");
|
||||
SQL.Add(" set V_XLXSBJDWLHQ_WSJG1 = :XLXSBJDWLHQ_WSJG,V_XLXSBJDWLHQ_HSJG1=:XLXSBJDWLHQ_HSJG, ");
|
||||
SQL.Add(" V_XLXSBJDWLHQ_WHRID = :XLXSBJDWLHQ_WHRID, V_XLXSBJDWLHQ_WHR = :XLXSBJDWLHQ_WHR, V_XLXSBJDWLHQ_WHSJ = :XLXSBJDWLHQ_WHSJ");
|
||||
SQL.Add(" where V_XLXSBJDWLHQ_BJDID=:pBJDID and V_XLXSBJDWLHQ_ID = :pWLVID and V_XLXSBJDWLHQ_TZRYID = :pRYID and V_XLXSBJDWLHQ_WLID=:pWLID ");
|
||||
SQL.ParamByName("XLXSBJDWLHQ_WSJG").Value = txtJGYLCLJG.Value;
|
||||
SQL.ParamByName("XLXSBJDWLHQ_HSJG").Value = txtJGYLHSJG.Value;
|
||||
SQL.ParamByName("XLXSBJDWLHQ_WHR").Value = tSession.UserName;
|
||||
SQL.ParamByName("XLXSBJDWLHQ_WHRID").Value = tSession.UserId;
|
||||
SQL.ParamByName("XLXSBJDWLHQ_WHSJ").Value = DateTime.Now;
|
||||
SQL.ParamByName("pBJDID").Value = sBJDID;
|
||||
SQL.ParamByName("pWLVID").Value = sWLVID;
|
||||
SQL.ParamByName("pRYID").Value = tSession.RYID;
|
||||
SQL.ParamByName("pWLID").Value = sWLID;
|
||||
dberp.ExecSQL(SQL);
|
||||
}
|
||||
else
|
||||
{
|
||||
SQL.Clear();
|
||||
SQL.Add(" insert into V_XLXSBJDWLHQ( ");
|
||||
SQL.Add(" V_XLXSBJDWLHQ_BJDID,V_XLXSBJDWLHQ_WLID, V_XLXSBJDWLHQ_WSJG1,V_XLXSBJDWLHQ_HSJG1, V_XLXSBJDWLHQ_WSJGF,V_XLXSBJDWLHQ_HSJGF,");
|
||||
SQL.Add(" V_XLXSBJDWLHQ_JGYBJCLID1,V_XLXSBJDWLHQ_JGBL1, ");
|
||||
SQL.Add(" V_XLXSBJDWLHQ_ID,V_XLXSBJDWLHQ_TZRYID,V_XLXSBJDWLHQ_TZRYGH,V_XLXSBJDWLHQ_TZRYMC,V_XLXSBJDWLHQ_TIMESTAMP,V_XLXSBJDWLHQ_WHRID, V_XLXSBJDWLHQ_WHR, V_XLXSBJDWLHQ_WHSJ)");
|
||||
SQL.Add(" SELECT ");
|
||||
SQL.Add(" :XLXSBJDWLHQ_BJDID,:pWLID,:XLXSBJDWLHQ_WSJG,:XLXSBJDWLHQ_HSJG,");
|
||||
SQL.Add(" isnull(XLXSWLHQ_WSJGF,0),isnull(XLXSWLHQ_HSJGF,0), ");
|
||||
SQL.Add(" isnull(XLXSWLHQ_JGYBJCLID1,' '),isnull(XLXSWLHQ_JGBL1,0), ");
|
||||
SQL.Add(" :pWLVID,:pRYID,:pRYGH,:pRYMC,:pTIMESTAMP,:XLXSBJDWLHQ_WHRID, :XLXSBJDWLHQ_WHR, :XLXSBJDWLHQ_WHSJ ");
|
||||
SQL.Add(" from XLXSWLHQ ");
|
||||
SQL.Add(" where XLXSWLHQ_JGBID=' '");
|
||||
SQL.Add(" and XLXSWLHQ_WLID=:pWLID");
|
||||
SQL.Add(" and XLXSWLHQ_YXQS=");
|
||||
SQL.Add(" (");
|
||||
SQL.Add(" select max(XLXSWLHQ_YXQS) as maxYXQS");
|
||||
SQL.Add(" from XLXSWLHQ");
|
||||
SQL.Add(" where XLXSWLHQ_JGBID=' ' ");
|
||||
SQL.Add(" and XLXSWLHQ_WLID=:pWLID");
|
||||
SQL.Add(" and XLXSWLHQ_YXQS<=:pBJRQ ");
|
||||
SQL.Add(" and (XLXSWLHQ_YXQZ>=:pBJRQ or XLXSWLHQ_YXQZ is null)");
|
||||
SQL.Add(" )");
|
||||
//SQL.Add(" and XLXSWLHQ_YXQZ is null ");
|
||||
SQL.ParamByName("XLXSBJDWLHQ_BJDID").Value = sBJDID;
|
||||
SQL.ParamByName("pWLVID").Value = sWLVID;
|
||||
SQL.ParamByName("pRYID").Value = tSession.RYID;
|
||||
SQL.ParamByName("pRYGH").Value = tSession.UserId;
|
||||
SQL.ParamByName("pRYMC").Value = tSession.UserName;
|
||||
SQL.ParamByName("pTIMESTAMP").Value = MISproUtils.GetServerTime();
|
||||
SQL.ParamByName("pWLID").Value = sWLID;
|
||||
SQL.ParamByName("XLXSBJDWLHQ_WSJG").Value = txtJGYLCLJG.Value;
|
||||
SQL.ParamByName("XLXSBJDWLHQ_HSJG").Value = txtJGYLHSJG.Value;
|
||||
SQL.ParamByName("XLXSBJDWLHQ_WHR").Value = tSession.UserName;
|
||||
SQL.ParamByName("XLXSBJDWLHQ_WHRID").Value = tSession.UserId;
|
||||
SQL.ParamByName("XLXSBJDWLHQ_WHSJ").Value = DateTime.Now;
|
||||
SQL.ParamByName("pBJRQ").Value = sBJRQ;
|
||||
dberp.ExecSQL(SQL);
|
||||
}
|
||||
//更新/插入后处理加工料的HSJG、WSJG
|
||||
SQL.Clear();
|
||||
SQL.Add(" update V_XLXSBJDWLHQ set V_XLXSBJDWLHQ_WSJG=V_XLXSBJDWLHQ_WSJG1*V_XLXSBJDWLHQ_JGBL1+V_XLXSBJDWLHQ_WSJGF, ");
|
||||
SQL.Add(" V_XLXSBJDWLHQ_HSJG=V_XLXSBJDWLHQ_HSJG1*V_XLXSBJDWLHQ_JGBL1+V_XLXSBJDWLHQ_HSJGF ");
|
||||
SQL.Add(" where V_XLXSBJDWLHQ_BJDID=:pBJDID and V_XLXSBJDWLHQ_ID = :pWLVID and V_XLXSBJDWLHQ_TZRYID = :pRYID and V_XLXSBJDWLHQ_WLID=:pWLID ");
|
||||
SQL.ParamByName("pBJDID").Value = sBJDID;
|
||||
SQL.ParamByName("pWLVID").Value = sWLVID;
|
||||
SQL.ParamByName("pRYID").Value = tSession.RYID;
|
||||
SQL.ParamByName("pWLID").Value = sWLID;
|
||||
dberp.ExecSQL(SQL);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
sJGLBJCL = sJGLBJCL.TrimEnd('、');
|
||||
sJGLWLBJCL = sJGLWLBJCL.TrimEnd('、');
|
||||
if (!sJGLBJCL.Equals("") && !sJGLWLBJCL.Equals(""))
|
||||
{
|
||||
ShowMessage("已同步调整 " + sJGLBJCL + " 的材料价格!" + "\r\n" + "已同步调整 " + sJGLWLBJCL + " 的对应物料价格!");
|
||||
}
|
||||
else if (!sJGLBJCL.Equals(""))
|
||||
{
|
||||
ShowMessage("已同步调整 " + sJGLBJCL + " 的材料价格!");
|
||||
}
|
||||
else if (!sJGLWLBJCL.Equals(""))
|
||||
{
|
||||
ShowMessage("已同步调整 " + sJGLWLBJCL + " 的对应物料价格!");
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
//不处理
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
ShowMessage("调整出现错误,请联系系统管理员!" + ex);
|
||||
}
|
||||
|
||||
//使用脚本给父页面的隐藏控件赋值,调用父页面的控件事件
|
||||
DialogOperationScript dos = new DialogOperationScript(this);
|
||||
dos.ClickOwnerButton(PageParam.GetRTrimString("CallBackCtrlID"));
|
||||
dos.CloseSelf();
|
||||
dos.Execute();
|
||||
}
|
||||
|
||||
protected void btnQX_Click(object sender, EventArgs e)
|
||||
{
|
||||
CloseWindow();
|
||||
}
|
||||
|
||||
//加工费
|
||||
protected void txtJGLWSJGF_OnTextChanged(object sender, EventArgs e)
|
||||
{
|
||||
double dJGBL1 = CMISproConvert.StrToFloat(PageParam.GetRTrimString("JGBL1"));
|
||||
txtJGLCLJG.Value = NumberUtils.RoundX(txtJGLWSJGF.Value + txtJCCLJG.Value * dJGBL1, XLBJDUtils.BJCLPriceDecimal);
|
||||
txtJGLHSJGF.Value = NumberUtils.RoundX(txtJGLWSJGF.Value * (1 + txtJGLZZSL.Value / 100.0), XLBJDUtils.BJCLPriceDecimal);
|
||||
txtJGLHSJG.Value = NumberUtils.RoundX(txtJGLHSJGF.Value + txtJCHSJG.Value * dJGBL1, XLBJDUtils.BJCLPriceDecimal);
|
||||
}
|
||||
|
||||
protected void txtJGLHSJGF_OnTextChanged(object sender, EventArgs e)
|
||||
{
|
||||
double dJGBL1 = CMISproConvert.StrToFloat(PageParam.GetRTrimString("JGBL1"));
|
||||
txtJGLHSJG.Value = NumberUtils.RoundX(txtJGLHSJGF.Value + txtJCHSJG.Value * dJGBL1, XLBJDUtils.BJCLPriceDecimal);
|
||||
txtJGLWSJGF.Value = NumberUtils.RoundX(txtJGLHSJGF.Value / (1 + txtJGLZZSL.Value / 100.0), XLBJDUtils.BJCLPriceDecimal);
|
||||
txtJGLCLJG.Value = NumberUtils.RoundX(txtJGLWSJGF.Value + txtJCCLJG.Value * dJGBL1, XLBJDUtils.BJCLPriceDecimal);
|
||||
}
|
||||
|
||||
//材料价格
|
||||
protected void txtJGYLCLJG_OnTextChanged(object sender, EventArgs e)
|
||||
{
|
||||
txtJGYLHSJG.Value = NumberUtils.RoundX(txtJGYLCLJG.Value * (1 + txtJGYLZZSL.Value / 100.0), XLBJDUtils.BJCLPriceDecimal);
|
||||
}
|
||||
|
||||
protected void txtJGYLHSJG_OnTextChanged(object sender, EventArgs e)
|
||||
{
|
||||
txtJGYLCLJG.Value = NumberUtils.RoundX(txtJGYLHSJG.Value / (1 + txtJGYLZZSL.Value / 100.0), XLBJDUtils.BJCLPriceDecimal);
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
Generated
+385
@@ -0,0 +1,385 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// 此代码由工具生成。
|
||||
// 运行时版本:2.0.50727.9179
|
||||
//
|
||||
// 对此文件的更改可能会导致不正确的行为,并且如果
|
||||
// 重新生成代码,这些更改将会丢失。
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace GThinking.U20261363_N_XLXSBJ {
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// XLBJD_JGFLDInfo 类。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的类。
|
||||
/// </remarks>
|
||||
public partial class XLBJD_JGFLDInfo {
|
||||
|
||||
/// <summary>
|
||||
/// tbl1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Table tbl1;
|
||||
|
||||
/// <summary>
|
||||
/// btnQR 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtToolButton btnQR;
|
||||
|
||||
/// <summary>
|
||||
/// btnQX 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtToolButton btnQX;
|
||||
|
||||
/// <summary>
|
||||
/// table2 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.HtmlControls.HtmlTable table2;
|
||||
|
||||
/// <summary>
|
||||
/// GtLabel4 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtLabel GtLabel4;
|
||||
|
||||
/// <summary>
|
||||
/// cbxJGYLID 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtComboBox cbxJGYLID;
|
||||
|
||||
/// <summary>
|
||||
/// lblZZSL 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtLabel lblZZSL;
|
||||
|
||||
/// <summary>
|
||||
/// txtJGLZZSL 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtNumTextBox txtJGLZZSL;
|
||||
|
||||
/// <summary>
|
||||
/// lblZZSLTag 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtLabel lblZZSLTag;
|
||||
|
||||
/// <summary>
|
||||
/// GtLabel13 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtLabel GtLabel13;
|
||||
|
||||
/// <summary>
|
||||
/// txtJCCLJG 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtNumTextBox txtJCCLJG;
|
||||
|
||||
/// <summary>
|
||||
/// GtLabel14 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtLabel GtLabel14;
|
||||
|
||||
/// <summary>
|
||||
/// GtLabel15 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtLabel GtLabel15;
|
||||
|
||||
/// <summary>
|
||||
/// txtJCHSJG 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtNumTextBox txtJCHSJG;
|
||||
|
||||
/// <summary>
|
||||
/// GtLabel16 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtLabel GtLabel16;
|
||||
|
||||
/// <summary>
|
||||
/// GtLabel12 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtLabel GtLabel12;
|
||||
|
||||
/// <summary>
|
||||
/// cbxJGLID 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtComboBox cbxJGLID;
|
||||
|
||||
/// <summary>
|
||||
/// lblWSJGF 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtLabel lblWSJGF;
|
||||
|
||||
/// <summary>
|
||||
/// txtJGLWSJGF 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtNumTextBox txtJGLWSJGF;
|
||||
|
||||
/// <summary>
|
||||
/// lblWSJGFRMB 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtLabel lblWSJGFRMB;
|
||||
|
||||
/// <summary>
|
||||
/// lblHSJGF 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtLabel lblHSJGF;
|
||||
|
||||
/// <summary>
|
||||
/// txtJGLHSJGF 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtNumTextBox txtJGLHSJGF;
|
||||
|
||||
/// <summary>
|
||||
/// lblHSJGFRMB 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtLabel lblHSJGFRMB;
|
||||
|
||||
/// <summary>
|
||||
/// GtLabel1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtLabel GtLabel1;
|
||||
|
||||
/// <summary>
|
||||
/// txtJGLCLJG 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtNumTextBox txtJGLCLJG;
|
||||
|
||||
/// <summary>
|
||||
/// GtLabel2 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtLabel GtLabel2;
|
||||
|
||||
/// <summary>
|
||||
/// GtLabel3 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtLabel GtLabel3;
|
||||
|
||||
/// <summary>
|
||||
/// txtJGLHSJG 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtNumTextBox txtJGLHSJG;
|
||||
|
||||
/// <summary>
|
||||
/// GtLabel5 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtLabel GtLabel5;
|
||||
|
||||
/// <summary>
|
||||
/// table3 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.HtmlControls.HtmlTable table3;
|
||||
|
||||
/// <summary>
|
||||
/// GtLabel7 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtLabel GtLabel7;
|
||||
|
||||
/// <summary>
|
||||
/// txtJGYLZZSL 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtNumTextBox txtJGYLZZSL;
|
||||
|
||||
/// <summary>
|
||||
/// GtLabel8 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtLabel GtLabel8;
|
||||
|
||||
/// <summary>
|
||||
/// GtLabel6 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtLabel GtLabel6;
|
||||
|
||||
/// <summary>
|
||||
/// txtJGYLCLJG 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtNumTextBox txtJGYLCLJG;
|
||||
|
||||
/// <summary>
|
||||
/// GtLabel9 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtLabel GtLabel9;
|
||||
|
||||
/// <summary>
|
||||
/// GtLabel10 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtLabel GtLabel10;
|
||||
|
||||
/// <summary>
|
||||
/// txtJGYLHSJG 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtNumTextBox txtJGYLHSJG;
|
||||
|
||||
/// <summary>
|
||||
/// GtLabel11 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtLabel GtLabel11;
|
||||
|
||||
/// <summary>
|
||||
/// Master 属性。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的属性。
|
||||
/// </remarks>
|
||||
public new GThinking.N_MODEL.Page.MasterSingleCard Master {
|
||||
get {
|
||||
return ((GThinking.N_MODEL.Page.MasterSingleCard)(base.Master));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -41,7 +41,6 @@ namespace GThinking.U20261363_N_XLXSBJ
|
||||
AddFieldDefs("KHDH", "客户单号");
|
||||
AddFieldDefs("WHSJS", "维护时间始");
|
||||
AddFieldDefs("WHSJZ", "维护时间止");
|
||||
AddFieldDefs("ZCJHSCQK", "主材计划生成情况");
|
||||
AddFieldDefs("KZSZ01", "扩展数值01");
|
||||
AddFieldDefs("KZSZ02", "扩展数值02");
|
||||
AddFieldDefs("KZSZ03", "扩展数值03");
|
||||
|
||||
@@ -0,0 +1,58 @@
|
||||
<%@ Page Language="C#" MasterPageFile="~/N_MODEL/Page/MasterSingleCard.Master" AutoEventWireup="true"
|
||||
Codebehind="XLBJD_MX_BJCPInfo.aspx.cs" Inherits="GThinking.U20261363_N_XLXSBJ.XLBJD_MX_BJCPInfo"
|
||||
Title="批量调整标准" %>
|
||||
|
||||
<%@ MasterType VirtualPath="~/N_MODEL/Page/MasterSingleCard.Master " %>
|
||||
<asp:Content ID="cntTool" 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="btnOK_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="cntForm" ContentPlaceHolderID="cphForm" runat="server">
|
||||
<center>
|
||||
<table cellpadding="0" cellspacing="0">
|
||||
<tr id="tr1" style="height: 10px;">
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="right">
|
||||
<gtc:gtLabel ID="lblSZFW" runat="server" Text="调价范围:" ForeColor="red"></gtc:gtLabel>
|
||||
</td>
|
||||
<td align="left" colspan="3">
|
||||
<gtc:gtComboBox ID="cbxSZFW" runat="server" Width="188px" ShowValue="false" Tag="Star">
|
||||
</gtc:gtComboBox>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="tr3" runat="server" style="height: 20px;">
|
||||
</tr>
|
||||
<tr id="tr4" runat="server">
|
||||
<td align="right">
|
||||
<gtc:gtLabel ID="lblXLBZ" runat="server" Text="线缆标准:"></gtc:gtLabel>
|
||||
</td>
|
||||
<td align="left" colspan="3">
|
||||
<gtc:gtComboBox ID="cbxXLBZ" runat="server" Width="188px" Tag="Star">
|
||||
</gtc:gtComboBox>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="tr5" runat="server">
|
||||
<td align="right">
|
||||
<gtc:gtLabel ID="lblKHWLID" runat="server" Text="客户物料编码:"></gtc:gtLabel>
|
||||
</td>
|
||||
<td align="left" colspan="3">
|
||||
<gtc:gtTextBox ID="txtKHWLID" runat="server" Width="188px" Tag="Star">
|
||||
</gtc:gtTextBox>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</center>
|
||||
</asp:Content>
|
||||
<asp:Content ID="cntHiFZRen" ContentPlaceHolderID="cphBrand" runat="server">
|
||||
</asp:Content>
|
||||
@@ -0,0 +1,180 @@
|
||||
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_CONTROL;
|
||||
using GThinking.N_PUBLIC;
|
||||
using GThinking.N_MISPRO.Caching;
|
||||
using GThinking.N_MISPRO.Utility;
|
||||
|
||||
namespace GThinking.U20261363_N_XLXSBJ
|
||||
{
|
||||
[TableMap(DB = "DBERP", DbTableName = "XLXSBJDMX", Umid = 100860174, IsWorkFlow = false)]
|
||||
public class XLBJD_MX_BJCP : EntityManager
|
||||
{
|
||||
|
||||
}
|
||||
public partial class XLBJD_MX_BJCPInfo : SingleCardBase
|
||||
{
|
||||
XLBJD_MX_BJCP entity = new XLBJD_MX_BJCP();
|
||||
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
this.UMID = 100860174;
|
||||
this.UMName = "线缆销售报价单";
|
||||
base.CurMaster = Master;
|
||||
base.CurEntity = entity;
|
||||
this.PageHeight = 180;
|
||||
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;
|
||||
|
||||
base.InitPage();
|
||||
|
||||
if (!IsPostBack)
|
||||
{
|
||||
InitControl();
|
||||
}
|
||||
}
|
||||
|
||||
#region 模板
|
||||
|
||||
#endregion
|
||||
|
||||
#region 自定义函数
|
||||
|
||||
private void InitControl()
|
||||
{
|
||||
BJFLXX bjflxx = XLBJDUtils.GetBJFLXX(PageParam.GetRTrimString("BJFLID"));
|
||||
cbxSZFW.ClearItems();
|
||||
if (PageParam.GetRTrimString("PLSZAll").Equals("N"))
|
||||
cbxSZFW.Items.Add(new ListItem("勾选记录", "N"));
|
||||
if (!PageParam.ContainsKey("txtPLSZKHWLID"))
|
||||
cbxSZFW.Items.Add(new ListItem("整单记录", "Y"));
|
||||
cbxSZFW.SelectedIndex = 0;
|
||||
string sConditon = string.Empty;
|
||||
if (PageParam.ContainsKey("BJDID"))
|
||||
{
|
||||
if (!PageParam.GetRTrimString("BJDID").Equals(""))
|
||||
sConditon = string.Format("and (len(XLBZ_XLBZID) <10 or exists(select 1 from XLXSBJYLZDMX left join XLXSBJYLZD on XLXSBJYLZDMX_SQDH = XLXSBJYLZD_SQDH where XLXSBJYLZD_BJDID ='{0}' and XLXSBJYLZDMX_XLBZID = XLBZ_XLBZID))", PageParam.GetRTrimString("BJDID"));
|
||||
}
|
||||
|
||||
if (bjflxx.XSXLBZMS())
|
||||
TComboBox.SetComboBox("DBERP", cbxXLBZ, " select XLBZ_XLBZID as ID,XLBZ_XLBZMS as Name from XLBZ where 1=1 " + sConditon + " order by XLBZ_PX,ID ", true);
|
||||
else
|
||||
TComboBox.SetComboBox("DBERP", cbxXLBZ, " select XLBZ_XLBZID as ID,XLBZ_XLBZLXMC as Name from XLBZ where 1=1 " + sConditon + " order by XLBZ_PX,ID ", true);
|
||||
|
||||
|
||||
if (PageParam.ContainsKey("txtPLSZKHWLID"))
|
||||
{
|
||||
tr4.Visible = false;
|
||||
tr5.Visible = true;
|
||||
if (bjflxx.XSXLBZMS())
|
||||
{
|
||||
lblXLBZ.Text = "线缆标准描述";
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
tr4.Visible = true;
|
||||
tr5.Visible = false;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region 自定义按钮
|
||||
|
||||
protected void btnOK_Click(object sender, EventArgs e)
|
||||
{
|
||||
BJFLXX bjflxx = XLBJDUtils.GetBJFLXX(PageParam.GetRTrimString("BJFLID"));
|
||||
if (cbxSZFW.SelectedValue.Trim().Equals(""))
|
||||
{
|
||||
ShowMessage("调价范围--不允许为空!");
|
||||
return;
|
||||
}
|
||||
if (PageParam.ContainsKey("txtPLSZKHWLID"))
|
||||
{
|
||||
if (txtKHWLID.Text.Trim().Equals(""))
|
||||
{
|
||||
ShowMessage("客户物料编码--不允许为空!");
|
||||
return;
|
||||
}
|
||||
Confirm.Register("IsQD", "将按[" + txtKHWLID.Text.Trim() + "]批量更新整单/勾选明细客户物料编码,是否继续?");
|
||||
}
|
||||
else
|
||||
{
|
||||
if (cbxXLBZ.SelectedValue.Trim().Equals(""))
|
||||
{
|
||||
if (bjflxx.XSXLBZMS())
|
||||
ShowMessage("线缆标准描述--不允许为空!");
|
||||
else
|
||||
ShowMessage("线缆标准--不允许为空!");
|
||||
return;
|
||||
}
|
||||
Confirm.Register("IsQD", "将按[" + cbxXLBZ.SelectedValue + "|" + cbxXLBZ.SelectedItem.Text + "]批量更新整单/勾选明细标准,是否继续?");
|
||||
}
|
||||
|
||||
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();
|
||||
}
|
||||
//使用脚本给父页面的隐藏控件赋值,调用父页面的控件事件
|
||||
DialogOperationScript dos = new DialogOperationScript(this);
|
||||
dos.SetOwnerControlValue(PageParam.GetRTrimString("txtPLSZAllCID"), cbxSZFW.SelectedValue.Trim());
|
||||
if (PageParam.ContainsKey("txtPLSZKHWLID"))
|
||||
{
|
||||
dos.SetOwnerControlValue(PageParam.GetRTrimString("txtPLSZKHWLID"), txtKHWLID.Text.Trim());
|
||||
dos.ClickOwnerButton(PageParam.GetRTrimString("btnRefreshKHWL"));
|
||||
}
|
||||
else
|
||||
{
|
||||
dos.SetOwnerControlValue(PageParam.GetRTrimString("txtPLSZBZID"), cbxXLBZ.SelectedValue.Trim());
|
||||
dos.ClickOwnerButton(PageParam.GetRTrimString("btnRefreshPLTZBZ"));
|
||||
}
|
||||
|
||||
dos.CloseSelf();
|
||||
dos.Execute();
|
||||
}
|
||||
|
||||
protected void btnQX_Click(object sender, EventArgs e)
|
||||
{
|
||||
CloseWindow();
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region 控件事件
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
Generated
+142
@@ -0,0 +1,142 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// 此代码由工具生成。
|
||||
// 运行时版本:2.0.50727.9179
|
||||
//
|
||||
// 对此文件的更改可能会导致不正确的行为,并且如果
|
||||
// 重新生成代码,这些更改将会丢失。
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace GThinking.U20261363_N_XLXSBJ {
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// XLBJD_MX_BJCPInfo 类。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的类。
|
||||
/// </remarks>
|
||||
public partial class XLBJD_MX_BJCPInfo {
|
||||
|
||||
/// <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>
|
||||
/// lblSZFW 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtLabel lblSZFW;
|
||||
|
||||
/// <summary>
|
||||
/// cbxSZFW 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtComboBox cbxSZFW;
|
||||
|
||||
/// <summary>
|
||||
/// tr3 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.HtmlControls.HtmlTableRow tr3;
|
||||
|
||||
/// <summary>
|
||||
/// tr4 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.HtmlControls.HtmlTableRow tr4;
|
||||
|
||||
/// <summary>
|
||||
/// lblXLBZ 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtLabel lblXLBZ;
|
||||
|
||||
/// <summary>
|
||||
/// cbxXLBZ 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtComboBox cbxXLBZ;
|
||||
|
||||
/// <summary>
|
||||
/// tr5 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.HtmlControls.HtmlTableRow tr5;
|
||||
|
||||
/// <summary>
|
||||
/// lblKHWLID 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtLabel lblKHWLID;
|
||||
|
||||
/// <summary>
|
||||
/// txtKHWLID 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtTextBox txtKHWLID;
|
||||
|
||||
/// <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,51 @@
|
||||
<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/N_MODEL/Page/MasterSingleGrid.Master"
|
||||
Codebehind="XLBJD_PLDRList.aspx.cs" Inherits="GThinking.U20261363_N_XLXSBJ.XLBJD_PLDRList"
|
||||
Title="按材料清单导入" %>
|
||||
|
||||
<%@ MasterType VirtualPath="~/N_MODEL/Page/MasterSingleGrid.Master" %>
|
||||
<asp:Content ContentPlaceHolderID="CPHButton" ID="ContentButton" runat="server">
|
||||
<asp:Table ID="ButtonTable" runat="server" CellPadding="0" CellSpacing="0">
|
||||
<asp:TableRow>
|
||||
<asp:TableCell HorizontalAlign="left" BorderWidth="0px" BorderStyle="NotSet">
|
||||
<gtc:gtToolButton ID="btnQR" BorderWidth="0px" BorderStyle="NotSet" Width="58px"
|
||||
Height="19px" ButtonType="Button" ShowCaption="True" Caption="确 认" runat="server"
|
||||
OnClick="btnQR_Click" />
|
||||
</asp:TableCell>
|
||||
</asp:TableRow>
|
||||
</asp:Table>
|
||||
</asp:Content>
|
||||
<asp:Content ContentPlaceHolderID="CPHForm" ID="ContentForm" runat="server">
|
||||
<gtc:gtGridView ID="ContentGrid" runat="server" AutoGenerateColumns="False" EnableViewState="false"
|
||||
CheckBox="true">
|
||||
<FixRowCol TableHeight="100%" TableWidth="100%" />
|
||||
<Columns>
|
||||
<asp:BoundField DataField="XLXSCLQD_XLXHID" HeaderText="型号">
|
||||
<itemstyle width="120px" />
|
||||
<headerstyle width="120px"></headerstyle>
|
||||
</asp:BoundField>
|
||||
<asp:BoundField DataField="XLXSCLQD_XLGGID" HeaderText="规格">
|
||||
<itemstyle width="120px" />
|
||||
<headerstyle width="120px"></headerstyle>
|
||||
</asp:BoundField>
|
||||
<asp:BoundField DataField="XLBZ" HeaderText="标准">
|
||||
<itemstyle width="50px" />
|
||||
<headerstyle width="50px"></headerstyle>
|
||||
</asp:BoundField>
|
||||
<asp:BoundField DataField="XLXSCLQD_DYDJID" HeaderText="电压等级">
|
||||
<itemstyle width="120px" />
|
||||
<headerstyle width="120px"></headerstyle>
|
||||
</asp:BoundField>
|
||||
</Columns>
|
||||
<ColumnsEx>
|
||||
<gtc:gtGridView_Column DataField="XLXSCLQD_XLXHID" EditType="etString" ShowHint="true">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="XLXSCLQD_XLGGID" EditType="etString" ShowHint="true">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="XLBZ" EditType="etString" ShowHint="true">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="XLXSCLQD_DYDJID" EditType="etString" ShowHint="true">
|
||||
</gtc:gtGridView_Column>
|
||||
</ColumnsEx>
|
||||
</gtc:gtGridView>
|
||||
</asp:Content>
|
||||
|
||||
@@ -0,0 +1,330 @@
|
||||
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.Text;
|
||||
using GThinking.N_CONTROL;
|
||||
using GThinking.N_MISPRO;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace GThinking.U20261363_N_XLXSBJ
|
||||
{
|
||||
[TableMap(DB = "DBERP", DbTableName = "XLXSCLQD", Umid = 100860174, UseWhr = false, IsWorkFlow = false)]
|
||||
public class XLBJD_PLDR : EntityManager
|
||||
{
|
||||
}
|
||||
|
||||
public partial class XLBJD_PLDRList : SingleGridBase
|
||||
{
|
||||
XLBJD_PLDR entity = new XLBJD_PLDR();
|
||||
PLDR_M queryEntity = new PLDR_M();
|
||||
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
this.UMID = 100860174;
|
||||
this.UMName = "按材料清单导入";
|
||||
this.CurMaster = Master;
|
||||
this.ModuleGV = ContentGrid;
|
||||
this.CurEntity = entity;
|
||||
this.CurQueryEntity = queryEntity;
|
||||
sQueryURLTarget = "XLJGB_PLDRQuery.aspx";
|
||||
this.PageHeight = 400;
|
||||
this.PageWidth = 500;
|
||||
base.DataKeyNames = new string[] { "XLXSCLQD_XLXHID", "XLXSCLQD_XLGGID", "XLXSCLQD_XLBZID", "XLXSCLQD_DYDJID", "XLXSCLQD_CLZL" };
|
||||
|
||||
this.Master.EnableNewBtn = false;
|
||||
this.Master.EnableCopyBtn = false;
|
||||
this.Master.EnableEditBtn = false;
|
||||
this.Master.EnableDeleteBtn = false;
|
||||
this.Master.EnableViewBtn = false;
|
||||
this.Master.EnablePrintBtn = false;
|
||||
|
||||
base.InitPage();
|
||||
|
||||
this.ModuleGV.OnClientDblClick = "return false;";
|
||||
|
||||
if (!IsPostBack)
|
||||
{
|
||||
// Master_OnStandardQuery(null, null);
|
||||
}
|
||||
}
|
||||
#region 模板继承事件
|
||||
|
||||
protected override void Master_OnStandardQuery(object sender, EventArgs e)
|
||||
{
|
||||
base.InitEntityByCondition();
|
||||
entity.EntityTable.QuerySelSql = GetQuerySql();
|
||||
base.Master_OnStandardQuery(sender, e);
|
||||
entity.GridDataBind(ContentGrid, tSession);
|
||||
}
|
||||
|
||||
protected override void moduleGV_RowDataBound(object sender, GridViewRowEventArgs e)
|
||||
{
|
||||
if (e.Row.RowType == DataControlRowType.DataRow)
|
||||
{
|
||||
}
|
||||
base.moduleGV_RowDataBound(sender, e);
|
||||
}
|
||||
|
||||
protected override void moduleGV_PageIndexChanging(object sender, GridViewPageEventArgs e)
|
||||
{
|
||||
base.InitEntityByCondition();
|
||||
entity.EntityTable.QuerySelSql = GetQuerySql();
|
||||
ContentGrid.SelectedIndex = -1;
|
||||
base.moduleGV_PageIndexChanging(sender, e);
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region 控件事件
|
||||
|
||||
protected void btnQR_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (string.IsNullOrEmpty(ContentGrid.CheckedRowIndexs))
|
||||
{
|
||||
ShowMessage("请勾选需要导入的记录!");
|
||||
return;
|
||||
}
|
||||
int tmpXSWS = string.IsNullOrEmpty(GetOption(100860000, "BJU002")) ? 5 : CMISproConvert.StrToInt(GetOption(100860000, "BJU002"));
|
||||
if (tmpXSWS < 0)
|
||||
tmpXSWS = 0;
|
||||
else if (tmpXSWS > 8)
|
||||
tmpXSWS = 8;
|
||||
|
||||
string sErrorNum = "";
|
||||
int iStartXH = 0;
|
||||
string sBJU003 = GetOption(100860000, "BJU003");
|
||||
//传入的是BJU003的计量单位
|
||||
string sJLDW = PageParam.GetRTrimString("JLDW");
|
||||
string sBJLY = PageParam.GetRTrimString("BJLY");
|
||||
string sBJFLID = PageParam.GetRTrimString("BJFLID");
|
||||
string sBJDHQLY = PageParam.GetRTrimString("BJDHQLY");
|
||||
string sBJRQ = PageParam.GetRTrimString("BJRQ");
|
||||
string sCPBJMRXSWS = PageParam.GetRTrimString("CPBJMRXSWS");
|
||||
//A|× B|*
|
||||
string sXLJGU007 = GetOption(102579000, "XLJGU007");
|
||||
bool bNeedUp = false;
|
||||
|
||||
string[] sRowIndexs = ContentGrid.CheckedRowIndexs.Split(',');
|
||||
if (!string.IsNullOrEmpty(PageParam.GetRTrimString("BJDID")))
|
||||
{
|
||||
TDatabase dberp = TContextDatabases.GetDatabase("DBERP");
|
||||
TSQL sSQL = new TSQL(dberp);
|
||||
try
|
||||
{
|
||||
dberp.BeginTrans();
|
||||
|
||||
string sBJDID = PageParam.GetRTrimString("BJDID");
|
||||
int iXH = CMISproDataBase.GetMaxXH("DBERP", "XLXSBJDMX", "XLXSBJDMX_XH", "XLXSBJDMX_BJDID='" + PageParam.GetRTrimString("BJDID") + "'");
|
||||
int iXSSX = CMISproDataBase.GetMaxXH("DBERP", "XLXSBJDMX", "XLXSBJDMX_XSSX", "XLXSBJDMX_BJDID = '" + PageParam.GetRTrimString("BJDID") + "'");
|
||||
string sXLXHID = "", sXLGGID = "", sST = "", sDYDJ = "";
|
||||
|
||||
for (int i = 0; i < sRowIndexs.Length; i++)
|
||||
{
|
||||
sSQL.Clear();
|
||||
sSQL.Add(" insert into XLXSBJDMX( ");
|
||||
sSQL.Add(" XLXSBJDMX_BJDID, XLXSBJDMX_XH,XLXSBJDMX_XSSX, XLXSBJDMX_XLXHID, XLXSBJDMX_XLGGID,XLXSBJDMX_WGCPBZ,XLXSBJDMX_XDXLXHID,XLXSBJDMX_XDXLBZID, ");
|
||||
sSQL.Add(" XLXSBJDMX_XLBZID,XLXSBJDMX_DYDJID,XLXSBJDMX_XLYSID,XLXSBJDMX_BJCP,XLXSBJDMX_JLDW,XLXSBJDMX_TZQCPBJ,XLXSBJDMX_TZCPBJ,XLXSBJDMX_CPBJ, ");
|
||||
sSQL.Add(" XLXSBJDMX_JGBJJ,XLXSBJDMX_CLCB, XLXSBJDMX_JGBBJ,XLXSBJDMX_DZSC,XLXSBJDMX_WHR,XLXSBJDMX_WHRID,XLXSBJDMX_WHSJ,XLXSBJDMX_JGBBJJCL,XLXSBJDMX_CLZL,XLXSBJDMX_BJDHQCLCB,XLXSBJDMX_CLCBJCL,XLXSBJDMX_JGBBJLJJCL) ");
|
||||
sSQL.Add(" values(");
|
||||
sSQL.Add(" :XLXSBJDMX_BJDID, :XLXSBJDMX_XH, :XLXSBJDMX_XSSX, :XLXSBJDMX_XLXHID, :XLXSBJDMX_XLGGID,:XLXSBJDMX_WGCPBZ,:XLXSBJDMX_XDXLXHID,:XLXSBJDMX_XDXLBZID, ");
|
||||
sSQL.Add(" :XLXSBJDMX_XLBZID, isnull(:XLXSBJDMX_DYDJID,' '), :XLXSBJDMX_XLYSID, :XLXSBJDMX_BJCP, ");
|
||||
sSQL.Add(" :XLXSBJDMX_JLDW, :XLXSBJDMX_TZQCPBJ,:XLXSBJDMX_TZCPBJ,:XLXSBJDMX_CPBJ, :XLXSBJDMX_JGBJJ, :XLXSBJDMX_CLCB, :XLXSBJDMX_JGBBJ, ");
|
||||
sSQL.Add(" :XLXSBJDMX_DZSC, :XLXSBJDMX_WHR, :XLXSBJDMX_WHRID, :XLXSBJDMX_WHSJ,:XLXSBJDMX_JGBBJJCL,:XLXSBJDMX_CLZL,:XLXSBJDMX_BJDHQCLCB,:XLXSBJDMX_CLCBJCL,:XLXSBJDMX_JGBBJLJJCL)");
|
||||
|
||||
iXH = iXH + 1;
|
||||
iXSSX = iXSSX + 1;
|
||||
if (i == 0)
|
||||
{
|
||||
iStartXH = iXH;
|
||||
}
|
||||
sXLXHID = ContentGrid.DataKeys[int.Parse(sRowIndexs[i])]["XLXSCLQD_XLXHID"].ToString().Trim();
|
||||
sXLGGID = ContentGrid.DataKeys[int.Parse(sRowIndexs[i])]["XLXSCLQD_XLGGID"].ToString().Trim();
|
||||
if (sXLJGU007.Equals("A"))
|
||||
{
|
||||
sXLGGID = sXLGGID.Replace("x", "X").Replace("X", "*").Replace("*", "×");
|
||||
}
|
||||
else if (sXLJGU007.Equals("B"))
|
||||
{
|
||||
sXLGGID = sXLGGID.Replace("x", "X").Replace("X", "*").Replace("×", "*");
|
||||
}
|
||||
|
||||
sST = ContentGrid.DataKeys[int.Parse(sRowIndexs[i])]["XLXSCLQD_XLBZID"].ToString().Trim();
|
||||
sDYDJ = ContentGrid.DataKeys[int.Parse(sRowIndexs[i])]["XLXSCLQD_DYDJID"].ToString().Trim();
|
||||
|
||||
sSQL.ParamByName("XLXSBJDMX_JLDW").Value = sJLDW;
|
||||
|
||||
string sBJCP = "";
|
||||
if (string.IsNullOrEmpty(sDYDJ))
|
||||
sBJCP = sXLXHID + " " + sXLGGID;
|
||||
else
|
||||
sBJCP = sXLXHID + "-" + sDYDJ + " " + sXLGGID;
|
||||
|
||||
sDYDJ = sDYDJ.Equals("") ? " " : sDYDJ;
|
||||
|
||||
sSQL.ParamByName("XLXSBJDMX_BJDID").Value = sBJDID;
|
||||
sSQL.ParamByName("XLXSBJDMX_XH").Value = iXH;
|
||||
sSQL.ParamByName("XLXSBJDMX_XSSX").Value = iXSSX;
|
||||
sSQL.ParamByName("XLXSBJDMX_XLXHID").Value = sXLXHID;
|
||||
sSQL.ParamByName("XLXSBJDMX_XLGGID").Value = sXLGGID;
|
||||
sSQL.ParamByName("XLXSBJDMX_XLBZID").Value = sST;
|
||||
sSQL.ParamByName("XLXSBJDMX_DYDJID").Value = sDYDJ;
|
||||
sSQL.ParamByName("XLXSBJDMX_XDXLXHID").Value = sXLXHID;
|
||||
sSQL.ParamByName("XLXSBJDMX_XDXLBZID").Value = sST;
|
||||
sSQL.ParamByName("XLXSBJDMX_XLYSID").Value = XLBJDInfo.GetDefaultYSID(sXLXHID, sXLGGID);
|
||||
sSQL.ParamByName("XLXSBJDMX_BJCP").Value = sBJCP;
|
||||
sSQL.ParamByName("XLXSBJDMX_JGBBJ").Value = 0.0;
|
||||
sSQL.ParamByName("XLXSBJDMX_TZQCPBJ").Value = 0.0;
|
||||
sSQL.ParamByName("XLXSBJDMX_TZCPBJ").Value = 0;
|
||||
sSQL.ParamByName("XLXSBJDMX_CPBJ").Value = 0.0;
|
||||
sSQL.ParamByName("XLXSBJDMX_JGBJJ").Value = 0.0;
|
||||
sSQL.ParamByName("XLXSBJDMX_CLCB").Value = 0.0;
|
||||
sSQL.ParamByName("XLXSBJDMX_BJDHQCLCB").Value = 0.0;
|
||||
sSQL.ParamByName("XLXSBJDMX_CLZL").Value = 0.0;
|
||||
sSQL.ParamByName("XLXSBJDMX_JGBBJJCL").Value = 0.0;
|
||||
sSQL.ParamByName("XLXSBJDMX_CLCBJCL").Value = 0.0;
|
||||
sSQL.ParamByName("XLXSBJDMX_JGBBJLJJCL").Value = 0.0;
|
||||
sSQL.ParamByName("XLXSBJDMX_WGCPBZ").Value = "N";
|
||||
if (XLBJDUtils.ISDZBZ(sST))
|
||||
{
|
||||
sSQL.ParamByName("XLXSBJDMX_DZSC").Value = "Y";
|
||||
}
|
||||
else
|
||||
{
|
||||
sSQL.ParamByName("XLXSBJDMX_DZSC").Value = "N";
|
||||
}
|
||||
sSQL.ParamByName("XLXSBJDMX_WHR").Value = tSession.UserName;
|
||||
sSQL.ParamByName("XLXSBJDMX_WHRID").Value = tSession.UserId;
|
||||
sSQL.ParamByName("XLXSBJDMX_WHSJ").Value = DateTime.Now;
|
||||
dberp.ExecSQL(sSQL);
|
||||
|
||||
bNeedUp = true;
|
||||
}
|
||||
XLBJDUtils.UpdateXDXLBZID(dberp, sSQL, sBJDID, "", iStartXH - 1, ref sErrorNum);
|
||||
XLBJDUtils.SyncXLXSBJXLGGTHB_ByXLXSBJDMX_Batch(dberp, tSession, sBJDID, "", iStartXH - 1);
|
||||
if (bNeedUp)
|
||||
{
|
||||
XLBJDCalcUtils.CalcBJDMXAfterIns(dberp, sSQL, sBJDID, iStartXH, GetOption(100860000, "BJU002"), sBJU003, GetOption(100860000, "BJU018"), tSession.UserId, tSession.UserName, ref sErrorNum);
|
||||
}
|
||||
|
||||
ShowMessage("导入完成!");
|
||||
|
||||
dberp.CommitTrans();
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
dberp.RollbackTrans();
|
||||
ShowMessage(ex.Message);
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region 私有函数
|
||||
|
||||
private string GetQuerySql()
|
||||
{
|
||||
StringBuilder sbSql = new StringBuilder();
|
||||
|
||||
sbSql.AppendLine("select XLXSCLQD_XLXHID, XLXSCLQD_XLGGID, XLXSCLQD_XLBZID,XLXSCLQD_DYDJID,XLXSCLQD_CLZL, ");
|
||||
sbSql.AppendLine("RTRIM(XLXSCLQD_XLBZID)||'|'||XLBZ_XLBZLXMC as XLBZ ");
|
||||
sbSql.AppendLine("from XLXSCLQD left join XLBZ on XLBZ_XLBZID=XLXSCLQD_XLBZID ");
|
||||
sbSql.AppendLine("left join XLXSBJXLGGTHB on XLXSBJXLGGTHB_XLGGID = XLXSCLQD_XLGGID ");
|
||||
sbSql.AppendLine(" where 1=1 and XLXSCLQD_WPID ='ZZZZ' ");
|
||||
|
||||
if (!string.IsNullOrEmpty(CurQueryEntity.FieldByName("JGCZBID").Value.Trim()))
|
||||
{
|
||||
sbSql.AppendLine("\r\n and XLXSCLQD_JGCZBID = :pJGCZBID ");
|
||||
entity.Param.Add("pJGCZBID", CurQueryEntity.FieldByName("JGCZBID").Value.Trim().Split('|')[0]);
|
||||
}
|
||||
if (!string.IsNullOrEmpty(CurQueryEntity.FieldByName("JGCZBBBID").Value.Trim()))
|
||||
{
|
||||
sbSql.AppendLine("\r\n and XLXSCLQD_JGCZBBBID = :pJGCZBBBID ");
|
||||
entity.Param.Add("pJGCZBBBID", CurQueryEntity.FieldByName("JGCZBBBID").Value.Trim());
|
||||
}
|
||||
if (!string.IsNullOrEmpty(CurQueryEntity.FieldByName("CPMLID").Value.Trim()))
|
||||
{
|
||||
sbSql.AppendLine("\r\n and XLXSCLQD_CPMLID = :pCPMLID ");
|
||||
entity.Param.Add("pCPMLID", CurQueryEntity.FieldByName("CPMLID").Value.Trim());
|
||||
}
|
||||
//型号模糊
|
||||
if (!CurQueryEntity.FieldByName("XLXHIDJQPP").Value.ToString().Trim().ToUpper().Equals("TRUE"))
|
||||
{
|
||||
if (!string.IsNullOrEmpty(CurQueryEntity.FieldByName("XLXHID").Value.Trim()))
|
||||
{
|
||||
sbSql.AppendLine("\r\n and XLXSCLQD_XLXHID like :pXLXHID ");
|
||||
entity.Param.Add("pXLXHID", "%" + CurQueryEntity.FieldByName("XLXHID").Value.Trim() + "%");
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if (!string.IsNullOrEmpty(CurQueryEntity.FieldByName("XLXHID").Value.Trim()))
|
||||
{
|
||||
sbSql.AppendLine(" and XLXSCLQD_XLXHID = :pXLXHID ");
|
||||
entity.Param.Add("pXLXHID", CurQueryEntity.FieldByName("XLXHID").Value.Trim());
|
||||
}
|
||||
}
|
||||
//规格模糊
|
||||
if (!CurQueryEntity.FieldByName("XLGGIDJQPP").Value.ToString().Trim().ToUpper().Equals("TRUE"))
|
||||
{
|
||||
if (!string.IsNullOrEmpty(CurQueryEntity.FieldByName("XLGGID").Value.Trim()))
|
||||
{
|
||||
sbSql.AppendLine(" and XLXSBJXLGGTHB_XLGGIDCH like :pXLGGID ");
|
||||
entity.Param.Add("pXLGGID", "%" + CurQueryEntity.FieldByName("XLGGID").Value.Trim().Replace("*", "×") + "%");
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
string sXLGGID = CurQueryEntity.FieldByName("XLGGID").Value.Trim();
|
||||
if (!string.IsNullOrEmpty(sXLGGID))
|
||||
{
|
||||
string[] sTemp = sXLGGID.Split(new Char[] { ',' }, StringSplitOptions.RemoveEmptyEntries);
|
||||
if (sTemp.Length >= 2)
|
||||
{
|
||||
sbSql.AppendLine(" and " + CMISproDataBase.GetWhereEqual(" XLXSBJXLGGTHB_XLGGIDCH ", sXLGGID.Replace('*', '×')));
|
||||
}
|
||||
else
|
||||
{
|
||||
sbSql.AppendLine(" and XLXSBJXLGGTHB_XLGGIDCH = :pXLGGID ");
|
||||
entity.Param.Add("pXLGGID", CurQueryEntity.FieldByName("XLGGID").Value.Trim().Replace("*", "×"));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if (!string.IsNullOrEmpty(CurQueryEntity.FieldByName("ST").Value.Trim()))
|
||||
{
|
||||
sbSql.AppendLine(" and XLXSCLQD_XLBZID = :pST ");
|
||||
entity.Param.Add("pST", CurQueryEntity.FieldByName("ST").Value.Trim());
|
||||
}
|
||||
if (!string.IsNullOrEmpty(CurQueryEntity.FieldByName("BZMC").Value.Trim()))
|
||||
{
|
||||
sbSql.AppendLine(" and XLBZ_XLBZLXMC like :pBZMC ");
|
||||
entity.Param.Add("pBZMC", "%" + CurQueryEntity.FieldByName("BZMC").Value.Trim() + "%");
|
||||
}
|
||||
if (!string.IsNullOrEmpty(CurQueryEntity.FieldByName("DYDJ").Value.Trim()))
|
||||
{
|
||||
sbSql.AppendLine(" and XLXSCLQD_DYDJID = :pDYDJ ");
|
||||
entity.Param.Add("pDYDJ", CurQueryEntity.FieldByName("DYDJ").Value.Trim());
|
||||
}
|
||||
|
||||
sbSql.AppendLine(" order by XLXSCLQD_XLXHID, XLXSCLQD_XH ");
|
||||
|
||||
return sbSql.ToString();
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
}
|
||||
}
|
||||
Generated
+61
@@ -0,0 +1,61 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// 此代码由工具生成。
|
||||
// 运行时版本:2.0.50727.9179
|
||||
//
|
||||
// 对此文件的更改可能会导致不正确的行为,并且如果
|
||||
// 重新生成代码,这些更改将会丢失。
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace GThinking.U20261363_N_XLXSBJ {
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// XLBJD_PLDRList 类。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的类。
|
||||
/// </remarks>
|
||||
public partial class XLBJD_PLDRList {
|
||||
|
||||
/// <summary>
|
||||
/// ButtonTable 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Table ButtonTable;
|
||||
|
||||
/// <summary>
|
||||
/// btnQR 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtToolButton btnQR;
|
||||
|
||||
/// <summary>
|
||||
/// ContentGrid 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtGridView ContentGrid;
|
||||
|
||||
/// <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,146 @@
|
||||
<%@ Page Language="C#" MasterPageFile="~/N_MODEL/Page/MasterTreeGrid.Master" AutoEventWireup="True"
|
||||
Codebehind="XLBJD_PLTJList.aspx.cs" Inherits="GThinking.U20261363_N_XLXSBJ.XLBJD_PLTJList" Title="批量调价"%>
|
||||
|
||||
<%@ MasterType VirtualPath="~/N_MODEL/Page/MasterTreeGrid.Master" %>
|
||||
<asp:Content ID="ContentButton" ContentPlaceHolderID="CPHButton" runat="server">
|
||||
<asp:Table ID="CustomButton" runat="server" CellPadding="0" CellSpacing="0">
|
||||
<asp:TableRow>
|
||||
<asp:TableCell BorderWidth="0px" BorderStyle="NotSet">
|
||||
<gtc:gtToolButton ID="btnPLTJ" BorderWidth="0px" BorderStyle="NotSet" Width="82px"
|
||||
ButtonType="DropDown" ShowCaption="True" Caption="批量调价" runat="server" OnMenuItemClick="btnPLTJ_MenuItemClick"
|
||||
OnDropDown="btnPLTJ_OnDropDown" />
|
||||
</asp:TableCell>
|
||||
<asp:TableCell HorizontalAlign="Left" BorderWidth="0px" BorderStyle="notset">
|
||||
<gtc:gtToolButton ID="btnPLSCMX" BorderWidth="0px" BorderStyle="NotSet" Width="94px"
|
||||
Height="19px" ButtonType="Button" ShowCaption="True" runat="server" OnClick="btnPLSCMX_Click"
|
||||
Caption="批量删除明细" />
|
||||
</asp:TableCell>
|
||||
<asp:TableCell HorizontalAlign="Left" BorderWidth="0px" BorderStyle="notset">
|
||||
<gtc:gtToolButton ID="btnGXBJCP" BorderWidth="0px" BorderStyle="NotSet" Width="94px"
|
||||
Height="19px" ButtonType="Button" ShowCaption="True" runat="server" OnClick="btnGXBJCP_Click"
|
||||
Caption="同步报价产品" />
|
||||
</asp:TableCell>
|
||||
<asp:TableCell>
|
||||
<gtc:gtButton Style="display: none" ID="btnRefresh" OnClick="btnRefresh_Click" runat="server"
|
||||
Visible="true" EnableTheming="false"></gtc:gtButton>
|
||||
</asp:TableCell>
|
||||
<asp:TableCell>
|
||||
<gtc:gtButton Style="display: none" ID="btnOnlyRefresh" OnClick="btnOnlyRefresh_Click" runat="server"
|
||||
Visible="true" EnableTheming="false"></gtc:gtButton>
|
||||
</asp:TableCell>
|
||||
<asp:TableCell>
|
||||
<gtc:gtButton Style="display: none" ID="btnRefreshBJSF" OnClick="btnRefreshBJSF_Click"
|
||||
runat="server" Visible="true" EnableTheming="false"></gtc:gtButton>
|
||||
</asp:TableCell>
|
||||
<asp:TableCell>
|
||||
<gtc:gtButton Style="display: none" ID="btnRefreshBJXF" OnClick="btnRefreshBJXF_Click"
|
||||
runat="server" Visible="true" EnableTheming="false"></gtc:gtButton>
|
||||
</asp:TableCell>
|
||||
<asp:TableCell>
|
||||
<gtc:gtButton Style="display: none" ID="btnRefreshLJJCL" OnClick="btnRefreshLJJCL_Click"
|
||||
runat="server" Visible="true" EnableTheming="false"></gtc:gtButton>
|
||||
</asp:TableCell>
|
||||
<asp:TableCell>
|
||||
<gtc:gtButton Style="display: none" ID="btnRefreshBJXJ" OnClick="btnRefreshBJXJ_Click"
|
||||
runat="server" Visible="true" EnableTheming="false"></gtc:gtButton>
|
||||
</asp:TableCell>
|
||||
</asp:TableRow>
|
||||
</asp:Table>
|
||||
</asp:Content>
|
||||
<asp:Content ContentPlaceHolderID="CPHForm" ID="ContentForm" runat="server">
|
||||
<gtc:gtGridView ID="grdContentGrid" runat="server" AutoGenerateColumns="False" CellPadding="2"
|
||||
CellSpacing="2" AllowSorting="True" EnableViewState="True" CheckBox="true" MaintainScrollPositionXOnPostback="true" >
|
||||
<FixRowCol TableHeight="100%" TableWidth="100%" />
|
||||
<Columns>
|
||||
<asp:BoundField DataField="XLXSBJDMX_XSSX" HeaderText="显示序号">
|
||||
<itemstyle width="50px" horizontalalign="right"></itemstyle>
|
||||
<headerstyle width="50px" horizontalalign="Center"></headerstyle>
|
||||
</asp:BoundField>
|
||||
<asp:BoundField DataField="XLXHID" HeaderText="型号">
|
||||
<itemstyle width="80px"></itemstyle>
|
||||
<headerstyle width="80px" horizontalalign="Center"></headerstyle>
|
||||
</asp:BoundField>
|
||||
<asp:BoundField DataField="XLGGID" HeaderText="规格">
|
||||
<itemstyle width="80px"></itemstyle>
|
||||
<headerstyle horizontalalign="Center" width="80px"></headerstyle>
|
||||
</asp:BoundField>
|
||||
<asp:BoundField DataField="XLBZID" HeaderText="标准">
|
||||
<itemstyle width="60px"></itemstyle>
|
||||
<headerstyle width="60px" horizontalalign="Center"></headerstyle>
|
||||
</asp:BoundField>
|
||||
<asp:BoundField DataField="DYDJID" HeaderText="电压等级">
|
||||
<itemstyle width="80px"></itemstyle>
|
||||
<headerstyle width="80px" horizontalalign="Center"></headerstyle>
|
||||
</asp:BoundField>
|
||||
<asp:BoundField DataField="JLDW" HeaderText="计量单位">
|
||||
<itemstyle width="60px"></itemstyle>
|
||||
<headerstyle width="60px" horizontalalign="Center"></headerstyle>
|
||||
</asp:BoundField>
|
||||
<asp:BoundField DataField="XLXSBJDMX_BJCP" HeaderText="报价产品">
|
||||
<itemstyle width="200px"></itemstyle>
|
||||
<headerstyle width="200px" horizontalalign="Center"></headerstyle>
|
||||
</asp:BoundField>
|
||||
<asp:BoundField DataField="XLXSBJDMX_BJSL" HeaderText="报价数量">
|
||||
<itemstyle width="80px" horizontalalign="right"></itemstyle>
|
||||
<headerstyle width="80px" horizontalalign="Center"></headerstyle>
|
||||
</asp:BoundField>
|
||||
<asp:BoundField DataField="XLXSBJDMX_BJDHQCLCB" HeaderText="报价单行情料价">
|
||||
<itemstyle width="120px" horizontalalign="right"></itemstyle>
|
||||
<headerstyle width="120px" horizontalalign="Center"></headerstyle>
|
||||
</asp:BoundField>
|
||||
<asp:BoundField DataField="XLXSBJDMX_CLCB" HeaderText="价格表行情料价">
|
||||
<itemstyle width="120px" horizontalalign="right"></itemstyle>
|
||||
<headerstyle width="120px" horizontalalign="Center"></headerstyle>
|
||||
</asp:BoundField>
|
||||
<asp:BoundField DataField="XLXSBJDMX_JGBJJ" HeaderText="基价">
|
||||
<itemstyle width="120px" horizontalalign="right"></itemstyle>
|
||||
<headerstyle width="120px" horizontalalign="Center"></headerstyle>
|
||||
</asp:BoundField>
|
||||
<asp:BoundField DataField="XLXSBJDMX_JGBBJ" HeaderText="表价">
|
||||
<itemstyle width="120px" horizontalalign="right"></itemstyle>
|
||||
<headerstyle width="120px" horizontalalign="Center"></headerstyle>
|
||||
</asp:BoundField>
|
||||
|
||||
</Columns>
|
||||
<ColumnsEx>
|
||||
<gtc:gtGridView_Column DataField="XLXSBJDMX_XSSX" EditType="etNumber" NumberDecimalPlace="0"
|
||||
ShowHint="true">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="XLXHID" EditType="etString" ShowHint="true">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="XLGGID" EditType="etString" ShowHint="true">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="XLBZID" EditType="etString" ShowHint="true">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="DYDJID" EditType="etString" ShowHint="true">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="JLDW" EditType="etString" ShowHint="true">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="XLXSBJDMX_BJCP" EditType="etString" ShowHint="true">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="XLXSBJDMX_BJSL" EditType="etNumber" NumberDecimalPlace="3" NumberIsQuantity="true">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="XLXSBJDMX_BJDHQCLCB" EditType="etNumber" NumberDecimalPlace="5"
|
||||
ShowHint="true">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="XLXSBJDMX_CLCB" EditType="etNumber" NumberDecimalPlace="5"
|
||||
ShowHint="true">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="XLXSBJDMX_JGBJJ" EditType="etNumber" NumberDecimalPlace="5"
|
||||
ShowHint="true">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="XLXSBJDMX_JGBBJ" EditType="etNumber" NumberDecimalPlace="5"
|
||||
ShowHint="true">
|
||||
</gtc:gtGridView_Column>
|
||||
|
||||
</ColumnsEx>
|
||||
</gtc:gtGridView>
|
||||
<asp:HiddenField ID="txtPLSZYZList" runat="server" />
|
||||
<asp:HiddenField ID="txtBJSF" runat="server" />
|
||||
<asp:HiddenField ID="txtBJXF" runat="server" />
|
||||
<asp:HiddenField ID="txtJMBGS" runat="server" />
|
||||
<asp:HiddenField ID="txtTZZ" runat="server" />
|
||||
<asp:HiddenField ID="txtPLSZAll" runat="server" />
|
||||
</asp:Content>
|
||||
<asp:Content ContentPlaceHolderID="CPHSync" ID="ContentSync" runat="server" />
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Generated
+187
@@ -0,0 +1,187 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// 此代码由工具生成。
|
||||
// 运行时版本:2.0.50727.9179
|
||||
//
|
||||
// 对此文件的更改可能会导致不正确的行为,并且如果
|
||||
// 重新生成代码,这些更改将会丢失。
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace GThinking.U20261363_N_XLXSBJ {
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// XLBJD_PLTJList 类。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的类。
|
||||
/// </remarks>
|
||||
public partial class XLBJD_PLTJList {
|
||||
|
||||
/// <summary>
|
||||
/// CustomButton 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Table CustomButton;
|
||||
|
||||
/// <summary>
|
||||
/// btnPLTJ 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtToolButton btnPLTJ;
|
||||
|
||||
/// <summary>
|
||||
/// btnPLSCMX 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtToolButton btnPLSCMX;
|
||||
|
||||
/// <summary>
|
||||
/// btnGXBJCP 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtToolButton btnGXBJCP;
|
||||
|
||||
/// <summary>
|
||||
/// btnRefresh 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtButton btnRefresh;
|
||||
|
||||
/// <summary>
|
||||
/// btnOnlyRefresh 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtButton btnOnlyRefresh;
|
||||
|
||||
/// <summary>
|
||||
/// btnRefreshBJSF 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtButton btnRefreshBJSF;
|
||||
|
||||
/// <summary>
|
||||
/// btnRefreshBJXF 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtButton btnRefreshBJXF;
|
||||
|
||||
/// <summary>
|
||||
/// btnRefreshLJJCL 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtButton btnRefreshLJJCL;
|
||||
|
||||
/// <summary>
|
||||
/// btnRefreshBJXJ 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtButton btnRefreshBJXJ;
|
||||
|
||||
/// <summary>
|
||||
/// grdContentGrid 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtGridView grdContentGrid;
|
||||
|
||||
/// <summary>
|
||||
/// txtPLSZYZList 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.HiddenField txtPLSZYZList;
|
||||
|
||||
/// <summary>
|
||||
/// txtBJSF 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.HiddenField txtBJSF;
|
||||
|
||||
/// <summary>
|
||||
/// txtBJXF 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.HiddenField txtBJXF;
|
||||
|
||||
/// <summary>
|
||||
/// txtJMBGS 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.HiddenField txtJMBGS;
|
||||
|
||||
/// <summary>
|
||||
/// txtTZZ 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.HiddenField txtTZZ;
|
||||
|
||||
/// <summary>
|
||||
/// txtPLSZAll 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.HiddenField txtPLSZAll;
|
||||
|
||||
/// <summary>
|
||||
/// Master 属性。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的属性。
|
||||
/// </remarks>
|
||||
public new GThinking.N_MODEL.Page.MasterTreeGrid Master {
|
||||
get {
|
||||
return ((GThinking.N_MODEL.Page.MasterTreeGrid)(base.Master));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,155 @@
|
||||
<%@ Page Language="C#" MasterPageFile="~/N_MODEL/Page/MasterSingleQuery.Master" AutoEventWireup="True"
|
||||
Codebehind="XLBJD_PLTJQuery.aspx.cs" Inherits="GThinking.U20261363_N_XLXSBJ.XLBJD_PLTJQuery"
|
||||
Title="查询" %>
|
||||
|
||||
<%@ MasterType VirtualPath="~/N_MODEL/Page/MasterSingleQuery.Master" %>
|
||||
<asp:Content ID="ContentQuery" ContentPlaceHolderID="CPHQuery" runat="server">
|
||||
<asp:Table ID="QueryTalbe" runat="server">
|
||||
<asp:TableRow>
|
||||
<asp:TableCell></asp:TableCell>
|
||||
<asp:TableCell HorizontalAlign="Right" Height="23px">
|
||||
<gtc:gtLabel ID="GtLabel5" runat="server">芯线结构:</gtc:gtLabel>
|
||||
</asp:TableCell>
|
||||
<asp:TableCell Height="23px">
|
||||
<gtc:gtTextBox ID="txtXLJGID" runat="server" Width="72px" DataField="XLJGID"></gtc:gtTextBox>
|
||||
</asp:TableCell>
|
||||
</asp:TableRow>
|
||||
<asp:TableRow>
|
||||
<asp:TableCell></asp:TableCell>
|
||||
<asp:TableCell HorizontalAlign="Right" Height="23px">
|
||||
<gtc:gtLabel ID="GtLabel10" runat="server">线缆规格:</gtc:gtLabel>
|
||||
</asp:TableCell>
|
||||
<asp:TableCell Height="23px">
|
||||
<gtc:gtTextBox ID="txtXLGG" runat="server" Width="72px" DataField="XLGGID"></gtc:gtTextBox>
|
||||
</asp:TableCell>
|
||||
</asp:TableRow>
|
||||
<asp:TableRow ID="trJMBGS" runat="server">
|
||||
<asp:TableCell></asp:TableCell>
|
||||
<asp:TableCell HorizontalAlign="Right" Height="23px">
|
||||
<gtc:gtLabel ID="GtLabel11" runat="server">截面比公式:</gtc:gtLabel>
|
||||
</asp:TableCell>
|
||||
<asp:TableCell Height="23px">
|
||||
<gtc:gtTextBox ID="txtJMBGS" runat="server" Width="72px" DataField="JMBGS"></gtc:gtTextBox>
|
||||
</asp:TableCell>
|
||||
</asp:TableRow>
|
||||
|
||||
<asp:TableRow>
|
||||
<asp:TableCell></asp:TableCell>
|
||||
<asp:TableCell HorizontalAlign="Right" Height="23px">
|
||||
<gtc:gtLabel ID="GtLabel6" runat="server">主芯截面范围始>=:</gtc:gtLabel>
|
||||
</asp:TableCell>
|
||||
<asp:TableCell Height="23px">
|
||||
<gtc:gtNumTextBox ID="txtZJMS" runat="server" Width="72px" DataField="ZJMS"></gtc:gtNumTextBox>
|
||||
</asp:TableCell>
|
||||
</asp:TableRow>
|
||||
<asp:TableRow>
|
||||
<asp:TableCell></asp:TableCell>
|
||||
<asp:TableCell HorizontalAlign="Right" Height="23px">
|
||||
<gtc:gtLabel ID="GtLabel7" runat="server">主芯截面范围止<=:</gtc:gtLabel>
|
||||
</asp:TableCell>
|
||||
<asp:TableCell Height="23px">
|
||||
<gtc:gtNumTextBox ID="txtZJMZ" runat="server" Width="72px" DataField="ZJMZ"></gtc:gtNumTextBox>
|
||||
</asp:TableCell>
|
||||
</asp:TableRow>
|
||||
<asp:TableRow>
|
||||
<asp:TableCell></asp:TableCell>
|
||||
<asp:TableCell HorizontalAlign="Right" Height="23px">
|
||||
<gtc:gtLabel ID="GtLabel1" runat="server">报价数量始:</gtc:gtLabel>
|
||||
</asp:TableCell>
|
||||
<asp:TableCell Height="23px">
|
||||
<gtc:gtNumTextBox ID="txtBJSLS" runat="server" Width="72px" DataField="BJSLS" DecimalPlaces="3" IsQuantity="true"></gtc:gtNumTextBox>
|
||||
<gtc:gtLabel ID="lblBJSLS" runat="server">M</gtc:gtLabel>
|
||||
</asp:TableCell>
|
||||
</asp:TableRow>
|
||||
<asp:TableRow>
|
||||
<asp:TableCell></asp:TableCell>
|
||||
<asp:TableCell HorizontalAlign="Right" Height="23px">
|
||||
<gtc:gtLabel ID="GtLabel2" runat="server">报价数量止:</gtc:gtLabel>
|
||||
</asp:TableCell>
|
||||
<asp:TableCell Height="23px">
|
||||
<gtc:gtNumTextBox ID="txtBJSLZ" runat="server" Width="72px" DataField="BJSLZ" DecimalPlaces="3" IsQuantity="true"></gtc:gtNumTextBox>
|
||||
<gtc:gtLabel ID="lblBJSLZ" runat="server">M</gtc:gtLabel>
|
||||
</asp:TableCell>
|
||||
</asp:TableRow>
|
||||
<asp:TableRow>
|
||||
<asp:TableCell></asp:TableCell>
|
||||
<asp:TableCell HorizontalAlign="Right" Height="23px">
|
||||
<gtc:gtLabel ID="GtLabel3" runat="server">报价金额始:</gtc:gtLabel>
|
||||
</asp:TableCell>
|
||||
<asp:TableCell Height="23px">
|
||||
<gtc:gtNumTextBox ID="txtBJJES" runat="server" Width="72px" DataField="BJJES" DecimalPlaces="2"></gtc:gtNumTextBox>
|
||||
</asp:TableCell>
|
||||
</asp:TableRow>
|
||||
<asp:TableRow>
|
||||
<asp:TableCell></asp:TableCell>
|
||||
<asp:TableCell HorizontalAlign="Right" Height="23px">
|
||||
<gtc:gtLabel ID="GtLabel8" runat="server">报价金额止:</gtc:gtLabel>
|
||||
</asp:TableCell>
|
||||
<asp:TableCell Height="23px">
|
||||
<gtc:gtNumTextBox ID="txtBJJEZ" runat="server" Width="72px" DataField="BJJEZ" DecimalPlaces="2"></gtc:gtNumTextBox>
|
||||
</asp:TableCell>
|
||||
</asp:TableRow>
|
||||
<asp:TableRow ID="trLSBJS" runat="server">
|
||||
<asp:TableCell></asp:TableCell>
|
||||
<asp:TableCell HorizontalAlign="Right" Height="23px">
|
||||
<gtc:gtLabel ID="GtLabel12" runat="server">临时表价始:</gtc:gtLabel>
|
||||
</asp:TableCell>
|
||||
<asp:TableCell Height="23px">
|
||||
<gtc:gtNumTextBox ID="txtLSBJS" runat="server" Width="72px" DataField="DJS" DecimalPlaces="2"></gtc:gtNumTextBox>
|
||||
</asp:TableCell>
|
||||
</asp:TableRow>
|
||||
<asp:TableRow ID="trLSBJZ" runat="server">
|
||||
<asp:TableCell></asp:TableCell>
|
||||
<asp:TableCell HorizontalAlign="Right" Height="23px">
|
||||
<gtc:gtLabel ID="GtLabel13" runat="server">临时表价止:</gtc:gtLabel>
|
||||
</asp:TableCell>
|
||||
<asp:TableCell Height="23px">
|
||||
<gtc:gtNumTextBox ID="txtLSBJZ" runat="server" Width="72px" DataField="DJZ" DecimalPlaces="2"></gtc:gtNumTextBox>
|
||||
</asp:TableCell>
|
||||
</asp:TableRow>
|
||||
<asp:TableRow>
|
||||
<asp:TableCell></asp:TableCell>
|
||||
<asp:TableCell HorizontalAlign="Right" Height="22px">
|
||||
<gtc:gtLabel ID="GtLabel4" runat="server">产品用途:</gtc:gtLabel>
|
||||
</asp:TableCell>
|
||||
<asp:TableCell Height="22px">
|
||||
<gtc:gtCheckedDropDownList ID="drpCPYT" runat="server" DataField="CPYT" Width="200px" ShowValue ="false"></gtc:gtCheckedDropDownList>
|
||||
</asp:TableCell>
|
||||
</asp:TableRow>
|
||||
<asp:TableRow ID="trBH" runat="server">
|
||||
<asp:TableCell></asp:TableCell>
|
||||
<asp:TableCell HorizontalAlign="Right" Height="22px">
|
||||
<gtc:gtLabel ID="lblBH" runat="server">包号:</gtc:gtLabel>
|
||||
</asp:TableCell>
|
||||
<asp:TableCell Height="22px">
|
||||
<gtc:gtCheckedDropDownList ID="cbxBH" runat="server" DataField="BH" Width="200px" ShowValue ="false"></gtc:gtCheckedDropDownList>
|
||||
</asp:TableCell>
|
||||
</asp:TableRow>
|
||||
<asp:TableRow ID="trXJBJ" runat="server">
|
||||
<asp:TableCell></asp:TableCell>
|
||||
<asp:TableCell></asp:TableCell>
|
||||
<asp:TableCell HorizontalAlign="left" Height="22px">
|
||||
<gtc:gtCheckBox ID="chkJTZCEWF" runat="server" Text="仅显示限价与报价差额为负" DataField="XJBJCEWF"/>
|
||||
</asp:TableCell>
|
||||
</asp:TableRow>
|
||||
|
||||
<asp:TableRow Visible="false">
|
||||
<asp:TableCell></asp:TableCell>
|
||||
<asp:TableCell HorizontalAlign="Right" Height="23px">
|
||||
<gtc:gtLabel ID="GtLabel9" runat="server">报价单ID:</gtc:gtLabel></asp:TableCell>
|
||||
<asp:TableCell Height="23px">
|
||||
<gtc:gtTextBox ID="txtBJDID" runat= "Server" DataField="BJDID"></gtc:gtTextBox>
|
||||
</asp:TableCell>
|
||||
</asp:TableRow>
|
||||
<asp:TableRow>
|
||||
<asp:TableCell></asp:TableCell>
|
||||
<asp:TableCell HorizontalAlign="Right" Width="100px" Height="22px">
|
||||
</asp:TableCell>
|
||||
<asp:TableCell Height="22px">
|
||||
<gtc:gtCheckBox ID="chkXTBJCP" DataField="XTBJCP" runat="server" Width="120px"
|
||||
Text="相同报价产品" ></gtc:gtCheckBox>
|
||||
</asp:TableCell>
|
||||
</asp:TableRow>
|
||||
</asp:Table>
|
||||
</asp:Content>
|
||||
|
||||
@@ -0,0 +1,131 @@
|
||||
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.U20261363_N_XLXSBJ
|
||||
{
|
||||
public class XLBJD_PLTJ_M : TBaseNamedQuery
|
||||
{
|
||||
public XLBJD_PLTJ_M()
|
||||
{
|
||||
AddFieldDefs("XLJGID", "芯线结构");
|
||||
AddFieldDefs("ZJMS", "主芯截面范围始");
|
||||
AddFieldDefs("ZJMZ", "主芯截面范围止");
|
||||
|
||||
AddFieldDefs("BJSLS", "报价数量始");
|
||||
AddFieldDefs("BJSLZ", "报价数量止");
|
||||
|
||||
AddFieldDefs("BJJES", "报价金额始");
|
||||
AddFieldDefs("BJJEZ", "报价金额止");
|
||||
|
||||
AddFieldDefs("BJDID", "报价单ID");
|
||||
AddFieldDefs("CPYT", "产品用途");
|
||||
AddFieldDefs("BH", "包号");
|
||||
AddFieldDefs("XJBJCEWF", "仅显示限价与报价差额为负");
|
||||
|
||||
AddFieldDefs("JMBGS", "截面比公式");
|
||||
AddFieldDefs("XLGGID", "规格");
|
||||
AddFieldDefs("DJS", "单价始");
|
||||
AddFieldDefs("DJZ", "单价止");
|
||||
AddFieldDefs("XTBJCP", "相同报价产品");
|
||||
//AddFieldDefs("ZSFS", "树节点展示方式", false);
|
||||
}
|
||||
}
|
||||
public partial class XLBJD_PLTJQuery : SingleQueryBase
|
||||
{
|
||||
XLBJD_PLTJ_M queryentity = new XLBJD_PLTJ_M();
|
||||
|
||||
#region 页面初始化
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
this.UMID = 100860174;
|
||||
this.UMName = "线缆销售报价单";
|
||||
this.CurMaster = Master;
|
||||
this.CurQueryTable = QueryTalbe;
|
||||
this.CurQueryEntity = queryentity;
|
||||
|
||||
base.InitPage();
|
||||
|
||||
if (!IsPostBack)
|
||||
{
|
||||
InitControls();
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 私有函数
|
||||
private void InitControls()
|
||||
{
|
||||
trBH.Visible = false;
|
||||
trXJBJ.Visible = false;
|
||||
trLSBJS.Visible = false;
|
||||
trLSBJZ.Visible = false;
|
||||
trJMBGS.Visible = false;
|
||||
if (!PageParam.GetRTrimString("BJFLID").Equals(""))
|
||||
{
|
||||
if (XLBJDUtils.GetBJFLXX(PageParam.GetRTrimString("BJFLID")).XSBHChecked())
|
||||
trBH.Visible = true;
|
||||
if (XLBJDUtils.GetBJFLXX(PageParam.GetRTrimString("BJFLID")).XSCPBJXJChecked())
|
||||
trXJBJ.Visible = true;
|
||||
if (!XLBJDUtils.GetBJFLXX(PageParam.GetRTrimString("BJFLID")).XLXSBJFL_JMBGSYZID.Equals(""))
|
||||
trJMBGS.Visible = true;
|
||||
if (XLBJDUtils.GetBJFLXX(PageParam.GetRTrimString("BJFLID")).XLXSBJFL_XSLSBJ.Equals("Y"))
|
||||
{
|
||||
trLSBJS.Visible = true;
|
||||
trLSBJZ.Visible = true;
|
||||
}
|
||||
|
||||
}
|
||||
string sBJU003 = GetOption(100860000, "BJU003");
|
||||
lblBJSLS.Text = sBJU003;
|
||||
lblBJSLZ.Text = sBJU003;
|
||||
|
||||
TDatabase dberp = TContextDatabases.GetDatabase("DBERP");
|
||||
TSQL SQL = new TSQL(dberp);
|
||||
SQL.Clear();
|
||||
SQL.Add(" select distinct ");
|
||||
SQL.Add(" isnull(XLXHB_CPYT,' ') as XLXHB_CPYT,isnull(XLCPYT_CPYTMC,' ') as XLCPYT_CPYTMC, ");
|
||||
SQL.Add(" isnull(XLDYDJB_DYDJFL,' ') as XLDYDJB_DYDJFL,isnull(XLCPYT_XSSX,-1) as PX ");
|
||||
SQL.Add(" from XLXHDYDJ ");
|
||||
SQL.Add(" left join XLXHB on XLXHB_XLXHID=XLXHDYDJ_XLXHID ");
|
||||
SQL.Add(" left join XLCPYT on XLCPYT_CPYT=XLXHB_CPYT ");
|
||||
SQL.Add(" left join XLDYDJB on XLDYDJB_DYDJID=XLXHDYDJ_DYDJID ");
|
||||
SQL.Add(" where 1=1 ");
|
||||
SQL.Add(" and exists( select 1 from XLXSBJDMX where XLXSBJDMX_BJDID =:pBJDID and XLXSBJDMX_XLXHID = XLXHB_XLXHID and XLXSBJDMX_DYDJID = XLXHDYDJ_DYDJID)");
|
||||
SQL.Add(" order by isnull(XLCPYT_XSSX,-1),isnull(XLXHB_CPYT,' '),isnull(XLDYDJB_DYDJFL,' ') ");
|
||||
SQL.ParamByName("pBJDID").Value = txtBJDID.Text.Trim();
|
||||
DataSet ds = dberp.OpenDataSet(SQL);
|
||||
drpCPYT.ClearItems();
|
||||
for (int i = 0; i < ds.Tables[0].Rows.Count; i++)
|
||||
{
|
||||
drpCPYT.Items.Add(new ListItem(ds.Tables[0].Rows[i]["XLCPYT_CPYTMC"].ToString().Trim(), ds.Tables[0].Rows[i]["XLXHB_CPYT"].ToString().Trim()));
|
||||
}
|
||||
|
||||
SQL.Clear();
|
||||
SQL.Add("select distinct XLXSBJDMX_FBH from XLXSBJDMX where XLXSBJDMX_BJDID=:pBJDID and isnull(XLXSBJDMX_FBH,' ')<>' ' order by XLXSBJDMX_FBH ");
|
||||
SQL.ParamByName("pBJDID").Value = txtBJDID.Text.Trim();
|
||||
ds = dberp.OpenDataSet(SQL);
|
||||
cbxBH.ClearItems();
|
||||
for (int i = 0; i < ds.Tables[0].Rows.Count; i++)
|
||||
{
|
||||
cbxBH.Items.Add(new ListItem(ds.Tables[0].Rows[i]["XLXSBJDMX_FBH"].ToString().Trim(), ds.Tables[0].Rows[i]["XLXSBJDMX_FBH"].ToString().Trim()));
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
Generated
+376
@@ -0,0 +1,376 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// 此代码由工具生成。
|
||||
// 运行时版本:2.0.50727.9179
|
||||
//
|
||||
// 对此文件的更改可能会导致不正确的行为,并且如果
|
||||
// 重新生成代码,这些更改将会丢失。
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace GThinking.U20261363_N_XLXSBJ {
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// XLBJD_PLTJQuery 类。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的类。
|
||||
/// </remarks>
|
||||
public partial class XLBJD_PLTJQuery {
|
||||
|
||||
/// <summary>
|
||||
/// QueryTalbe 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Table QueryTalbe;
|
||||
|
||||
/// <summary>
|
||||
/// GtLabel5 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtLabel GtLabel5;
|
||||
|
||||
/// <summary>
|
||||
/// txtXLJGID 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtTextBox txtXLJGID;
|
||||
|
||||
/// <summary>
|
||||
/// GtLabel10 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtLabel GtLabel10;
|
||||
|
||||
/// <summary>
|
||||
/// txtXLGG 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtTextBox txtXLGG;
|
||||
|
||||
/// <summary>
|
||||
/// trJMBGS 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.TableRow trJMBGS;
|
||||
|
||||
/// <summary>
|
||||
/// GtLabel11 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtLabel GtLabel11;
|
||||
|
||||
/// <summary>
|
||||
/// txtJMBGS 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtTextBox txtJMBGS;
|
||||
|
||||
/// <summary>
|
||||
/// GtLabel6 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtLabel GtLabel6;
|
||||
|
||||
/// <summary>
|
||||
/// txtZJMS 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtNumTextBox txtZJMS;
|
||||
|
||||
/// <summary>
|
||||
/// GtLabel7 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtLabel GtLabel7;
|
||||
|
||||
/// <summary>
|
||||
/// txtZJMZ 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtNumTextBox txtZJMZ;
|
||||
|
||||
/// <summary>
|
||||
/// GtLabel1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtLabel GtLabel1;
|
||||
|
||||
/// <summary>
|
||||
/// txtBJSLS 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtNumTextBox txtBJSLS;
|
||||
|
||||
/// <summary>
|
||||
/// lblBJSLS 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtLabel lblBJSLS;
|
||||
|
||||
/// <summary>
|
||||
/// GtLabel2 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtLabel GtLabel2;
|
||||
|
||||
/// <summary>
|
||||
/// txtBJSLZ 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtNumTextBox txtBJSLZ;
|
||||
|
||||
/// <summary>
|
||||
/// lblBJSLZ 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtLabel lblBJSLZ;
|
||||
|
||||
/// <summary>
|
||||
/// GtLabel3 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtLabel GtLabel3;
|
||||
|
||||
/// <summary>
|
||||
/// txtBJJES 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtNumTextBox txtBJJES;
|
||||
|
||||
/// <summary>
|
||||
/// GtLabel8 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtLabel GtLabel8;
|
||||
|
||||
/// <summary>
|
||||
/// txtBJJEZ 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtNumTextBox txtBJJEZ;
|
||||
|
||||
/// <summary>
|
||||
/// trLSBJS 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.TableRow trLSBJS;
|
||||
|
||||
/// <summary>
|
||||
/// GtLabel12 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtLabel GtLabel12;
|
||||
|
||||
/// <summary>
|
||||
/// txtLSBJS 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtNumTextBox txtLSBJS;
|
||||
|
||||
/// <summary>
|
||||
/// trLSBJZ 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.TableRow trLSBJZ;
|
||||
|
||||
/// <summary>
|
||||
/// GtLabel13 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtLabel GtLabel13;
|
||||
|
||||
/// <summary>
|
||||
/// txtLSBJZ 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtNumTextBox txtLSBJZ;
|
||||
|
||||
/// <summary>
|
||||
/// GtLabel4 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtLabel GtLabel4;
|
||||
|
||||
/// <summary>
|
||||
/// drpCPYT 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtCheckedDropDownList drpCPYT;
|
||||
|
||||
/// <summary>
|
||||
/// trBH 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.TableRow trBH;
|
||||
|
||||
/// <summary>
|
||||
/// lblBH 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtLabel lblBH;
|
||||
|
||||
/// <summary>
|
||||
/// cbxBH 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtCheckedDropDownList cbxBH;
|
||||
|
||||
/// <summary>
|
||||
/// trXJBJ 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.TableRow trXJBJ;
|
||||
|
||||
/// <summary>
|
||||
/// chkJTZCEWF 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtCheckBox chkJTZCEWF;
|
||||
|
||||
/// <summary>
|
||||
/// GtLabel9 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtLabel GtLabel9;
|
||||
|
||||
/// <summary>
|
||||
/// txtBJDID 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtTextBox txtBJDID;
|
||||
|
||||
/// <summary>
|
||||
/// chkXTBJCP 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtCheckBox chkXTBJCP;
|
||||
|
||||
/// <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,92 @@
|
||||
<%@ Page Language="C#" MasterPageFile="~/N_MODEL/Page/MasterSingleCard.Master" AutoEventWireup="True"
|
||||
Codebehind="XLBJD_TLJInfo.aspx.cs" Inherits="GThinking.U20261363_N_XLXSBJ.XLBJD_TLJInfo"
|
||||
Title="铜铝价调整" %>
|
||||
|
||||
<%@ MasterType VirtualPath="~/N_MODEL/Page/MasterSingleCard.Master" %>
|
||||
<asp:Content ID="cntTool" ContentPlaceHolderID="cphUserToolbar" runat="server">
|
||||
<asp:Table CellPadding="0" CellSpacing="0" runat="server" ID="tbl1">
|
||||
<asp:TableRow>
|
||||
<asp:TableCell>
|
||||
<gtc:gtToolButton ID="btnQR" runat="server" Caption="确 认" ShowCaption="true" OnClick="btnQR_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="cntForm" ContentPlaceHolderID="cphForm" runat="server">
|
||||
<table width="100%" cellpadding="0" cellspacing="0">
|
||||
<tr style="height:10px;"></tr>
|
||||
<tr>
|
||||
<td align="right">
|
||||
<gtc:gtLabel ID="lblTJ" runat="server">铜价(含税):</gtc:gtLabel>
|
||||
</td>
|
||||
<td align="left">
|
||||
<gtc:gtNumTextBox ID="txtTJ" runat="server" Width="62px"></gtc:gtNumTextBox>
|
||||
<gtc:gtcheckbox ID="chkZDTJ" runat="server" Text="指定" Width="50px"></gtc:gtcheckbox>
|
||||
</td>
|
||||
<td align="right">
|
||||
<gtc:gtLabel ID="lblLJ" runat="server">铝价(含税):</gtc:gtLabel>
|
||||
</td>
|
||||
<td align="left">
|
||||
<gtc:gtNumTextBox ID="txtLJ" runat="server" Width="62px"></gtc:gtNumTextBox>
|
||||
<gtc:gtcheckbox ID="chkZDLJ" runat="server" Text="指定" Width="50px"></gtc:gtcheckbox>
|
||||
</td>
|
||||
</tr>
|
||||
<tr style="height:8px;"></tr>
|
||||
<tr>
|
||||
<td align="right">
|
||||
<gtc:gtLabel ID="GtLabel3" runat="server">料价日期:</gtc:gtLabel>
|
||||
</td>
|
||||
<td align="left">
|
||||
<gtc:gtDateTimeTextBox ID="datLJRQ" runat="server" Width="72px" AutoPostBack="true" OnTextChanged="datLJRQ_TextChanged"></gtc:gtDateTimeTextBox>
|
||||
</td>
|
||||
<td align="right">
|
||||
</td>
|
||||
<td align="left">
|
||||
<gtc:gtButton ID="lblGetToday" runat="server" Text="取最新价" OnClick="lblGetToday_Click"/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr style="height:8px;"></tr>
|
||||
<tr>
|
||||
<td align="right">
|
||||
<gtc:gtLabel ID="lblTodayTJ" runat="server" ForeColor="#0000ff">【最新】铜价(含税):</gtc:gtLabel>
|
||||
</td>
|
||||
<td align="left">
|
||||
<gtc:gtNumTextBox ID="txtTodayTJ" runat="server" Width="62px"></gtc:gtNumTextBox>
|
||||
</td>
|
||||
<td align="right">
|
||||
<gtc:gtLabel ID="lblTodayLJ" runat="server" ForeColor="#0000ff">铝价(含税):</gtc:gtLabel>
|
||||
</td>
|
||||
<td align="left">
|
||||
<gtc:gtNumTextBox ID="txtTodayLJ" runat="server" Width="62px"></gtc:gtNumTextBox>
|
||||
</td>
|
||||
</tr>
|
||||
<tr style="height:8px;"></tr>
|
||||
<tr>
|
||||
<td align="right"></td>
|
||||
<td align="left">
|
||||
<gtc:gtcheckbox ID="chkQTCLQZXJ" runat="server" Text="其他材料取最新价" Width="118px"></gtc:gtcheckbox>
|
||||
</td>
|
||||
</tr>
|
||||
<tr style="height:8px;"></tr>
|
||||
<tr>
|
||||
<td align="right">
|
||||
<gtc:gtLabel ID="GtLabel1" runat="server" ForeColor="#0000ff">维护时间:</gtc:gtLabel>
|
||||
</td>
|
||||
<td align="left">
|
||||
<gtc:gtTextBox ID="txtTJWHSJ" runat="server" Width="118px"></gtc:gtTextBox>
|
||||
</td>
|
||||
<td align="right">
|
||||
<gtc:gtLabel ID="GtLabel2" runat="server" ForeColor="#0000ff">维护时间:</gtc:gtLabel>
|
||||
</td>
|
||||
<td align="left">
|
||||
<gtc:gtTextBox ID="txtLJWHSJ" runat="server" Width="118px"></gtc:gtTextBox>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</asp:Content>
|
||||
|
||||
@@ -0,0 +1,528 @@
|
||||
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 System.Collections.Generic;
|
||||
|
||||
namespace GThinking.U20261363_N_XLXSBJ
|
||||
{
|
||||
public partial class XLBJD_TLJInfo : SingleCardBase
|
||||
{
|
||||
[TableMap(DB = "DBERP", DbTableName = "XLXSBJD", Umid = 100860174, IsWorkFlow = false, IsAttach = false, UseWhr = false)]
|
||||
public class XLBJD_TLJ : EntityManager
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
XLBJD_TLJ entity = new XLBJD_TLJ();
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
this.UMID = 100860174;
|
||||
this.UMName = "线缆销售报价单";
|
||||
this.CurMaster = Master;
|
||||
this.CurEntity = entity;
|
||||
this.PageHeight = 200;
|
||||
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;
|
||||
|
||||
base.InitPage();
|
||||
|
||||
if (!IsPostBack)
|
||||
{
|
||||
InitControl();
|
||||
}
|
||||
}
|
||||
|
||||
protected override void SetControlState()
|
||||
{
|
||||
base.SetControlState();
|
||||
|
||||
txtTodayTJ.Enabled = false;
|
||||
txtTodayLJ.Enabled = false;
|
||||
txtTJWHSJ.Enabled = false;
|
||||
txtLJWHSJ.Enabled = false;
|
||||
}
|
||||
|
||||
#region 自定义函数
|
||||
|
||||
private void InitControl()
|
||||
{
|
||||
datLJRQ.Text = DateTime.Now.ToShortDateString();
|
||||
|
||||
TDatabase dberp = TContextDatabases.GetDatabase("DBERP");
|
||||
TSQL SQL = new TSQL(dberp);
|
||||
SQL.Clear();
|
||||
SQL.Add("select XLXSBJD_TLJTZRQ from XLXSBJD where XLXSBJD_BJDID=:pBJDID");
|
||||
SQL.ParamByName("pBJDID").Value = PageParam.GetRTrimString("BJDID");
|
||||
DataSet ds = dberp.OpenDataSet(SQL);
|
||||
if (ds.Tables[0].Rows.Count > 0)
|
||||
{
|
||||
if (!ds.Tables[0].Rows[0][0].ToString().Trim().Equals(""))
|
||||
{
|
||||
datLJRQ.Text = ds.Tables[0].Rows[0][0].ToString().Trim();
|
||||
lblTodayTJ.Text = "铜价(含税):";
|
||||
chkQTCLQZXJ.Text = "其他材料取日期价";
|
||||
lblGetToday.Text = "取日期铜铝价";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
txtTJ.DecimalPlaces = XLBJDUtils.BJCLPriceDecimal;
|
||||
txtLJ.DecimalPlaces = XLBJDUtils.BJCLPriceDecimal;
|
||||
txtTodayTJ.DecimalPlaces = XLBJDUtils.BJCLPriceDecimal;
|
||||
txtTodayLJ.DecimalPlaces = XLBJDUtils.BJCLPriceDecimal;
|
||||
|
||||
txtTJ.Value = CMISproConvert.StrToFloat(PageParam.GetRTrimString("TJ"));
|
||||
txtLJ.Value = CMISproConvert.StrToFloat(PageParam.GetRTrimString("LJ"));
|
||||
if (!PageParam.GetRTrimString("HSBZ").Equals("Y"))
|
||||
{
|
||||
txtTJ.Value *= 1.13;
|
||||
txtLJ.Value *= 1.13;
|
||||
}
|
||||
|
||||
Dictionary<string, string> dicTLJG = XLBJDInfo.GetTLJByRQ(datLJRQ.Text, PageParam.GetRTrimString("BJFLID"), true);
|
||||
txtTodayTJ.Value = CMISproConvert.StrToFloat(dicTLJG["TJ"], 0);
|
||||
txtTodayLJ.Value = CMISproConvert.StrToFloat(dicTLJG["LJ"], 0);
|
||||
txtTJWHSJ.Text = dicTLJG["TJWHSJ"];
|
||||
txtLJWHSJ.Text = dicTLJG["LJWHSJ"];
|
||||
if (PageParam.GetRTrimString("MXBH").Equals("JGE"))
|
||||
{
|
||||
|
||||
if (CMISproDataBase.ExistsRecord("DBERP", string.Format("select 1 from XLXSBJFL where XLXSBJFL_TLJTZGXQTCL ='Y' and XLXSBJFL_BJFLID ='{0}'", PageParam.GetRTrimString("BJFLID"))))
|
||||
{
|
||||
chkQTCLQZXJ.Checked = true;
|
||||
}
|
||||
else
|
||||
chkQTCLQZXJ.Checked = false;
|
||||
chkQTCLQZXJ.Visible = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
chkQTCLQZXJ.Checked = false;
|
||||
chkQTCLQZXJ.Visible = false;
|
||||
}
|
||||
|
||||
SQL.Clear();
|
||||
SQL.Add("select isnull(XLXSBJD_TLJZD,'N') as TLJZD from XLXSBJD where XLXSBJD_BJDID='" + PageParam.GetRTrimString("BJDID") + "'");
|
||||
ds = dberp.OpenDataSet(SQL);
|
||||
if (ds.Tables[0].Rows.Count > 0)
|
||||
{
|
||||
string sTLJZD = ds.Tables[0].Rows[0][0].ToString().Trim();
|
||||
if (sTLJZD.Equals("Y"))
|
||||
{
|
||||
chkZDTJ.Checked = true;
|
||||
chkZDLJ.Checked = true;
|
||||
}
|
||||
else if (sTLJZD.Equals("T"))
|
||||
{
|
||||
chkZDTJ.Checked = true;
|
||||
}
|
||||
else if (sTLJZD.Equals("L"))
|
||||
{
|
||||
chkZDLJ.Checked = true;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private void InsertXLXSBJDWLHQ(TDatabase dberp, TSQL SQL, string sBJDID, string sWLIDList)
|
||||
{
|
||||
SQL.Clear();
|
||||
SQL.Add("merge into XLXSBJDWLHQ ");
|
||||
SQL.Add("using ");
|
||||
SQL.Add("( ");
|
||||
SQL.Add("select :pBJDID as BJDID,XLXSBJCLWL_WLID as WLID, ");
|
||||
SQL.Add("isnull(XLXSWLHQ_WSJG,0) as WSJG, ");
|
||||
SQL.Add("isnull(XLXSWLHQ_HSJG,0) as HSJG ");
|
||||
SQL.Add("from XLXSBJCLWL ");
|
||||
SQL.Add("left join ");
|
||||
SQL.Add(" (select XLXSWLHQ_WLID,XLXSWLHQ_WSJG,XLXSWLHQ_HSJG");
|
||||
SQL.Add(" from XLXSWLHQ,");
|
||||
SQL.Add(" (");
|
||||
SQL.Add(" select XLXSWLHQ_WLID as WLID,max(XLXSWLHQ_YXQS) as maxYXQS");
|
||||
SQL.Add(" from XLXSWLHQ");
|
||||
SQL.Add(" where XLXSWLHQ_JGBID=' '");
|
||||
SQL.Add(" and XLXSWLHQ_YXQS<=:pBJRQ and(XLXSWLHQ_YXQZ>=:pBJRQ or XLXSWLHQ_YXQZ is null)");
|
||||
SQL.Add(" group by XLXSWLHQ_WLID");
|
||||
SQL.Add(" ) a ");
|
||||
SQL.Add(" where XLXSWLHQ_JGBID=' ' ");
|
||||
SQL.Add(" and XLXSWLHQ_WLID=WLID ");
|
||||
SQL.Add(" and XLXSWLHQ_YXQS=maxYXQS ");
|
||||
SQL.Add(" ) c on XLXSWLHQ_WLID=XLXSBJCLWL_WLID ");
|
||||
SQL.Add("where " + CMISproDataBase.GetWhereEqual("XLXSBJCLWL_WLID", sWLIDList));
|
||||
SQL.Add(") B on (XLXSBJDWLHQ_BJDID=B.BJDID and XLXSBJDWLHQ_WLID=B.WLID) ");
|
||||
SQL.Add("when matched then ");
|
||||
SQL.Add("update set XLXSBJDWLHQ_WSJG=B.WSJG,XLXSBJDWLHQ_HSJG=B.HSJG, ");
|
||||
SQL.Add(" XLXSBJDWLHQ_WHR=:pWHR,XLXSBJDWLHQ_WHRID=:pWHRID,XLXSBJDWLHQ_WHSJ=:pWHSJ ");
|
||||
SQL.Add("when not matched then ");
|
||||
SQL.Add("insert (XLXSBJDWLHQ_BJDID,XLXSBJDWLHQ_WLID,XLXSBJDWLHQ_WSJG,XLXSBJDWLHQ_HSJG,XLXSBJDWLHQ_WSJGF,XLXSBJDWLHQ_HSJGF,XLXSBJDWLHQ_WHR,XLXSBJDWLHQ_WHRID,XLXSBJDWLHQ_WHSJ) ");
|
||||
SQL.Add("values (B.BJDID,B.WLID,B.WSJG,B.HSJG,0,0,:pWHR,:pWHRID,:pWHSJ) ");
|
||||
SQL.ParamByName("pBJDID").Value = sBJDID;
|
||||
SQL.ParamByName("pBJRQ").Value = datLJRQ.Text;
|
||||
SQL.ParamByName("pWHR").Value = tSession.UserName;
|
||||
SQL.ParamByName("pWHRID").Value = tSession.UserId;
|
||||
SQL.ParamByName("pWHSJ").Value = DateTime.Now;
|
||||
dberp.ExecSQL(SQL);
|
||||
}
|
||||
|
||||
private string GetWLIDList(TDatabase dberp, TSQL SQL, string sBJDID, string sBJRQ)
|
||||
{
|
||||
string sWLIDList = "";
|
||||
SQL.Clear();
|
||||
SQL.Add("select XLXSBJCLWL_WLID,rtrim(isnull(WL_MC,' ')) || ' ' || rtrim(isnull(WL_GG,' ')) || ' ' || rtrim(isnull(WL_CL,' ')) as WLMC, ");
|
||||
SQL.Add("case when XLXSBJDWLHQ_WLID is null then bjrwlhq.WSJGF else XLXSBJDWLHQ_WSJGF end as WSJGF, ");
|
||||
SQL.Add("case when XLXSBJDWLHQ_WLID is null then bjrwlhq.CLJG else XLXSBJDWLHQ_WSJG end as WSJG, ");
|
||||
SQL.Add("a.XLXSBJCL_ZZSL, ");
|
||||
SQL.Add("case when XLXSBJDWLHQ_WLID is null then bjrwlhq.HSJGF else XLXSBJDWLHQ_HSJGF end as HSJGF, ");
|
||||
SQL.Add("case when XLXSBJDWLHQ_WLID is null then bjrwlhq.HSJG else XLXSBJDWLHQ_HSJG end as HSJG, ");
|
||||
SQL.Add(" case when isnull(a.XLXSBJCL_JGYBJCLID,' ') = ' ' then ' ' else rtrim(a.XLXSBJCL_JGYBJCLID) ||'|'|| rtrim(b.XLXSBJCL_BJCLMC) end as JGYBJCLXX,");
|
||||
SQL.Add(" case when isnull(a.XLXSBJCL_JGYBJCLID,' ') = ' ' then 0.0 else XLXSBJDCLHQ_WSJG end as JGYBJCLID_WSJG,");
|
||||
SQL.Add(" case when isnull(a.XLXSBJCL_JGYBJCLID,' ') = ' ' then 0.0 else XLXSBJDCLHQ_HSJG end as JGYBJCLID_HSJG,");
|
||||
SQL.Add("XLXSBJDWLHQ_WHR,XLXSBJDWLHQ_WHRID,XLXSBJDWLHQ_WHSJ ");
|
||||
SQL.Add("from XLXSBJCLWL ");
|
||||
//先使用物料与材料关系取到材料
|
||||
SQL.Add("left join XLXSBJCL a on a.XLXSBJCL_BJCLID=XLXSBJCLWL_BJCLID ");
|
||||
//取到材料后取到报价原材料
|
||||
SQL.Add("left join XLXSBJCL b on b.XLXSBJCL_BJCLID = a.XLXSBJCL_JGYBJCLID ");
|
||||
//关联报价单的材料行情----显示的是报价原材料的价格,所以使用报价原材料关联
|
||||
SQL.Add("left join XLXSBJDCLHQ on XLXSBJDCLHQ_BJDID=:pBJDID and XLXSBJDCLHQ_BJCLID=isnull( a.XLXSBJCL_JGYBJCLID, ' ') ");
|
||||
//关联报价单的物料行情----只有报价材料才有物料行情,此处直接关联
|
||||
SQL.Add("left join XLXSBJDWLHQ on XLXSBJDWLHQ_BJDID=:pBJDID and XLXSBJDWLHQ_WLID=XLXSBJCLWL_WLID ");
|
||||
SQL.Add("left join ");
|
||||
SQL.Add("( ");
|
||||
/*报价物料之报价日行情*/
|
||||
SQL.Add("select WLID,XLXSWLHQ_WSJG as CLJG,XLXSWLHQ_HSJG as HSJG, ");
|
||||
SQL.Add(" XLXSWLHQ_WSJGF as WSJGF,XLXSWLHQ_HSJGF as HSJGF ");
|
||||
SQL.Add("from XLXSWLHQ, ");
|
||||
SQL.Add("( ");
|
||||
SQL.Add("select XLXSWLHQ_WLID as WLID,max(XLXSWLHQ_YXQS)as maxYXQS ");
|
||||
SQL.Add("from XLXSWLHQ ");
|
||||
SQL.Add("where XLXSWLHQ_JGBID=' ' ");
|
||||
SQL.Add("and XLXSWLHQ_YXQS<=:pBJRQ and(XLXSWLHQ_YXQZ>=:pBJRQ or XLXSWLHQ_YXQZ is null) ");
|
||||
SQL.Add("group by XLXSWLHQ_WLID ");
|
||||
SQL.Add(") a ");
|
||||
SQL.Add("where XLXSWLHQ_JGBID=' ' ");
|
||||
SQL.Add("and XLXSWLHQ_WLID=WLID ");
|
||||
SQL.Add("and XLXSWLHQ_YXQS=maxYXQS ");
|
||||
SQL.Add(") bjrwlhq on bjrwlhq.WLID=XLXSBJCLWL_WLID ");
|
||||
SQL.Add("left join WL on WL_WLID=XLXSBJCLWL_WLID ");
|
||||
//SQL.Add("where XLXSBJCLWL_BJCLID=:pBJCLID ");
|
||||
SQL.Add("where 1 = 1 ");
|
||||
//只显示报价单明细用到的物料
|
||||
SQL.Add(" and XLXSBJCLWL_WLID in ");
|
||||
SQL.Add(" (");
|
||||
SQL.Add(" select distinct case XLJGCZBLM_CLQDL ");
|
||||
for (int i = 1; i <= 80; i++)
|
||||
SQL.Add(string.Format("when '{0}' then XLXSCLQDWL_WLID{1}", "第" + i.ToString().PadLeft(2, '0') + "列", i.ToString().PadLeft(2, '0')));
|
||||
SQL.Add(" else ' ' end as WLID ");
|
||||
SQL.Add(" from XLXSBJDMX");
|
||||
SQL.Add(" left join XLXSCLQD on XLXSCLQD_XLXHID=XLXSBJDMX_XLXHID and XLXSCLQD_XLGGID=XLXSBJDMX_XLGGID and XLXSCLQD_XLBZID=XLXSBJDMX_XLBZID and XLXSCLQD_DYDJID=isnull(XLXSBJDMX_DYDJID,' ')");
|
||||
SQL.Add(" left join XLJGCZBLM on XLJGCZBLM_JGCZBID=XLXSCLQD_JGCZBID and XLJGCZBLM_JGCZBBBID=XLXSCLQD_JGCZBBBID");
|
||||
SQL.Add(" left join XLXSBJCL on XLXSBJCL_BJCLID=XLJGCZBLM_BJCLID");
|
||||
SQL.Add(" left join XLXSCLQDWL on XLXSCLQDWL_JGCZBID=XLXSCLQD_JGCZBID and XLXSCLQDWL_JGCZBBBID=XLXSCLQD_JGCZBBBID and XLXSCLQDWL_JGCZBXH=XLXSCLQD_JGCZBXH and XLXSCLQDWL_DRHH=XLXSCLQD_DRHH");
|
||||
SQL.Add(" where XLXSBJDMX_BJDID=:pBJDID");
|
||||
SQL.Add(" and isnull(XLJGCZBLM_CLQDL,' ')<>' '");
|
||||
SQL.Add(" and XLXSCLQD_WPID='ZZZZ'");
|
||||
SQL.Add(" and XLXSBJCL_BJHQ='2'");
|
||||
SQL.Add(" ) ");
|
||||
|
||||
SQL.Add("order by XLXSBJCLWL_BJCLID,XLXSBJCLWL_WLID ");
|
||||
SQL.ParamByName("pBJDID").Value = sBJDID;
|
||||
SQL.ParamByName("pBJRQ").Value = sBJRQ;
|
||||
DataSet ds = dberp.OpenDataSet(SQL);
|
||||
if (ds.Tables[0].Rows.Count > 0)
|
||||
{
|
||||
for (int i = 0; i < ds.Tables[0].Rows.Count; i++)
|
||||
{
|
||||
if (ds.Tables[0].Rows[i]["JGYBJCLXX"].ToString().Trim().Equals(""))
|
||||
sWLIDList += ds.Tables[0].Rows[i]["XLXSBJCLWL_WLID"].ToString().Trim() + ",";
|
||||
}
|
||||
}
|
||||
|
||||
return sWLIDList.TrimEnd(',');
|
||||
}
|
||||
|
||||
|
||||
#region 控件事件
|
||||
|
||||
protected void lblGetToday_Click(object sender, EventArgs e)
|
||||
{
|
||||
txtTJ.Value = txtTodayTJ.Value;
|
||||
txtLJ.Value = txtTodayLJ.Value;
|
||||
}
|
||||
|
||||
protected void btnQR_Click(object sender, EventArgs e)
|
||||
{
|
||||
string sTBJLCID = PageParam.GetRTrimString("TBJCLID").Trim();
|
||||
string sLBJCLID = PageParam.GetRTrimString("LBJCLID").Trim();
|
||||
|
||||
string sTLJMsg = "";
|
||||
if (!sTBJLCID.Equals(""))
|
||||
{
|
||||
if (txtTJ.Value == 0)
|
||||
sTLJMsg += "铜价";
|
||||
}
|
||||
if (!sLBJCLID.Equals(""))
|
||||
{
|
||||
if (txtLJ.Value == 0)
|
||||
{
|
||||
if (!sTLJMsg.Equals(""))
|
||||
sTLJMsg += "、";
|
||||
sTLJMsg += "铝价";
|
||||
}
|
||||
}
|
||||
if (!sTLJMsg.Equals(""))
|
||||
{
|
||||
ShowMessage(sTLJMsg + "不允许为0!");
|
||||
return;
|
||||
}
|
||||
double fTJ = txtTJ.Value;
|
||||
double fLJ = txtLJ.Value;
|
||||
if (!PageParam.GetRTrimString("HSBZ").Equals("Y"))
|
||||
{
|
||||
fTJ = fTJ / 1.13;
|
||||
fLJ = fLJ / 1.13;
|
||||
}
|
||||
|
||||
TDatabase dberp = TContextDatabases.GetDatabase("DBERP");
|
||||
TSQL SQL = new TSQL(dberp);
|
||||
if (chkQTCLQZXJ.Checked)
|
||||
{
|
||||
try
|
||||
{
|
||||
|
||||
|
||||
dberp.BeginTrans();
|
||||
XLBJDUtils.InsertXLXSBJDCLHQ_WLHQ(dberp, SQL, PageParam.GetRTrimString("BJDHQLY"), PageParam.GetRTrimString("BJDID"), datLJRQ.Text, PageParam.GetRTrimString("HSBZ").Equals("Y"),
|
||||
sTBJLCID, sLBJCLID,
|
||||
fTJ, fLJ,
|
||||
tSession.UserName, tSession.UserId, PageParam.GetRTrimString("JGBID"));
|
||||
string sWLIDList = GetWLIDList(dberp, SQL, PageParam.GetRTrimString("BJDID"), datLJRQ.Text);
|
||||
InsertXLXSBJDWLHQ(dberp, SQL, PageParam.GetRTrimString("BJDID"), sWLIDList);
|
||||
|
||||
dberp.CommitTrans();
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
dberp.RollbackTrans();
|
||||
ShowMessage(ex.Message);
|
||||
return;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
string sErrMsg = "";
|
||||
try
|
||||
{
|
||||
dberp.BeginTrans();
|
||||
string sZDTLJ = "N";
|
||||
if (chkZDTJ.Checked && chkZDLJ.Checked)
|
||||
sZDTLJ = "Y";
|
||||
else if (chkZDTJ.Checked)
|
||||
sZDTLJ = "T";
|
||||
else if (chkZDLJ.Checked)
|
||||
sZDTLJ = "L";
|
||||
|
||||
SQL.Clear();
|
||||
SQL.Add("update XLXSBJD set XLXSBJD_TJ=:pTJ,XLXSBJD_LJ=:pLJ,XLXSBJD_TLJTZRQ=:pRQ,XLXSBJD_TLJZD=:pZDTLJ ");
|
||||
SQL.Add(" where XLXSBJD_BJDID=:pBJDID");
|
||||
SQL.ParamByName("pTJ").Value = fTJ;
|
||||
SQL.ParamByName("pLJ").Value = fLJ;
|
||||
SQL.ParamByName("pZDTLJ").Value = sZDTLJ;
|
||||
if (!datLJRQ.Text.Equals(""))
|
||||
SQL.ParamByName("pRQ").Value = CMISproConvert.StrToDateTime(datLJRQ.Text);
|
||||
else
|
||||
SQL.ParamByName("pRQ").Value = null;
|
||||
SQL.ParamByName("pBJDID").Value = PageParam.GetRTrimString("BJDID");
|
||||
dberp.ExecSQL(SQL);
|
||||
if (chkQTCLQZXJ.Checked)
|
||||
XLBJDUtils.UpdateBJDHQJGFByTLJ(dberp, SQL, PageParam.GetRTrimString("BJDID"), PageParam.GetRTrimString("TBJCLID"), PageParam.GetRTrimString("LBJCLID"),
|
||||
datLJRQ.Text, tSession.UserId, tSession.UserName);
|
||||
|
||||
XLBJDUtils.UpdateBJDHQByTLJ(dberp, SQL, PageParam.GetRTrimString("BJDID"), PageParam.GetRTrimString("TBJCLID"), PageParam.GetRTrimString("LBJCLID"),
|
||||
fTJ, fLJ, PageParam.GetRTrimString("HSBZ").Equals("Y"), tSession.UserId, tSession.UserName);
|
||||
|
||||
string sMSG = "";
|
||||
if (PageParam.GetRTrimString("MXBH").Equals("JGE") || (PageParam.GetRTrimString("MXBH").Equals("JGB") && PageParam.GetRTrimString("JGBTJYS").Equals("3")))
|
||||
{
|
||||
XLBJDCalcUtils.CalcAfterBJDHQChange(dberp, SQL, PageParam.GetRTrimString("BJDID"), 1, GetOption(100860000, "BJU002"), GetOption(100860000, "BJU003"), GetOption(100860000, "BJU018"), tSession.UserId, tSession.UserName, CalcAction.ReCalc, ref sErrMsg, datLJRQ.Text, chkQTCLQZXJ.Checked);
|
||||
sMSG = "已重新完成报价计算!";
|
||||
}
|
||||
else
|
||||
{
|
||||
XLBJDCalcUtils.CalcBJDHQCLCB(dberp, SQL, PageParam.GetRTrimString("BJDID"), 1, PageParam.GetRTrimString("HSBZ").Equals("Y"), PageParam.GetRTrimString("JGBID"), PageParam.GetRTrimString("JGBIDS"), PageParam.GetRTrimString("JSBLFS"),
|
||||
GetOption(100860000, "BJU002"), GetOption(100860000, "BJU003"), GetOption(100860000, "BJU018"), tSession.UserId, tSession.UserName, ref sErrMsg);
|
||||
|
||||
string sJGBJJLY = XLBJDUtils.GetXLXSJGBXXByJGBID(PageParam.GetRTrimString("JGBID")).XLXSJGB_JJLY;
|
||||
string ABJDHQJSBJ = XLBJDUtils.GetBJFLXX(PageParam.GetRTrimString("BJFLID")).XLXSBJFL_ABJDHQJSBJ;
|
||||
if (ABJDHQJSBJ == "Y" && sJGBJJLY == "A")
|
||||
{
|
||||
string sBJDID = PageParam.GetRTrimString("BJDID");
|
||||
#region 配置信息
|
||||
SQL.Clear();
|
||||
SQL.Add("select XLXSBJD_JGBID,XLXSJGB_MXBH,XLXSJGB_JGBIDS,XLXSJGB_JGCIDS,XLXSJGB_BJLY,XLXSJGB_TJYS,XLXSJGB_JSBLFS, ");
|
||||
SQL.Add(" XLXSBJD_BJFLID,XLXSBJFL_BJDHQLY,XLXSBJFL_TZCLHQ,XLXSBJFL_JGBTJYSS,XLXSBJFL_BJJCLLX,XLXSBJFL_LJJCLLX,XLXSBJFL_CPBJMRXSWS,");
|
||||
SQL.Add(" XLXSBJFL_ZDXJJCLLX,XLXSBJFL_JYF,XLXSBJFL_YFWLID,XLXSBJFL_BJHYF,XLXSBJFL_ZDXJGS,XLXSBJFL_JSJGS,");
|
||||
SQL.Add(" XLXSBJD_JZBJHS,XLXSBJD_BJRQ");
|
||||
SQL.Add(" from XLXSBJD ");
|
||||
SQL.Add(" left join XLXSJGB on XLXSJGB_JGBID=XLXSBJD_JGBID ");
|
||||
SQL.Add(" left join XLXSBJFL on XLXSBJFL_BJFLID=XLXSBJD_BJFLID");
|
||||
SQL.Add(" where XLXSBJD_BJDID=:pBJDID");
|
||||
SQL.ParamByName("pBJDID").Value = sBJDID;
|
||||
DataSet dsBJD = dberp.OpenDataSet(SQL);
|
||||
if (dsBJD.Tables[0].Rows.Count == 0)
|
||||
{
|
||||
return;
|
||||
}
|
||||
string sBJU002 = GetOption(100860000, "BJU002");
|
||||
int iXSWS = string.IsNullOrEmpty(sBJU002) ? 5 : CMISproConvert.StrToInt(sBJU002);
|
||||
if (iXSWS < 0)
|
||||
iXSWS = 0;
|
||||
else if (iXSWS > 8)
|
||||
iXSWS = 8;
|
||||
|
||||
bool bHSBZ = dsBJD.Tables[0].Rows[0]["XLXSBJD_JZBJHS"].ToString().Trim().Equals("Y");
|
||||
string sBJRQ = dsBJD.Tables[0].Rows[0]["XLXSBJD_BJRQ"].ToString().Trim();
|
||||
|
||||
string sJGBID = dsBJD.Tables[0].Rows[0]["XLXSBJD_JGBID"].ToString().Trim();
|
||||
string sMXBH = dsBJD.Tables[0].Rows[0]["XLXSJGB_MXBH"].ToString().Trim();
|
||||
string sJGBIDS = dsBJD.Tables[0].Rows[0]["XLXSJGB_JGBIDS"].ToString().Trim();
|
||||
string sJGCIDS = dsBJD.Tables[0].Rows[0]["XLXSJGB_JGCIDS"].ToString().Trim();
|
||||
string sBJLY = dsBJD.Tables[0].Rows[0]["XLXSJGB_BJLY"].ToString().Trim();
|
||||
string sTJYS = dsBJD.Tables[0].Rows[0]["XLXSJGB_TJYS"].ToString().Trim();
|
||||
string sJSBLFS = dsBJD.Tables[0].Rows[0]["XLXSJGB_JSBLFS"].ToString().Trim();
|
||||
|
||||
string sBJFLID = dsBJD.Tables[0].Rows[0]["XLXSBJD_BJFLID"].ToString().Trim();
|
||||
string sBJDHQLY = dsBJD.Tables[0].Rows[0]["XLXSBJFL_BJDHQLY"].ToString().Trim();//1|价格表行情、2|报价日行情
|
||||
string sTZCLHQ = dsBJD.Tables[0].Rows[0]["XLXSBJFL_TZCLHQ"].ToString().Trim();//允许调整材料行情
|
||||
string sJGBTJYSS = dsBJD.Tables[0].Rows[0]["XLXSBJFL_JGBTJYSS"].ToString().Trim();//价格表调价因素
|
||||
string sJCLLX = dsBJD.Tables[0].Rows[0]["XLXSBJFL_BJJCLLX"].ToString().Trim();
|
||||
string sLJJCLLX = dsBJD.Tables[0].Rows[0]["XLXSBJFL_LJJCLLX"].ToString().Trim();
|
||||
string sCPBJMRXSWS = dsBJD.Tables[0].Rows[0]["XLXSBJFL_CPBJMRXSWS"].ToString().Trim();
|
||||
string sZDXJJCLLX = dsBJD.Tables[0].Rows[0]["XLXSBJFL_ZDXJJCLLX"].ToString().Trim();
|
||||
string sJYF = dsBJD.Tables[0].Rows[0]["XLXSBJFL_JYF"].ToString().Trim();
|
||||
string sYFWLID = dsBJD.Tables[0].Rows[0]["XLXSBJFL_YFWLID"].ToString().Trim();
|
||||
string sBJHYF = dsBJD.Tables[0].Rows[0]["XLXSBJFL_BJHYF"].ToString().Trim();
|
||||
string sZDXJGS = dsBJD.Tables[0].Rows[0]["XLXSBJFL_ZDXJGS"].ToString().Trim();
|
||||
string sJSJGS = dsBJD.Tables[0].Rows[0]["XLXSBJFL_JSJGS"].ToString().Trim();
|
||||
#endregion
|
||||
|
||||
//同步报价单明细记录插入XLXSBJDCLCB、XLXSBJDJJYZ
|
||||
XLBJDInfo.InsertCLCBandJJYZ(dberp, SQL, TControlState.ctsEdit, sBJDID, sJGBID, sBJRQ, tSession.UserId, tSession.UserName, GetOption(100860000, "BJU003"), bHSBZ);
|
||||
|
||||
XLBJDUtils.UpdateBJDMX(dberp, SQL, sBJFLID, sBJDID, iXSWS, sJCLLX, sLJJCLLX, sCPBJMRXSWS, "", 1);
|
||||
bool bZDXJTZ = false;
|
||||
if (sZDXJGS.Contains("CLCB") || sZDXJGS.Contains("JGBJJ") || sZDXJGS.Contains("JGBBJ") || sZDXJGS.Contains("CPBJ"))
|
||||
{
|
||||
XLBJDUtils.UpdateZDXJGS(dberp, SQL, sBJDID, sBJFLID, sBJU002, "", 1);
|
||||
bZDXJTZ = true;
|
||||
|
||||
}
|
||||
if (sJSJGS.Contains("CLCB") || sJSJGS.Contains("JGBJJ") || sJSJGS.Contains("JGBBJ") || sJSJGS.Contains("CPBJ") || bZDXJTZ)
|
||||
{
|
||||
XLBJDUtils.UpdateJSJGS(dberp, SQL, sBJDID, sBJFLID, sBJU002, "", 1);
|
||||
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
XLBJD_CLHQTZList.UpdateLJJCL(dberp, SQL, PageParam.GetRTrimString("BJDID"), PageParam.GetRTrimString("JCLLX"), PageParam.GetRTrimString("LJJCLLX"), PageParam.GetRTrimString("CPBJMRXSWS"), GetOption(100860000, "BJU002"));
|
||||
XLBJD_CLHQTZList.UpdateBJLJJCL(dberp, SQL, PageParam.GetRTrimString("BJDID"), PageParam.GetRTrimString("BJLJJCLLX"));
|
||||
//只有最低限价公式中包含CPBJ,才需要触发计算最低限价
|
||||
SQL.Clear();
|
||||
SQL.Add("select XLXSBJFL_ZDXJGS,XLXSBJFL_JSJGS from XLXSBJFL where XLXSBJFL_BJFLID=:pBJFLID");
|
||||
SQL.ParamByName("pBJFLID").Value = PageParam.GetRTrimString("BJFLID");
|
||||
DataSet dsFL = dberp.OpenDataSet(SQL);
|
||||
if (dsFL.Tables[0].Rows.Count > 0)
|
||||
{
|
||||
bool bZDXJTZ = false;
|
||||
if (dsFL.Tables[0].Rows[0]["XLXSBJFL_ZDXJGS"].ToString().Trim().Contains("CPBJ"))
|
||||
{
|
||||
XLBJDUtils.UpdateZDXJGS(dberp, SQL, PageParam.GetRTrimString("BJDID"), PageParam.GetRTrimString("BJFLID"), GetOption(100860000, "BJU002"), "", 1);
|
||||
bZDXJTZ = true;
|
||||
|
||||
}
|
||||
if (dsFL.Tables[0].Rows[0]["XLXSBJFL_JSJGS"].ToString().Trim().Contains("CPBJ") || bZDXJTZ)
|
||||
{
|
||||
XLBJDUtils.UpdateJSJGS(dberp, SQL, PageParam.GetRTrimString("BJDID"), PageParam.GetRTrimString("BJFLID"), GetOption(100860000, "BJU002"), "", 1);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
XLBJDUtils.UpdateXLXSBJD(dberp, SQL, PageParam.GetRTrimString("BJDID"), PageParam.GetRTrimString("JCLLX"), PageParam.GetRTrimString("LJJCLLX"), PageParam.GetRTrimString("ZDXJJCLLX"), PageParam.GetRTrimString("JYF"), PageParam.GetRTrimString("YSJDID"),
|
||||
PageParam.GetRTrimString("GYSID"), PageParam.GetRTrimString("YFWLID"), PageParam.GetRTrimString("BJHYF"));
|
||||
|
||||
sMSG = "已重新完成报价单行情料价计算!";
|
||||
}
|
||||
|
||||
dberp.CommitTrans();
|
||||
|
||||
DialogOperationScript dos = new DialogOperationScript(this);
|
||||
dos.ClickOwnerButton(PageParam.GetRTrimString("btnRefreshCLHQTZ"));
|
||||
|
||||
dos.ShowMessage(sMSG);
|
||||
dos.CloseSelf();
|
||||
dos.Execute();
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
ShowMessage(sErrMsg + " " + ex.Message);
|
||||
dberp.RollbackTrans();
|
||||
}
|
||||
}
|
||||
|
||||
protected void btnQX_Click(object sender, EventArgs e)
|
||||
{
|
||||
CloseWindow();
|
||||
}
|
||||
|
||||
protected void datLJRQ_TextChanged(object sender, EventArgs e)
|
||||
{
|
||||
Dictionary<string, string> dicTLJG = XLBJDInfo.GetTLJByRQ(datLJRQ.Text, PageParam.GetRTrimString("BJFLID"), true);
|
||||
txtTodayTJ.Value = CMISproConvert.StrToFloat(dicTLJG["TJ"], 0);
|
||||
txtTodayLJ.Value = CMISproConvert.StrToFloat(dicTLJG["LJ"], 0);
|
||||
txtTJWHSJ.Text = dicTLJG["TJWHSJ"];
|
||||
txtLJWHSJ.Text = dicTLJG["LJWHSJ"];
|
||||
|
||||
Dictionary<string, string> dicNOWTLJG = XLBJDInfo.GetTLJByRQ(DateTime.Now.ToShortDateString(), PageParam.GetRTrimString("BJFLID"), true);
|
||||
if (dicNOWTLJG["TJ"].Equals(dicTLJG["TJ"]) && dicNOWTLJG["LJ"].Equals(dicTLJG["LJ"]))
|
||||
{
|
||||
lblTodayTJ.Text = "【最新】铜价(含税):";
|
||||
chkQTCLQZXJ.Text = "其他材料取最新价";
|
||||
lblGetToday.Text = "取最新铜铝价";
|
||||
}
|
||||
else
|
||||
{
|
||||
lblTodayTJ.Text = "铜价(含税):";
|
||||
chkQTCLQZXJ.Text = "其他材料取日期价";
|
||||
lblGetToday.Text = "取日期铜铝价";
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
Generated
+223
@@ -0,0 +1,223 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// 此代码由工具生成。
|
||||
// 运行时版本:2.0.50727.9179
|
||||
//
|
||||
// 对此文件的更改可能会导致不正确的行为,并且如果
|
||||
// 重新生成代码,这些更改将会丢失。
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace GThinking.U20261363_N_XLXSBJ {
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// XLBJD_TLJInfo 类。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的类。
|
||||
/// </remarks>
|
||||
public partial class XLBJD_TLJInfo {
|
||||
|
||||
/// <summary>
|
||||
/// tbl1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Table tbl1;
|
||||
|
||||
/// <summary>
|
||||
/// btnQR 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtToolButton btnQR;
|
||||
|
||||
/// <summary>
|
||||
/// btnQX 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtToolButton btnQX;
|
||||
|
||||
/// <summary>
|
||||
/// lblTJ 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtLabel lblTJ;
|
||||
|
||||
/// <summary>
|
||||
/// txtTJ 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtNumTextBox txtTJ;
|
||||
|
||||
/// <summary>
|
||||
/// chkZDTJ 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtCheckBox chkZDTJ;
|
||||
|
||||
/// <summary>
|
||||
/// lblLJ 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtLabel lblLJ;
|
||||
|
||||
/// <summary>
|
||||
/// txtLJ 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtNumTextBox txtLJ;
|
||||
|
||||
/// <summary>
|
||||
/// chkZDLJ 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtCheckBox chkZDLJ;
|
||||
|
||||
/// <summary>
|
||||
/// GtLabel3 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtLabel GtLabel3;
|
||||
|
||||
/// <summary>
|
||||
/// datLJRQ 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtDateTimeTextBox datLJRQ;
|
||||
|
||||
/// <summary>
|
||||
/// lblGetToday 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtButton lblGetToday;
|
||||
|
||||
/// <summary>
|
||||
/// lblTodayTJ 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtLabel lblTodayTJ;
|
||||
|
||||
/// <summary>
|
||||
/// txtTodayTJ 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtNumTextBox txtTodayTJ;
|
||||
|
||||
/// <summary>
|
||||
/// lblTodayLJ 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtLabel lblTodayLJ;
|
||||
|
||||
/// <summary>
|
||||
/// txtTodayLJ 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtNumTextBox txtTodayLJ;
|
||||
|
||||
/// <summary>
|
||||
/// chkQTCLQZXJ 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtCheckBox chkQTCLQZXJ;
|
||||
|
||||
/// <summary>
|
||||
/// GtLabel1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtLabel GtLabel1;
|
||||
|
||||
/// <summary>
|
||||
/// txtTJWHSJ 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtTextBox txtTJWHSJ;
|
||||
|
||||
/// <summary>
|
||||
/// GtLabel2 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtLabel GtLabel2;
|
||||
|
||||
/// <summary>
|
||||
/// txtLJWHSJ 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtTextBox txtLJWHSJ;
|
||||
|
||||
/// <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,159 @@
|
||||
<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/N_MODEL/Page/MasterSingleGrid.Master"
|
||||
Codebehind="XLBJD_WBBJDDRList.aspx.cs" Inherits="GThinking.U20261363_N_XLXSBJ.XLBJD_WBBJDDRList"
|
||||
Title="外部线缆产品导入" %>
|
||||
<%@ MasterType VirtualPath="~/N_MODEL/Page/MasterSingleGrid.Master" %>
|
||||
<asp:Content ContentPlaceHolderID="CPHButton" ID="ContentButton" runat="server">
|
||||
<asp:Table ID="ButtonTable" runat="server" CellPadding="0" CellSpacing="0">
|
||||
<asp:TableRow>
|
||||
<asp:TableCell HorizontalAlign="Left" BorderWidth="0px" BorderStyle="notset">
|
||||
<gtc:gtToolButton ID="btnFZNRDR" BorderWidth="0px" BorderStyle="NotSet" Width="94px"
|
||||
Height="19px" ButtonType="Button" ShowCaption="True" runat="server" OnClick="btnFZNRDR_Click"
|
||||
Caption="复制内容导入">
|
||||
</gtc:gtToolButton>
|
||||
</asp:TableCell>
|
||||
<%--手动打开-查看外部报价单明细--%>
|
||||
<asp:TableCell HorizontalAlign="Left" BorderWidth="0px" BorderStyle="notset">
|
||||
<gtc:gtToolButton ID="btnWBBJDMX" BorderWidth="0px" BorderStyle="NotSet" Width="130px"
|
||||
Height="19px" ButtonType="Button" ShowCaption="True" runat="server" OnClick="btnWBBJDMX_Click"
|
||||
Caption="查看外部报价单明细">
|
||||
</gtc:gtToolButton>
|
||||
</asp:TableCell>
|
||||
<asp:TableCell HorizontalAlign="Left" BorderWidth="0px" BorderStyle="notset">
|
||||
<gtc:gtToolButton ID="btnSCDRNR" BorderWidth="0px" BorderStyle="NotSet" Width="58px"
|
||||
Height="19px" ButtonType="Button" ShowCaption="True" runat="server" OnClick="btnSCDRNR_Click"
|
||||
Caption="删 除" />
|
||||
</asp:TableCell>
|
||||
<asp:TableCell HorizontalAlign="Left" BorderWidth="0px" BorderStyle="notset">
|
||||
<gtc:gtToolButton ID="btnXHTH" BorderWidth="0px" BorderStyle="NotSet" Width="70px"
|
||||
Height="19px" ButtonType="Button" ShowCaption="True" runat="server" OnClick="btnXHTH_Click"
|
||||
Caption="型号替换" >
|
||||
</gtc:gtToolButton>
|
||||
</asp:TableCell>
|
||||
<%--刷新用--%>
|
||||
<asp:TableCell>
|
||||
<gtc:gtButton Style="display: none" ID="btnCallBack" OnClick="btnCallBack_Click"
|
||||
runat="server" Visible="true" EnableTheming="false" SkinID="hidden"></gtc:gtButton>
|
||||
</asp:TableCell>
|
||||
<asp:TableCell>
|
||||
<gtc:gtButton Style="display: none" ID="btnCallBack1"
|
||||
runat="server" Visible="true" EnableTheming="false" SkinID="hidden"></gtc:gtButton>
|
||||
</asp:TableCell>
|
||||
<%--复制内容导入刷新用--%>
|
||||
<asp:TableCell>
|
||||
<gtc:gtButton Style="display: none" ID="btnCallBack2" OnClick="btnCallBack2_Click"
|
||||
runat="server" Visible="true" EnableTheming="false" SkinID="hidden"></gtc:gtButton>
|
||||
</asp:TableCell>
|
||||
<%--由复制内容程序回调打开-查看外部报价单明细--%>
|
||||
<asp:TableCell>
|
||||
<gtc:gtButton Style="display: none" ID="btnOpenMXByFZNR" OnClick="btnOpenMXByFZNR_Click"
|
||||
runat="server" Visible="true" EnableTheming="false" SkinID="hidden"></gtc:gtButton>
|
||||
</asp:TableCell>
|
||||
<%--明细页回调--%>
|
||||
<asp:TableCell>
|
||||
<gtc:gtButton Style="display: none" ID="btnAutoClose" OnClick="btnAutoClose_Click"
|
||||
runat="server" Visible="true" EnableTheming="false" SkinID="hidden"></gtc:gtButton>
|
||||
</asp:TableCell>
|
||||
<%--复制内容回调--%>
|
||||
<asp:TableCell>
|
||||
<gtc:gtButton ID="btnOpenFZR" OnClick="btnOpenFZR_Click" runat="server" Width="0px"
|
||||
EnableTheming="false" SkinID="hidden"></gtc:gtButton>
|
||||
</asp:TableCell>
|
||||
</asp:TableRow>
|
||||
</asp:Table>
|
||||
</asp:Content>
|
||||
<asp:Content ContentPlaceHolderID="CPHForm" ID="ContentForm" runat="server">
|
||||
<gtc:gtGridView ID="ContentGrid" runat="server" AutoGenerateColumns="False" EnableViewState="false"
|
||||
CheckBox="false" OnRowDoubleClick="ContentGrid_RowDoubleClick">
|
||||
<FixRowCol TableHeight="100%" TableWidth="100%" />
|
||||
<Columns>
|
||||
<asp:BoundField DataField="HTBH" HeaderText="合同编号">
|
||||
<itemstyle width="120px" />
|
||||
<headerstyle width="120px" />
|
||||
</asp:BoundField>
|
||||
<asp:BoundField DataField="HTMC" HeaderText="合同名称">
|
||||
<itemstyle width="140px" />
|
||||
<headerstyle width="140px" />
|
||||
</asp:BoundField>
|
||||
<asp:BoundField DataField="XLWBBJDML_WBBJDID" HeaderText="表号">
|
||||
<itemstyle width="70px" />
|
||||
<headerstyle width="70px"></headerstyle>
|
||||
</asp:BoundField>
|
||||
<asp:BoundField DataField="XLWBBJDML_WBBJDMC" HeaderText="表名">
|
||||
<itemstyle width="250px" />
|
||||
<headerstyle width="250px"></headerstyle>
|
||||
</asp:BoundField>
|
||||
<asp:BoundField DataField="XLWBBJDML_FS" HeaderText="份数">
|
||||
<itemstyle width="50px" horizontalalign="Right"/>
|
||||
<headerstyle width="50px" verticalalign="Middle"></headerstyle>
|
||||
</asp:BoundField>
|
||||
<asp:BoundField DataField="XLWBBJDML_FSXH" HeaderText="份数序号">
|
||||
<itemstyle width="80px" horizontalalign="Right"/>
|
||||
<headerstyle width="80px" verticalalign="Middle"></headerstyle>
|
||||
</asp:BoundField>
|
||||
<asp:BoundField DataField="XLWBBJDML_EXCEL" HeaderText="EXCEL">
|
||||
<itemstyle width="150px" />
|
||||
<headerstyle width="150px"></headerstyle>
|
||||
</asp:BoundField>
|
||||
<asp:BoundField DataField="XLWBBJDML_SHEET" HeaderText="SHEET">
|
||||
<itemstyle width="150px" />
|
||||
<headerstyle width="150px"></headerstyle>
|
||||
</asp:BoundField>
|
||||
<asp:BoundField DataField="XLWBBJDML_DRSJ" HeaderText="导入时间">
|
||||
<itemstyle width="120px" />
|
||||
<headerstyle width="120px"></headerstyle>
|
||||
</asp:BoundField>
|
||||
<asp:BoundField DataField="XLWBBJDML_BJDID" HeaderText="报价单号">
|
||||
<itemstyle width="80px"></itemstyle>
|
||||
<headerstyle width="80px"></headerstyle>
|
||||
</asp:BoundField>
|
||||
<asp:BoundField DataField="XLWBBJDML_WHR" HeaderText="维护人">
|
||||
<itemstyle width="72px" />
|
||||
<headerstyle width="72px" />
|
||||
</asp:BoundField>
|
||||
<asp:BoundField DataField="XLWBBJDML_WHSJ" HeaderText="维护时间">
|
||||
<itemstyle width="125px" />
|
||||
<headerstyle width="125px" />
|
||||
</asp:BoundField>
|
||||
</Columns>
|
||||
<ColumnsEx>
|
||||
<gtc:gtGridView_Column DataField="HTBH" EditType="etString" ShowHint="true">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="HTMC" EditType="etString" ShowHint="true">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="XLWBBJDML_WBBJDID" EditType="etString" ShowHint="true">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="XLWBBJDML_WBBJDMC" EditType="etString" ShowHint="true">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="XLWBBJDML_FS" EditType="etNumber" ShowHint="true" NumberDecimalPlace="0" ShowZero="false">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="XLWBBJDML_FSXH" EditType="etNumber" ShowHint="true" NumberDecimalPlace="0" ShowZero="false">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="XLWBBJDML_EXCEL" EditType="etString" ShowHint="true">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="XLWBBJDML_SHEET" EditType="etString" ShowHint="true">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="XLWBBJDML_DRSJ" EditType="etDateTime" DateTimeEditKins="dtDateTime">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="XLWBBJDML_BJDID" EditType="etString" ShowHint="true">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="XLXSBJDDRZ_WHR" ShowHint="True">
|
||||
</gtc:gtGridView_Column>
|
||||
<gtc:gtGridView_Column DataField="XLXSBJDDRZ_WHSJ" DateTimeEditKins="dtDateTime"
|
||||
EditType="etDateTime">
|
||||
</gtc:gtGridView_Column>
|
||||
</ColumnsEx>
|
||||
</gtc:gtGridView>
|
||||
<asp:HiddenField ID="txtOpen" runat="server" />
|
||||
<asp:HiddenField ID="txtSource" runat="server" />
|
||||
<asp:HiddenField ID="txtTimeSpan" runat="server" />
|
||||
<asp:HiddenField ID="txtIsWebCtrl" runat="server" />
|
||||
<script language="javascript" type="text/javascript">
|
||||
var objReport = GetWebCtrl('Y');
|
||||
if(objReport == undefined){
|
||||
document.getElementById('ctl00_CPHForm_txtIsWebCtrl').value = "N";
|
||||
}
|
||||
else{
|
||||
document.getElementById('ctl00_CPHForm_txtIsWebCtrl').value = "Y";
|
||||
}
|
||||
</script>
|
||||
</asp:Content>
|
||||
File diff suppressed because it is too large
Load Diff
Generated
+178
@@ -0,0 +1,178 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// 此代码由工具生成。
|
||||
// 运行时版本:2.0.50727.9179
|
||||
//
|
||||
// 对此文件的更改可能会导致不正确的行为,并且如果
|
||||
// 重新生成代码,这些更改将会丢失。
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace GThinking.U20261363_N_XLXSBJ {
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// XLBJD_WBBJDDRList 类。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的类。
|
||||
/// </remarks>
|
||||
public partial class XLBJD_WBBJDDRList {
|
||||
|
||||
/// <summary>
|
||||
/// ButtonTable 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Table ButtonTable;
|
||||
|
||||
/// <summary>
|
||||
/// btnFZNRDR 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtToolButton btnFZNRDR;
|
||||
|
||||
/// <summary>
|
||||
/// btnWBBJDMX 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtToolButton btnWBBJDMX;
|
||||
|
||||
/// <summary>
|
||||
/// btnSCDRNR 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtToolButton btnSCDRNR;
|
||||
|
||||
/// <summary>
|
||||
/// btnXHTH 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtToolButton btnXHTH;
|
||||
|
||||
/// <summary>
|
||||
/// btnCallBack 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtButton btnCallBack;
|
||||
|
||||
/// <summary>
|
||||
/// btnCallBack1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtButton btnCallBack1;
|
||||
|
||||
/// <summary>
|
||||
/// btnCallBack2 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtButton btnCallBack2;
|
||||
|
||||
/// <summary>
|
||||
/// btnOpenMXByFZNR 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtButton btnOpenMXByFZNR;
|
||||
|
||||
/// <summary>
|
||||
/// btnAutoClose 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtButton btnAutoClose;
|
||||
|
||||
/// <summary>
|
||||
/// btnOpenFZR 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtButton btnOpenFZR;
|
||||
|
||||
/// <summary>
|
||||
/// ContentGrid 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::GThinking.N_CONTROL.gtGridView ContentGrid;
|
||||
|
||||
/// <summary>
|
||||
/// txtOpen 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.HiddenField txtOpen;
|
||||
|
||||
/// <summary>
|
||||
/// txtSource 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.HiddenField txtSource;
|
||||
|
||||
/// <summary>
|
||||
/// txtTimeSpan 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.HiddenField txtTimeSpan;
|
||||
|
||||
/// <summary>
|
||||
/// txtIsWebCtrl 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.HiddenField txtIsWebCtrl;
|
||||
|
||||
/// <summary>
|
||||
/// Master 属性。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的属性。
|
||||
/// </remarks>
|
||||
public new GThinking.N_MODEL.Page.MasterSingleGrid Master {
|
||||
get {
|
||||
return ((GThinking.N_MODEL.Page.MasterSingleGrid)(base.Master));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user