提交所有文件
This commit is contained in:
+1
-1
@@ -11,7 +11,7 @@ using GThinking.N_MODEL.Page;
|
|||||||
|
|
||||||
namespace GThinking.N_XLXSBJ
|
namespace GThinking.N_XLXSBJ
|
||||||
{
|
{
|
||||||
[TableMap(DB = "DBERP", DbTableName = "XLXSBJYLZDMX", Umid = 100860124, IsWorkFlow = false, UseWhr = false)]
|
[TableMap(DB = "DBERP", DbTableName = "XLXSBJYLZDMX", Umid = 100860123, IsWorkFlow = false, UseWhr = false)]
|
||||||
public class BJCPBZFSCD : EntityManager
|
public class BJCPBZFSCD : EntityManager
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|||||||
+6
-6
@@ -311,8 +311,8 @@ namespace GThinking.N_XLXSBJ
|
|||||||
|
|
||||||
|
|
||||||
sql.Clear();
|
sql.Clear();
|
||||||
sql.Add(@"INSERT INTO XLXSBJDQYFZB (XLXSBJDQYFZB_XZQHID, XLXSBJDQYFZB_YFJSFS, XLXSBJDQYFZB_WHR, XLXSBJDQYFZB_WHRID, XLXSBJDQYFZB_WHSJ)
|
sql.Add(@"INSERT INTO XLXSBJDQYFZB (XLXSBJDQYFZB_XZQHID, XLXSBJDQYFZB_YFJSFS, XLXSBJDQYFZB_WHR, XLXSBJDQYFZB_WHRID, XLXSBJDQYFZB_WHSJ,XLXSBJDQYFZB_GCID)
|
||||||
VALUES (:XLXSBJDQYFZB_XZQHID, :XLXSBJDQYFZB_YFJSFS, :XLXSBJDQYFZB_WHR, :XLXSBJDQYFZB_WHRID, :XLXSBJDQYFZB_WHSJ) ");
|
VALUES (:XLXSBJDQYFZB_XZQHID, :XLXSBJDQYFZB_YFJSFS, :XLXSBJDQYFZB_WHR, :XLXSBJDQYFZB_WHRID, :XLXSBJDQYFZB_WHSJ,' ') ");
|
||||||
|
|
||||||
sql.ParamByName("XLXSBJDQYFZB_XZQHID").Value = sXZQHID;
|
sql.ParamByName("XLXSBJDQYFZB_XZQHID").Value = sXZQHID;
|
||||||
sql.ParamByName("XLXSBJDQYFZB_YFJSFS").Value = "1";
|
sql.ParamByName("XLXSBJDQYFZB_YFJSFS").Value = "1";
|
||||||
@@ -339,8 +339,8 @@ namespace GThinking.N_XLXSBJ
|
|||||||
if (PageParam.ContainsKey("YFJSFS") && PageParam.GetRTrimString("YFJSFS") == "6")
|
if (PageParam.ContainsKey("YFJSFS") && PageParam.GetRTrimString("YFJSFS") == "6")
|
||||||
{
|
{
|
||||||
sql.Clear();
|
sql.Clear();
|
||||||
sql.Add(@"INSERT INTO XLXSBJDQYFB (XLXSBJDQYFB_XZQHID, XLXSBJDQYFB_YFJZQH, XLXSBJDQYFB_YSFL, XLXSBJDQYFB_WHR, XLXSBJDQYFB_WHRID, XLXSBJDQYFB_WHSJ)
|
sql.Add(@"INSERT INTO XLXSBJDQYFB (XLXSBJDQYFB_XZQHID, XLXSBJDQYFB_YFJZQH, XLXSBJDQYFB_YSFL, XLXSBJDQYFB_WHR, XLXSBJDQYFB_WHRID, XLXSBJDQYFB_WHSJ,XLXSBJDQYFB_GCID)
|
||||||
VALUES (:XLXSBJDQYFB_XZQHID, :XLXSBJDQYFB_YFJZQH, :XLXSBJDQYFB_YSFL, :XLXSBJDQYFB_WHR, :XLXSBJDQYFB_WHRID, :XLXSBJDQYFB_WHSJ) ");
|
VALUES (:XLXSBJDQYFB_XZQHID, :XLXSBJDQYFB_YFJZQH, :XLXSBJDQYFB_YSFL, :XLXSBJDQYFB_WHR, :XLXSBJDQYFB_WHRID, :XLXSBJDQYFB_WHSJ,' ') ");
|
||||||
|
|
||||||
sql.ParamByName("XLXSBJDQYFB_XZQHID").Value = sXZQHID;
|
sql.ParamByName("XLXSBJDQYFB_XZQHID").Value = sXZQHID;
|
||||||
sql.ParamByName("XLXSBJDQYFB_YFJZQH").Value = JZQH;
|
sql.ParamByName("XLXSBJDQYFB_YFJZQH").Value = JZQH;
|
||||||
@@ -352,8 +352,8 @@ namespace GThinking.N_XLXSBJ
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
sql.Clear();
|
sql.Clear();
|
||||||
sql.Add(@"INSERT INTO XLXSBJDQYFB (XLXSBJDQYFB_XZQHID, XLXSBJDQYFB_YFJZQH, XLXSBJDQYFB_YFDJ, XLXSBJDQYFB_WHR, XLXSBJDQYFB_WHRID, XLXSBJDQYFB_WHSJ)
|
sql.Add(@"INSERT INTO XLXSBJDQYFB (XLXSBJDQYFB_XZQHID, XLXSBJDQYFB_YFJZQH, XLXSBJDQYFB_YFDJ, XLXSBJDQYFB_WHR, XLXSBJDQYFB_WHRID, XLXSBJDQYFB_WHSJ,XLXSBJDQYFB_GCID)
|
||||||
VALUES (:XLXSBJDQYFB_XZQHID, :XLXSBJDQYFB_YFJZQH, :XLXSBJDQYFB_YFDJ, :XLXSBJDQYFB_WHR, :XLXSBJDQYFB_WHRID, :XLXSBJDQYFB_WHSJ) ");
|
VALUES (:XLXSBJDQYFB_XZQHID, :XLXSBJDQYFB_YFJZQH, :XLXSBJDQYFB_YFDJ, :XLXSBJDQYFB_WHR, :XLXSBJDQYFB_WHRID, :XLXSBJDQYFB_WHSJ,' ') ");
|
||||||
|
|
||||||
sql.ParamByName("XLXSBJDQYFB_XZQHID").Value = sXZQHID;
|
sql.ParamByName("XLXSBJDQYFB_XZQHID").Value = sXZQHID;
|
||||||
sql.ParamByName("XLXSBJDQYFB_YFJZQH").Value = JZQH;
|
sql.ParamByName("XLXSBJDQYFB_YFJZQH").Value = JZQH;
|
||||||
|
|||||||
@@ -330,8 +330,8 @@ namespace GThinking.N_XLXSBJ
|
|||||||
continue;
|
continue;
|
||||||
|
|
||||||
SQL.Clear();
|
SQL.Clear();
|
||||||
SQL.Add("insert into XLXSBJDQYFB(XLXSBJDQYFB_XZQHID,XLXSBJDQYFB_YFJZQH,XLXSBJDQYFB_YSFL,XLXSBJDQYFB_WHR,XLXSBJDQYFB_WHRID,XLXSBJDQYFB_WHSJ)");
|
SQL.Add("insert into XLXSBJDQYFB(XLXSBJDQYFB_XZQHID,XLXSBJDQYFB_YFJZQH,XLXSBJDQYFB_YSFL,XLXSBJDQYFB_WHR,XLXSBJDQYFB_WHRID,XLXSBJDQYFB_WHSJ,XLXSBJDQYFB_GCID)");
|
||||||
SQL.Add(string.Format("select '{0}' as XZQHID,'{1}' as YFJZQH,'{2}' AS YSFL, '{3}' as WHR,'{4}' as WHRID,'{5}' as WHSJ ",
|
SQL.Add(string.Format("select '{0}' as XZQHID,'{1}' as YFJZQH,'{2}' AS YSFL, '{3}' as WHR,'{4}' as WHRID,'{5}' as WHSJ,' ' ",
|
||||||
sXZQHID, sYFJZQH, dYSFL, CurSession.UserName, CurSession.UserId, DateTime.Now));
|
sXZQHID, sYFJZQH, dYSFL, CurSession.UserName, CurSession.UserId, DateTime.Now));
|
||||||
dberp.ExecSQL(SQL);
|
dberp.ExecSQL(SQL);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -132,6 +132,7 @@ namespace GThinking.N_XLXSBJ
|
|||||||
#region 自定义函数
|
#region 自定义函数
|
||||||
private string GetSql()
|
private string GetSql()
|
||||||
{
|
{
|
||||||
|
base.InitEntityByCondition();
|
||||||
string[] sYFJZQHs = txtYFJZQHList.Value.Split(new char[] { ',' }, StringSplitOptions.RemoveEmptyEntries);
|
string[] sYFJZQHs = txtYFJZQHList.Value.Split(new char[] { ',' }, StringSplitOptions.RemoveEmptyEntries);
|
||||||
StringBuilder strSQL = new StringBuilder();
|
StringBuilder strSQL = new StringBuilder();
|
||||||
strSQL.AppendLine(" select A.XZQH_XZQHID as XLXSBJDQYFB_XZQHID,");
|
strSQL.AppendLine(" select A.XZQH_XZQHID as XLXSBJDQYFB_XZQHID,");
|
||||||
@@ -155,6 +156,19 @@ namespace GThinking.N_XLXSBJ
|
|||||||
{
|
{
|
||||||
strSQL.AppendLine(" where 1<>1");
|
strSQL.AppendLine(" where 1<>1");
|
||||||
}
|
}
|
||||||
|
string sSF = CurQueryEntity.FieldByName("SF").Value.Trim();
|
||||||
|
if (!string.IsNullOrEmpty(sSF))
|
||||||
|
{
|
||||||
|
strSQL.AppendLine(string.Format(" and XZQH_PROVINCE like '%{0}%' ",sSF));
|
||||||
|
}
|
||||||
|
|
||||||
|
string sCS = CurQueryEntity.FieldByName("CS").Value.Trim();
|
||||||
|
if (!string.IsNullOrEmpty(sCS))
|
||||||
|
{
|
||||||
|
strSQL.AppendLine(string.Format(" and XZQH_CITY like '%{0}%' ", sCS));
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
strSQL.AppendLine(" group by A.XZQH_XZQHID, A.XZQH_PROVINCE, A.XZQH_CITY");
|
strSQL.AppendLine(" group by A.XZQH_XZQHID, A.XZQH_PROVINCE, A.XZQH_CITY");
|
||||||
strSQL.AppendLine(" order by A.XZQH_PROVINCE, A.XZQH_CITY");
|
strSQL.AppendLine(" order by A.XZQH_PROVINCE, A.XZQH_CITY");
|
||||||
return strSQL.ToString();
|
return strSQL.ToString();
|
||||||
|
|||||||
@@ -4,5 +4,25 @@
|
|||||||
<%@ MasterType VirtualPath="~/N_MODEL/Page/MasterSingleQuery.Master" %>
|
<%@ MasterType VirtualPath="~/N_MODEL/Page/MasterSingleQuery.Master" %>
|
||||||
<asp:Content ID="ContentQuery" ContentPlaceHolderID="CPHQuery" runat="server">
|
<asp:Content ID="ContentQuery" ContentPlaceHolderID="CPHQuery" runat="server">
|
||||||
<asp:Table ID="QueryTable" runat="server" >
|
<asp:Table ID="QueryTable" runat="server" >
|
||||||
|
<asp:TableRow>
|
||||||
|
<asp:TableCell></asp:TableCell>
|
||||||
|
<asp:TableCell HorizontalAlign="Right" Width="100px" Height="22px">
|
||||||
|
<gtc:gtLabel ID="lblSF" runat="server">省:</gtc:gtLabel>
|
||||||
|
</asp:TableCell>
|
||||||
|
<asp:TableCell Height="22px">
|
||||||
|
<gtc:gtTextBox ID="txtSF" Width="146px" DataField="SF" runat="server" Tag="Percent" CharCase="ecUpperCase">
|
||||||
|
</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:gtTextBox ID="txtCS" Width="146px" DataField="CS" runat="server" Tag="Percent" CharCase="ecUpperCase">
|
||||||
|
</gtc:gtTextBox>
|
||||||
|
</asp:TableCell>
|
||||||
|
</asp:TableRow>
|
||||||
</asp:Table>
|
</asp:Table>
|
||||||
</asp:Content>
|
</asp:Content>
|
||||||
|
|||||||
Generated
+36
@@ -28,6 +28,42 @@ namespace GThinking.N_XLXSBJ {
|
|||||||
/// </remarks>
|
/// </remarks>
|
||||||
protected global::System.Web.UI.WebControls.Table QueryTable;
|
protected global::System.Web.UI.WebControls.Table QueryTable;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// lblSF 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtLabel lblSF;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtSF 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtTextBox txtSF;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// GtLabel1 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtLabel GtLabel1;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtCS 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtTextBox txtCS;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Master 属性。
|
/// Master 属性。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|||||||
@@ -15,6 +15,8 @@ namespace GThinking.N_XLXSBJ
|
|||||||
{
|
{
|
||||||
public BJYF_TLJQJ_M()
|
public BJYF_TLJQJ_M()
|
||||||
{
|
{
|
||||||
|
AddFieldDefs("SF", "Ê¡·Ý");
|
||||||
|
AddFieldDefs("CS", "³ÇÊÐ");
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -1877,7 +1877,7 @@ namespace GThinking.N_XLXSBJ
|
|||||||
|
|
||||||
SQL.Add(" ) DZB");
|
SQL.Add(" ) DZB");
|
||||||
SQL.Add(" left join XLDYDJB on XLDYDJB_DYDJID=DYDJID ) sor ");
|
SQL.Add(" left join XLDYDJB on XLDYDJB_DYDJID=DYDJID ) sor ");
|
||||||
SQL.Add(" on( XLXSJGBYZZ1_JGBID=JGBID and XLXSJGBYZZ1_YZID=YZID and XLXSJGBYZZ1_XLXHID=XLXHID and XLXSJGBYZZ1_XLGGID=XLGGID and XLXSJGBYZZ1_XLBZID=XLBZID and XLXSJGBYZZ1_DYDJID=DYDJID ) ");
|
SQL.Add(" on( XLXSJGBYZZ1_JGBID=JGBID and XLXSJGBYZZ1_YZID=YZID and XLXSJGBYZZ1_XLXHID=XLXHID and XLXSJGBYZZ1_XLGGID=XLGGID and XLXSJGBYZZ1_XLBZID=XLBZID and XLXSJGBYZZ1_DYDJID=DYDJID and XLXSJGBYZZ1_YZZ>0 ) ");
|
||||||
SQL.Add(" when matched then update set XLXSJGBYZZ1_XHKCBZ= XHKCBZ,XLXSJGBYZZ1_YZZ=YZZ,XLXSJGBYZZ1_TJDH=TJDH ");
|
SQL.Add(" when matched then update set XLXSJGBYZZ1_XHKCBZ= XHKCBZ,XLXSJGBYZZ1_YZZ=YZZ,XLXSJGBYZZ1_TJDH=TJDH ");
|
||||||
SQL.Add(" when not matched then insert ");
|
SQL.Add(" when not matched then insert ");
|
||||||
SQL.Add(" ( ");
|
SQL.Add(" ( ");
|
||||||
|
|||||||
@@ -26,6 +26,12 @@ namespace GThinking.N_XLXSBJ
|
|||||||
this.CurQueryEntity = qryEntity;
|
this.CurQueryEntity = qryEntity;
|
||||||
this.PageHeight = 500;
|
this.PageHeight = 500;
|
||||||
this.PageWidth = 650;
|
this.PageWidth = 650;
|
||||||
|
this.Master.EnableNewBtn = false;
|
||||||
|
this.Master.EnableCopyBtn = false;
|
||||||
|
this.Master.EnableViewBtn = false;
|
||||||
|
this.Master.EnableEditBtn = false;
|
||||||
|
this.Master.EnableDeleteBtn = false;
|
||||||
|
this.Master.EnableAttachBtn = false;
|
||||||
base.InitPage();
|
base.InitPage();
|
||||||
|
|
||||||
if (!IsPostBack)
|
if (!IsPostBack)
|
||||||
|
|||||||
+19
-15
@@ -125,7 +125,6 @@ namespace GThinking.N_XLXSBJ
|
|||||||
{
|
{
|
||||||
string sXLXHID = ds.Tables[0].Rows[i][0].ToString().Trim();
|
string sXLXHID = ds.Tables[0].Rows[i][0].ToString().Trim();
|
||||||
string sDYDJID = ds.Tables[0].Rows[i][1].ToString().Trim();
|
string sDYDJID = ds.Tables[0].Rows[i][1].ToString().Trim();
|
||||||
string sZXJM = ds.Tables[0].Rows[i][2].ToString().Trim();
|
|
||||||
|
|
||||||
#region 校验数据
|
#region 校验数据
|
||||||
|
|
||||||
@@ -137,22 +136,31 @@ namespace GThinking.N_XLXSBJ
|
|||||||
if (sDYDJID.Equals(""))
|
if (sDYDJID.Equals(""))
|
||||||
sDYDJID = " ";
|
sDYDJID = " ";
|
||||||
|
|
||||||
if (sZXJM.Equals(""))
|
|
||||||
sZXJM = " ";
|
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
string sSQL = string.Format("delete from XLXSBJCPYS where XLXSBJCPYS_XLJBXHID='{0}' and XLXSBJCPYS_DYDJID='{1}' and ,XLXSBJCPYS_XLYSID='{2}' ", sXLXHID, sDYDJID,sZXJM);
|
string sSQL = string.Format("delete from XLXSBJCPYS where XLXSBJCPYS_XLJBXHID='{0}' and XLXSBJCPYS_DYDJID='{1}' ", sXLXHID, sDYDJID);
|
||||||
|
|
||||||
SQL.Clear();
|
SQL.Clear();
|
||||||
SQL.Add(sSQL);
|
SQL.Add(sSQL);
|
||||||
dberp.ExecSQL(SQL);
|
dberp.ExecSQL(SQL);
|
||||||
|
|
||||||
|
|
||||||
|
int XH = 1;
|
||||||
|
SQL.Clear();
|
||||||
|
SQL.Add("select count(1) as SL from XLXSBJCPYS where XLXSBJCPYS_XLJBXHID=:pXLXHID");
|
||||||
|
SQL.ParamByName("pXLXHID").Value = sXLXHID;
|
||||||
|
DataSet dscon = dberp.OpenDataSet(SQL);
|
||||||
|
if (dscon.Tables[0].Rows.Count > 0)
|
||||||
|
{
|
||||||
|
XH = CMISproConvert.StrToInt(dscon.Tables[0].Rows[0][0].ToString().Trim())+1;
|
||||||
|
}
|
||||||
|
|
||||||
#region 按矩阵列生成属性记录
|
#region 按矩阵列生成属性记录
|
||||||
string sXLTXID = string.Empty;
|
string sXLTXID = string.Empty;
|
||||||
int XH = 1;
|
|
||||||
for (int j = 3; j < ds.Tables[0].Columns.Count; j++)
|
for (int j = 2; j < ds.Tables[0].Columns.Count; j++)
|
||||||
{
|
{
|
||||||
object objValue = ds.Tables[0].Rows[i][j];
|
object objValue = ds.Tables[0].Rows[i][j];
|
||||||
if (objValue == null || objValue == DBNull.Value)
|
if (objValue == null || objValue == DBNull.Value)
|
||||||
@@ -169,11 +177,10 @@ namespace GThinking.N_XLXSBJ
|
|||||||
|
|
||||||
|
|
||||||
SQL.Clear();
|
SQL.Clear();
|
||||||
SQL.Add(@" insert into XLXSBJCPYS(XLXSBJCPYS_CPYT, XLXSBJCPYS_XLJBXHID,XLXSBJCPYS_XLYSID, XLXSBJCPYS_DYDJID,XLXSBJCPYS_XXJGID,XLXSBJCPYS_WHR,XLXSBJCPYS_WHRID,XLXSBJCPYS_WHSJ)
|
SQL.Add(@" insert into XLXSBJCPYS(XLXSBJCPYS_CPYT, XLXSBJCPYS_XLJBXHID, XLXSBJCPYS_DYDJID,XLXSBJCPYS_XXJGID,XLXSBJCPYS_WHR,XLXSBJCPYS_WHRID,XLXSBJCPYS_WHSJ)
|
||||||
values(:XLXSBJCPYS_CPYT,:XLXSBJCPYS_XLJBXHID,:XLXSBJCPYS_XLYSID,:XLXSBJCPYS_DYDJID,:XLXSBJCPYS_XXJGID,:XLXSBJCPYS_WHR,:XLXSBJCPYS_WHRID,:XLXSBJCPYS_WHSJ)");
|
values(:XLXSBJCPYS_CPYT,:XLXSBJCPYS_XLJBXHID,:XLXSBJCPYS_DYDJID,:XLXSBJCPYS_XXJGID,:XLXSBJCPYS_WHR,:XLXSBJCPYS_WHRID,:XLXSBJCPYS_WHSJ)");
|
||||||
SQL.ParamByName("XLXSBJCPYS_XLJBXHID").Value = sXLXHID;
|
SQL.ParamByName("XLXSBJCPYS_XLJBXHID").Value = sXLXHID;
|
||||||
SQL.ParamByName("XLXSBJCPYS_DYDJID").Value = sDYDJID;
|
SQL.ParamByName("XLXSBJCPYS_DYDJID").Value = sDYDJID;
|
||||||
SQL.ParamByName("XLXSBJCPYS_XLYSID").Value = sZXJM;
|
|
||||||
SQL.ParamByName("XLXSBJCPYS_XXJGID").Value = sXLXHFJSX;
|
SQL.ParamByName("XLXSBJCPYS_XXJGID").Value = sXLXHFJSX;
|
||||||
SQL.ParamByName("XLXSBJCPYS_CPYT").Value = XH++;
|
SQL.ParamByName("XLXSBJCPYS_CPYT").Value = XH++;
|
||||||
SQL.ParamByName("XLXSBJCPYS_WHR").Value = tSession.UserName;
|
SQL.ParamByName("XLXSBJCPYS_WHR").Value = tSession.UserName;
|
||||||
@@ -202,9 +209,9 @@ namespace GThinking.N_XLXSBJ
|
|||||||
|
|
||||||
private void ExcelColumnValid(DataSet ds)
|
private void ExcelColumnValid(DataSet ds)
|
||||||
{
|
{
|
||||||
if (ds.Tables[0].Columns.Count < 4)
|
if (ds.Tables[0].Columns.Count < 3)
|
||||||
{
|
{
|
||||||
throw new Exception("Excel 列数不正确,至少需要包含“型号”、“电压等级”、“主芯截面”列和一列属性列!");
|
throw new Exception("Excel 列数不正确,至少需要包含“型号”、“电压等级”列和一列属性列!");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!ds.Tables[0].Columns[0].ColumnName.Trim().Equals("型号"))
|
if (!ds.Tables[0].Columns[0].ColumnName.Trim().Equals("型号"))
|
||||||
@@ -217,10 +224,7 @@ namespace GThinking.N_XLXSBJ
|
|||||||
throw new Exception(string.Format("第 2 列标题错误,当前为({0}),应为(电压等级)", ds.Tables[0].Columns[0].ColumnName.Trim()));
|
throw new Exception(string.Format("第 2 列标题错误,当前为({0}),应为(电压等级)", ds.Tables[0].Columns[0].ColumnName.Trim()));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!ds.Tables[0].Columns[2].ColumnName.Trim().Equals("主芯截面"))
|
|
||||||
{
|
|
||||||
throw new Exception(string.Format("第 3 列标题错误,当前为({0}),应为(主芯截面)", ds.Tables[0].Columns[0].ColumnName.Trim()));
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void ReadWJ(string sPath, ref DataSet aDataExcel)
|
private void ReadWJ(string sPath, ref DataSet aDataExcel)
|
||||||
|
|||||||
+4358
File diff suppressed because it is too large
Load Diff
Binary file not shown.
@@ -0,0 +1,278 @@
|
|||||||
|
<html>
|
||||||
|
|
||||||
|
<head>
|
||||||
|
<meta http-equiv=Content-Type content="text/html; charset=gb2312">
|
||||||
|
<meta name=Generator content="Microsoft Word 15 (filtered)">
|
||||||
|
<title>线缆销售报价单调价因子值L帮助</title>
|
||||||
|
<style>
|
||||||
|
<!--
|
||||||
|
/* Font Definitions */
|
||||||
|
@font-face
|
||||||
|
{font-family:宋体;
|
||||||
|
panose-1:2 1 6 0 3 1 1 1 1 1;}
|
||||||
|
@font-face
|
||||||
|
{font-family:"Cambria Math";
|
||||||
|
panose-1:2 4 5 3 5 4 6 3 2 4;}
|
||||||
|
@font-face
|
||||||
|
{font-family:"等线 Light";
|
||||||
|
panose-1:2 1 6 0 3 1 1 1 1 1;}
|
||||||
|
@font-face
|
||||||
|
{font-family:"\@宋体";
|
||||||
|
panose-1:2 1 6 0 3 1 1 1 1 1;}
|
||||||
|
@font-face
|
||||||
|
{font-family:Cambria;
|
||||||
|
panose-1:2 4 5 3 5 4 6 3 2 4;}
|
||||||
|
@font-face
|
||||||
|
{font-family:"Microsoft YaHei UI";
|
||||||
|
panose-1:2 11 5 3 2 2 4 2 2 4;}
|
||||||
|
@font-face
|
||||||
|
{font-family:"\@Microsoft YaHei UI";}
|
||||||
|
@font-face
|
||||||
|
{font-family:"\@等线 Light";}
|
||||||
|
/* Style Definitions */
|
||||||
|
p.MsoNormal, li.MsoNormal, div.MsoNormal
|
||||||
|
{margin:0cm;
|
||||||
|
margin-bottom:.0001pt;
|
||||||
|
text-align:justify;
|
||||||
|
text-justify:inter-ideograph;
|
||||||
|
font-size:10.5pt;
|
||||||
|
font-family:"Times New Roman",serif;}
|
||||||
|
h2
|
||||||
|
{mso-style-link:"标题 2 字符1";
|
||||||
|
margin:0cm;
|
||||||
|
margin-bottom:.0001pt;
|
||||||
|
text-align:justify;
|
||||||
|
text-justify:inter-ideograph;
|
||||||
|
font-size:10.5pt;
|
||||||
|
font-family:宋体;}
|
||||||
|
h3
|
||||||
|
{mso-style-link:"标题 3 字符1";
|
||||||
|
margin:0cm;
|
||||||
|
margin-bottom:.0001pt;
|
||||||
|
text-align:justify;
|
||||||
|
text-justify:inter-ideograph;
|
||||||
|
font-size:9.0pt;
|
||||||
|
font-family:宋体;}
|
||||||
|
p.MsoHeader, li.MsoHeader, div.MsoHeader
|
||||||
|
{mso-style-link:"页眉 字符1";
|
||||||
|
margin:0cm;
|
||||||
|
margin-bottom:.0001pt;
|
||||||
|
text-align:center;
|
||||||
|
layout-grid-mode:char;
|
||||||
|
font-size:9.0pt;
|
||||||
|
font-family:"Times New Roman",serif;}
|
||||||
|
p.MsoFooter, li.MsoFooter, div.MsoFooter
|
||||||
|
{mso-style-link:"页脚 字符1";
|
||||||
|
margin:0cm;
|
||||||
|
margin-bottom:.0001pt;
|
||||||
|
layout-grid-mode:char;
|
||||||
|
font-size:9.0pt;
|
||||||
|
font-family:"Times New Roman",serif;}
|
||||||
|
p.MsoBodyText, li.MsoBodyText, div.MsoBodyText
|
||||||
|
{mso-style-link:"正文文本 字符1";
|
||||||
|
margin:0cm;
|
||||||
|
margin-bottom:.0001pt;
|
||||||
|
text-align:justify;
|
||||||
|
text-justify:inter-ideograph;
|
||||||
|
font-size:9.0pt;
|
||||||
|
font-family:"Times New Roman",serif;}
|
||||||
|
p.MsoBodyTextIndent, li.MsoBodyTextIndent, div.MsoBodyTextIndent
|
||||||
|
{mso-style-link:"正文文本缩进 字符1";
|
||||||
|
margin:0cm;
|
||||||
|
margin-bottom:.0001pt;
|
||||||
|
text-align:justify;
|
||||||
|
text-justify:inter-ideograph;
|
||||||
|
text-indent:21.0pt;
|
||||||
|
layout-grid-mode:char;
|
||||||
|
font-size:10.5pt;
|
||||||
|
font-family:"Times New Roman",serif;}
|
||||||
|
a:link, span.MsoHyperlink
|
||||||
|
{color:blue;
|
||||||
|
text-decoration:underline;}
|
||||||
|
a:visited, span.MsoHyperlinkFollowed
|
||||||
|
{color:purple;
|
||||||
|
text-decoration:underline;}
|
||||||
|
p.MsoDocumentMap, li.MsoDocumentMap, div.MsoDocumentMap
|
||||||
|
{mso-style-link:"文档结构图 字符1";
|
||||||
|
margin:0cm;
|
||||||
|
margin-bottom:.0001pt;
|
||||||
|
text-align:justify;
|
||||||
|
text-justify:inter-ideograph;
|
||||||
|
background:navy;
|
||||||
|
font-size:10.5pt;
|
||||||
|
font-family:"Times New Roman",serif;}
|
||||||
|
span.2
|
||||||
|
{mso-style-name:"标题 2 字符";
|
||||||
|
mso-style-link:"标题 2";
|
||||||
|
font-family:"等线 Light";
|
||||||
|
font-weight:bold;}
|
||||||
|
span.3
|
||||||
|
{mso-style-name:"标题 3 字符";
|
||||||
|
mso-style-link:"标题 3";
|
||||||
|
font-family:宋体;
|
||||||
|
font-weight:bold;}
|
||||||
|
p.msonormal0, li.msonormal0, div.msonormal0
|
||||||
|
{mso-style-name:msonormal;
|
||||||
|
margin-right:0cm;
|
||||||
|
margin-left:0cm;
|
||||||
|
font-size:12.0pt;
|
||||||
|
font-family:宋体;}
|
||||||
|
span.a
|
||||||
|
{mso-style-name:"页眉 字符";
|
||||||
|
mso-style-link:页眉;
|
||||||
|
font-family:宋体;}
|
||||||
|
span.a0
|
||||||
|
{mso-style-name:"页脚 字符";
|
||||||
|
mso-style-link:页脚;
|
||||||
|
font-family:宋体;}
|
||||||
|
span.a1
|
||||||
|
{mso-style-name:"正文文本 字符";
|
||||||
|
mso-style-link:正文文本;
|
||||||
|
font-family:宋体;}
|
||||||
|
span.a2
|
||||||
|
{mso-style-name:"正文文本缩进 字符";
|
||||||
|
mso-style-link:正文文本缩进;
|
||||||
|
font-family:宋体;}
|
||||||
|
span.a3
|
||||||
|
{mso-style-name:"文档结构图 字符";
|
||||||
|
mso-style-link:文档结构图;
|
||||||
|
font-family:"Microsoft YaHei UI",sans-serif;}
|
||||||
|
p.msochpdefault, li.msochpdefault, div.msochpdefault
|
||||||
|
{mso-style-name:msochpdefault;
|
||||||
|
margin-right:0cm;
|
||||||
|
margin-left:0cm;
|
||||||
|
font-size:10.0pt;
|
||||||
|
font-family:宋体;}
|
||||||
|
span.21
|
||||||
|
{mso-style-name:"标题 2 字符1";
|
||||||
|
mso-style-link:"标题 2";
|
||||||
|
font-family:"Cambria",serif;
|
||||||
|
font-weight:bold;}
|
||||||
|
span.31
|
||||||
|
{mso-style-name:"标题 3 字符1";
|
||||||
|
mso-style-link:"标题 3";
|
||||||
|
font-family:宋体;
|
||||||
|
font-weight:bold;}
|
||||||
|
span.1
|
||||||
|
{mso-style-name:"页眉 字符1";
|
||||||
|
mso-style-link:页眉;
|
||||||
|
font-family:宋体;}
|
||||||
|
span.10
|
||||||
|
{mso-style-name:"页脚 字符1";
|
||||||
|
mso-style-link:页脚;
|
||||||
|
font-family:宋体;}
|
||||||
|
span.11
|
||||||
|
{mso-style-name:"正文文本 字符1";
|
||||||
|
mso-style-link:正文文本;
|
||||||
|
font-family:宋体;}
|
||||||
|
span.12
|
||||||
|
{mso-style-name:"正文文本缩进 字符1";
|
||||||
|
mso-style-link:正文文本缩进;
|
||||||
|
font-family:宋体;}
|
||||||
|
span.13
|
||||||
|
{mso-style-name:"文档结构图 字符1";
|
||||||
|
mso-style-link:文档结构图;
|
||||||
|
font-family:宋体;}
|
||||||
|
.MsoChpDefault
|
||||||
|
{font-size:10.0pt;}
|
||||||
|
/* Page Definitions */
|
||||||
|
@page WordSection1
|
||||||
|
{size:595.3pt 841.9pt;
|
||||||
|
margin:72.0pt 90.0pt 72.0pt 90.0pt;
|
||||||
|
layout-grid:15.6pt;}
|
||||||
|
div.WordSection1
|
||||||
|
{page:WordSection1;}
|
||||||
|
-->
|
||||||
|
</style>
|
||||||
|
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body lang=ZH-CN link=blue vlink=purple style='text-justify-trim:punctuation'>
|
||||||
|
|
||||||
|
<div class=WordSection1 style='layout-grid:15.6pt'>
|
||||||
|
|
||||||
|
<h2><span class=MsoHyperlink><span lang=EN-US><a href="N_XLXSBJ.Html"><span
|
||||||
|
lang=EN-US><span lang=EN-US>▲</span></span></a></span></span><span lang=EN-US> </span><span
|
||||||
|
style='color:blue'>线缆销售报价单调价因子值<span lang=EN-US>L</span></span><span
|
||||||
|
lang=EN-US> <span class=MsoHyperlink><a href="../N_MODEL/N_Base_SingleCard.html"><span
|
||||||
|
lang=EN-US><span lang=EN-US>▼</span></span></a></span></span></h2>
|
||||||
|
|
||||||
|
<h3>【用途】</h3>
|
||||||
|
|
||||||
|
<p class=MsoNormal><span style='font-size:9.0pt;font-family:宋体'>用于设置调价因素为“<span lang=EN-US>L|</span>按标准加报价数量区间调报价”的报价单调价因子值。</span></p>
|
||||||
|
|
||||||
|
<h3>【栏目说明】</h3>
|
||||||
|
|
||||||
|
<table class=MsoNormalTable border=0 cellspacing=0 cellpadding=0
|
||||||
|
style='border-collapse:collapse'>
|
||||||
|
<tr>
|
||||||
|
<td width=90 valign=top style='width:67.85pt;padding:0cm 5.4pt 0cm 5.4pt'>
|
||||||
|
<p class=MsoNormal><span style='font-size:9.0pt;font-family:宋体;color:windowtext'>调价因子</span></p>
|
||||||
|
</td>
|
||||||
|
<td width=463 valign=top style='width:347.45pt;padding:0cm 5.4pt 0cm 5.4pt'>
|
||||||
|
<p class=MsoNormal><span style='font-size:9.0pt;font-family:宋体;color:windowtext'>维护报价单调价因子。</span></p>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td width=90 valign=top style='width:67.85pt;padding:0cm 5.4pt 0cm 5.4pt'>
|
||||||
|
<p class=MsoNormal><span style='font-size:9.0pt;font-family:宋体;color:windowtext'>标准</span></p>
|
||||||
|
</td>
|
||||||
|
<td width=463 valign=top style='width:347.45pt;padding:0cm 5.4pt 0cm 5.4pt'>
|
||||||
|
<p class=MsoNormal><span style='font-size:9.0pt;font-family:宋体;color:windowtext'>维护标准。</span></p>
|
||||||
|
</td>
|
||||||
|
</tr> <tr>
|
||||||
|
<td width=90 valign=top style='width:67.85pt;padding:0cm 5.4pt 0cm 5.4pt'>
|
||||||
|
<p class=MsoNormal><span style='font-size:9.0pt;font-family:宋体;color:windowtext'>报价数量始</span></p>
|
||||||
|
</td>
|
||||||
|
<td width=463 valign=top style='width:347.45pt;padding:0cm 5.4pt 0cm 5.4pt'>
|
||||||
|
<p class=MsoNormal><span style='font-size:9.0pt;font-family:宋体;color:windowtext'>维护报价数量始。</span></p>
|
||||||
|
</td>
|
||||||
|
</tr> <tr>
|
||||||
|
<td width=90 valign=top style='width:67.85pt;padding:0cm 5.4pt 0cm 5.4pt'>
|
||||||
|
<p class=MsoNormal><span style='font-size:9.0pt;font-family:宋体;color:windowtext'>报价数量止</span></p>
|
||||||
|
</td>
|
||||||
|
<td width=463 valign=top style='width:347.45pt;padding:0cm 5.4pt 0cm 5.4pt'>
|
||||||
|
<p class=MsoNormal><span style='font-size:9.0pt;font-family:宋体;color:windowtext'>维护报价数量止。</span></p>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td width=90 valign=top style='width:67.85pt;padding:0cm 5.4pt 0cm 5.4pt'>
|
||||||
|
<p class=MsoNormal><span style='font-size:9.0pt;font-family:宋体;color:windowtext'>因子值</span></p>
|
||||||
|
</td>
|
||||||
|
<td width=463 valign=top style='width:347.45pt;padding:0cm 5.4pt 0cm 5.4pt'>
|
||||||
|
<p class=MsoNormal><span style='font-size:9.0pt;font-family:宋体;color:windowtext'>记录调价因子值。</span></p>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td width=90 valign=top style='width:67.85pt;padding:0cm 5.4pt 0cm 5.4pt'>
|
||||||
|
<p class=MsoNormal><span style='font-size:9.0pt;font-family:宋体;color:windowtext'>调价方式</span></p>
|
||||||
|
</td>
|
||||||
|
<td width=463 valign=top style='width:347.45pt;padding:0cm 5.4pt 0cm 5.4pt'>
|
||||||
|
<p class=MsoNormal><span style='font-size:9.0pt;font-family:宋体;color:windowtext'>显示调价方式。</span></p>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td width=90 valign=top style='width:67.85pt;padding:0cm 5.4pt 0cm 5.4pt'>
|
||||||
|
<p class=MsoNormal><span style='font-size:9.0pt;font-family:宋体;color:windowtext'>维护人</span></p>
|
||||||
|
</td>
|
||||||
|
<td width=463 valign=top style='width:347.45pt;padding:0cm 5.4pt 0cm 5.4pt'>
|
||||||
|
<p class=MsoNormal><span style='font-size:9.0pt;font-family:宋体;color:windowtext'>最后一次维护的人员。</span></p>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td width=90 valign=top style='width:67.85pt;padding:0cm 5.4pt 0cm 5.4pt'>
|
||||||
|
<p class=MsoNormal><span style='font-size:9.0pt;font-family:宋体;color:windowtext'>维护时间</span></p>
|
||||||
|
</td>
|
||||||
|
<td width=463 valign=top style='width:347.45pt;padding:0cm 5.4pt 0cm 5.4pt'>
|
||||||
|
<p class=MsoNormal><span style='font-size:9.0pt;font-family:宋体;color:windowtext'>最后一次维护的时间。</span></p>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
<p class=MsoNormal><span lang=EN-US> </span></p>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</body>
|
||||||
|
|
||||||
|
</html>
|
||||||
@@ -0,0 +1,279 @@
|
|||||||
|
<html>
|
||||||
|
|
||||||
|
<head>
|
||||||
|
<meta http-equiv=Content-Type content="text/html; charset=gb2312">
|
||||||
|
<meta name=Generator content="Microsoft Word 15 (filtered)">
|
||||||
|
<title>线缆销售报价单调价因子值L帮助</title>
|
||||||
|
<style>
|
||||||
|
<!--
|
||||||
|
/* Font Definitions */
|
||||||
|
@font-face
|
||||||
|
{font-family:宋体;
|
||||||
|
panose-1:2 1 6 0 3 1 1 1 1 1;}
|
||||||
|
@font-face
|
||||||
|
{font-family:"Cambria Math";
|
||||||
|
panose-1:2 4 5 3 5 4 6 3 2 4;}
|
||||||
|
@font-face
|
||||||
|
{font-family:"等线 Light";
|
||||||
|
panose-1:2 1 6 0 3 1 1 1 1 1;}
|
||||||
|
@font-face
|
||||||
|
{font-family:"\@宋体";
|
||||||
|
panose-1:2 1 6 0 3 1 1 1 1 1;}
|
||||||
|
@font-face
|
||||||
|
{font-family:Cambria;
|
||||||
|
panose-1:2 4 5 3 5 4 6 3 2 4;}
|
||||||
|
@font-face
|
||||||
|
{font-family:"Microsoft YaHei UI";
|
||||||
|
panose-1:2 11 5 3 2 2 4 2 2 4;}
|
||||||
|
@font-face
|
||||||
|
{font-family:"\@Microsoft YaHei UI";}
|
||||||
|
@font-face
|
||||||
|
{font-family:"\@等线 Light";}
|
||||||
|
/* Style Definitions */
|
||||||
|
p.MsoNormal, li.MsoNormal, div.MsoNormal
|
||||||
|
{margin:0cm;
|
||||||
|
margin-bottom:.0001pt;
|
||||||
|
text-align:justify;
|
||||||
|
text-justify:inter-ideograph;
|
||||||
|
font-size:10.5pt;
|
||||||
|
font-family:"Times New Roman",serif;}
|
||||||
|
h2
|
||||||
|
{mso-style-link:"标题 2 字符1";
|
||||||
|
margin:0cm;
|
||||||
|
margin-bottom:.0001pt;
|
||||||
|
text-align:justify;
|
||||||
|
text-justify:inter-ideograph;
|
||||||
|
font-size:10.5pt;
|
||||||
|
font-family:宋体;}
|
||||||
|
h3
|
||||||
|
{mso-style-link:"标题 3 字符1";
|
||||||
|
margin:0cm;
|
||||||
|
margin-bottom:.0001pt;
|
||||||
|
text-align:justify;
|
||||||
|
text-justify:inter-ideograph;
|
||||||
|
font-size:9.0pt;
|
||||||
|
font-family:宋体;}
|
||||||
|
p.MsoHeader, li.MsoHeader, div.MsoHeader
|
||||||
|
{mso-style-link:"页眉 字符1";
|
||||||
|
margin:0cm;
|
||||||
|
margin-bottom:.0001pt;
|
||||||
|
text-align:center;
|
||||||
|
layout-grid-mode:char;
|
||||||
|
font-size:9.0pt;
|
||||||
|
font-family:"Times New Roman",serif;}
|
||||||
|
p.MsoFooter, li.MsoFooter, div.MsoFooter
|
||||||
|
{mso-style-link:"页脚 字符1";
|
||||||
|
margin:0cm;
|
||||||
|
margin-bottom:.0001pt;
|
||||||
|
layout-grid-mode:char;
|
||||||
|
font-size:9.0pt;
|
||||||
|
font-family:"Times New Roman",serif;}
|
||||||
|
p.MsoBodyTextIndent, li.MsoBodyTextIndent, div.MsoBodyTextIndent
|
||||||
|
{mso-style-link:"正文文本缩进 字符1";
|
||||||
|
margin:0cm;
|
||||||
|
margin-bottom:.0001pt;
|
||||||
|
text-align:justify;
|
||||||
|
text-justify:inter-ideograph;
|
||||||
|
text-indent:21.0pt;
|
||||||
|
layout-grid-mode:char;
|
||||||
|
font-size:10.5pt;
|
||||||
|
font-family:"Times New Roman",serif;}
|
||||||
|
a:link, span.MsoHyperlink
|
||||||
|
{color:blue;
|
||||||
|
text-decoration:underline;}
|
||||||
|
a:visited, span.MsoHyperlinkFollowed
|
||||||
|
{color:purple;
|
||||||
|
text-decoration:underline;}
|
||||||
|
p.MsoDocumentMap, li.MsoDocumentMap, div.MsoDocumentMap
|
||||||
|
{mso-style-link:"文档结构图 字符1";
|
||||||
|
margin:0cm;
|
||||||
|
margin-bottom:.0001pt;
|
||||||
|
text-align:justify;
|
||||||
|
text-justify:inter-ideograph;
|
||||||
|
background:navy;
|
||||||
|
font-size:10.5pt;
|
||||||
|
font-family:"Times New Roman",serif;}
|
||||||
|
span.2
|
||||||
|
{mso-style-name:"标题 2 字符";
|
||||||
|
mso-style-link:"标题 2";
|
||||||
|
font-family:"等线 Light";
|
||||||
|
font-weight:bold;}
|
||||||
|
span.3
|
||||||
|
{mso-style-name:"标题 3 字符";
|
||||||
|
mso-style-link:"标题 3";
|
||||||
|
font-family:宋体;
|
||||||
|
font-weight:bold;}
|
||||||
|
p.msonormal0, li.msonormal0, div.msonormal0
|
||||||
|
{mso-style-name:msonormal;
|
||||||
|
margin-right:0cm;
|
||||||
|
margin-left:0cm;
|
||||||
|
font-size:12.0pt;
|
||||||
|
font-family:宋体;}
|
||||||
|
span.a
|
||||||
|
{mso-style-name:"页眉 字符";
|
||||||
|
mso-style-link:页眉;
|
||||||
|
font-family:宋体;}
|
||||||
|
span.a0
|
||||||
|
{mso-style-name:"页脚 字符";
|
||||||
|
mso-style-link:页脚;
|
||||||
|
font-family:宋体;}
|
||||||
|
span.a1
|
||||||
|
{mso-style-name:"正文文本缩进 字符";
|
||||||
|
mso-style-link:正文文本缩进;
|
||||||
|
font-family:宋体;}
|
||||||
|
span.a2
|
||||||
|
{mso-style-name:"文档结构图 字符";
|
||||||
|
mso-style-link:文档结构图;
|
||||||
|
font-family:"Microsoft YaHei UI",sans-serif;}
|
||||||
|
p.a3, li.a3, div.a3
|
||||||
|
{mso-style-name:分项标题;
|
||||||
|
margin:0cm;
|
||||||
|
margin-bottom:.0001pt;
|
||||||
|
text-align:justify;
|
||||||
|
text-justify:inter-ideograph;
|
||||||
|
font-size:9.0pt;
|
||||||
|
font-family:宋体;
|
||||||
|
font-weight:bold;}
|
||||||
|
p.msochpdefault, li.msochpdefault, div.msochpdefault
|
||||||
|
{mso-style-name:msochpdefault;
|
||||||
|
margin-right:0cm;
|
||||||
|
margin-left:0cm;
|
||||||
|
font-size:10.0pt;
|
||||||
|
font-family:宋体;}
|
||||||
|
span.21
|
||||||
|
{mso-style-name:"标题 2 字符1";
|
||||||
|
mso-style-link:"标题 2";
|
||||||
|
font-family:"Cambria",serif;
|
||||||
|
font-weight:bold;}
|
||||||
|
span.31
|
||||||
|
{mso-style-name:"标题 3 字符1";
|
||||||
|
mso-style-link:"标题 3";
|
||||||
|
font-family:宋体;
|
||||||
|
font-weight:bold;}
|
||||||
|
span.1
|
||||||
|
{mso-style-name:"正文文本缩进 字符1";
|
||||||
|
mso-style-link:正文文本缩进;
|
||||||
|
font-family:宋体;}
|
||||||
|
span.10
|
||||||
|
{mso-style-name:"文档结构图 字符1";
|
||||||
|
mso-style-link:文档结构图;
|
||||||
|
font-family:宋体;}
|
||||||
|
span.11
|
||||||
|
{mso-style-name:"页眉 字符1";
|
||||||
|
mso-style-link:页眉;
|
||||||
|
font-family:宋体;}
|
||||||
|
span.12
|
||||||
|
{mso-style-name:"页脚 字符1";
|
||||||
|
mso-style-link:页脚;
|
||||||
|
font-family:宋体;}
|
||||||
|
.MsoChpDefault
|
||||||
|
{font-size:10.0pt;}
|
||||||
|
/* Page Definitions */
|
||||||
|
@page WordSection1
|
||||||
|
{size:595.3pt 841.9pt;
|
||||||
|
margin:72.0pt 90.0pt 72.0pt 90.0pt;
|
||||||
|
layout-grid:15.6pt;}
|
||||||
|
div.WordSection1
|
||||||
|
{page:WordSection1;}
|
||||||
|
-->
|
||||||
|
</style>
|
||||||
|
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body lang=ZH-CN link=blue vlink=purple style='text-justify-trim:punctuation'>
|
||||||
|
|
||||||
|
<div class=WordSection1 style='layout-grid:15.6pt'>
|
||||||
|
|
||||||
|
<h2><span lang=EN-US><a href="N_XLXSBJ.HTML"><span lang=EN-US><span lang=EN-US>▲</span></span></a><span
|
||||||
|
style='color:blue'> </span></span><span class=MsoHyperlink><span
|
||||||
|
style='text-decoration:none'>线缆销售报价单调价因子值<span lang=EN-US>L</span></span></span><span
|
||||||
|
lang=EN-US> <span class=MsoHyperlink><a href="../N_MODEL/N_Base_SingleGrid.html"><span
|
||||||
|
lang=EN-US><span lang=EN-US>▼</span></span></a></span></span></h2>
|
||||||
|
|
||||||
|
<h3>【用途】</h3>
|
||||||
|
|
||||||
|
<p class=MsoNormal><span style='font-size:9.0pt;font-family:宋体'>用于设置调价因素为“<span lang=EN-US>L|</span>按标准加报价数量区间调报价”的报价单调价因子值<span style='color:black'>。</span></span></p>
|
||||||
|
|
||||||
|
<h3>【栏目说明】</h3>
|
||||||
|
|
||||||
|
<table class=MsoNormalTable border=0 cellspacing=0 cellpadding=0
|
||||||
|
style='border-collapse:collapse'>
|
||||||
|
<tr>
|
||||||
|
<td width=90 valign=top style='width:67.85pt;padding:0cm 5.4pt 0cm 5.4pt'>
|
||||||
|
<p class=MsoNormal><span style='font-size:9.0pt;font-family:宋体;color:windowtext'>调价因子编码</span></p>
|
||||||
|
</td>
|
||||||
|
<td width=463 valign=top style='width:347.45pt;padding:0cm 5.4pt 0cm 5.4pt'>
|
||||||
|
<p class=MsoNormal><span style='font-size:9.0pt;font-family:宋体;color:windowtext'>显示报价调价因子的编码。</span></p>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td width=90 valign=top style='width:67.85pt;padding:0cm 5.4pt 0cm 5.4pt'>
|
||||||
|
<p class=MsoNormal><span style='font-size:9.0pt;font-family:宋体;color:windowtext'>调价因子名称</span></p>
|
||||||
|
</td>
|
||||||
|
<td width=463 valign=top style='width:347.45pt;padding:0cm 5.4pt 0cm 5.4pt'>
|
||||||
|
<p class=MsoNormal><span style='font-size:9.0pt;font-family:宋体;color:windowtext'>显示报价调价因子的名称。</span></p>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td width=90 valign=top style='width:67.85pt;padding:0cm 5.4pt 0cm 5.4pt'>
|
||||||
|
<p class=MsoNormal><span style='font-size:9.0pt;font-family:宋体;color:windowtext'>标准</span></p>
|
||||||
|
</td>
|
||||||
|
<td width=463 valign=top style='width:347.45pt;padding:0cm 5.4pt 0cm 5.4pt'>
|
||||||
|
<p class=MsoNormal><span style='font-size:9.0pt;font-family:宋体;color:windowtext'>显示标准。</span></p>
|
||||||
|
</td>
|
||||||
|
</tr> <tr>
|
||||||
|
<td width=90 valign=top style='width:67.85pt;padding:0cm 5.4pt 0cm 5.4pt'>
|
||||||
|
<p class=MsoNormal><span style='font-size:9.0pt;font-family:宋体;color:windowtext'>报价数量始</span></p>
|
||||||
|
</td>
|
||||||
|
<td width=463 valign=top style='width:347.45pt;padding:0cm 5.4pt 0cm 5.4pt'>
|
||||||
|
<p class=MsoNormal><span style='font-size:9.0pt;font-family:宋体;color:windowtext'>显示报价数量始。</span></p>
|
||||||
|
</td>
|
||||||
|
</tr> <tr>
|
||||||
|
<td width=90 valign=top style='width:67.85pt;padding:0cm 5.4pt 0cm 5.4pt'>
|
||||||
|
<p class=MsoNormal><span style='font-size:9.0pt;font-family:宋体;color:windowtext'>报价数量止</span></p>
|
||||||
|
</td>
|
||||||
|
<td width=463 valign=top style='width:347.45pt;padding:0cm 5.4pt 0cm 5.4pt'>
|
||||||
|
<p class=MsoNormal><span style='font-size:9.0pt;font-family:宋体;color:windowtext'>显示报价数量止。</span></p>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td width=90 valign=top style='width:67.85pt;padding:0cm 5.4pt 0cm 5.4pt'>
|
||||||
|
<p class=MsoNormal><span style='font-size:9.0pt;font-family:宋体;color:windowtext'>因子值</span></p>
|
||||||
|
</td>
|
||||||
|
<td width=463 valign=top style='width:347.45pt;padding:0cm 5.4pt 0cm 5.4pt'>
|
||||||
|
<p class=MsoNormal><span style='font-size:9.0pt;font-family:宋体;color:windowtext'>显示调价因子值。</span></p>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td width=90 valign=top style='width:67.85pt;padding:0cm 5.4pt 0cm 5.4pt'>
|
||||||
|
<p class=MsoNormal><span style='font-size:9.0pt;font-family:宋体;color:windowtext'>调价方式</span></p>
|
||||||
|
</td>
|
||||||
|
<td width=463 valign=top style='width:347.45pt;padding:0cm 5.4pt 0cm 5.4pt'>
|
||||||
|
<p class=MsoNormal><span style='font-size:9.0pt;font-family:宋体;color:windowtext'>显示调价方式。</span></p>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td width=90 valign=top style='width:67.85pt;padding:0cm 5.4pt 0cm 5.4pt'>
|
||||||
|
<p class=MsoNormal><span style='font-size:9.0pt;font-family:宋体;color:windowtext'>维护人</span></p>
|
||||||
|
</td>
|
||||||
|
<td width=463 valign=top style='width:347.45pt;padding:0cm 5.4pt 0cm 5.4pt'>
|
||||||
|
<p class=MsoNormal><span style='font-size:9.0pt;font-family:宋体;color:windowtext'>显示最后一次维护的人员。</span></p>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td width=90 valign=top style='width:67.85pt;padding:0cm 5.4pt 0cm 5.4pt'>
|
||||||
|
<p class=MsoNormal><span style='font-size:9.0pt;font-family:宋体;color:windowtext'>维护时间</span></p>
|
||||||
|
</td>
|
||||||
|
<td width=463 valign=top style='width:347.45pt;padding:0cm 5.4pt 0cm 5.4pt'>
|
||||||
|
<p class=MsoNormal><span style='font-size:9.0pt;font-family:宋体;color:windowtext'>显示最后一次维护的时间。</span></p>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
<p class=MsoNormal><span lang=EN-US> </span></p>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</body>
|
||||||
|
|
||||||
|
</html>
|
||||||
@@ -0,0 +1,215 @@
|
|||||||
|
<html>
|
||||||
|
|
||||||
|
<head>
|
||||||
|
<meta http-equiv=Content-Type content="text/html; charset=gb2312">
|
||||||
|
<meta name=Generator content="Microsoft Word 15 (filtered)">
|
||||||
|
<title>线缆销售报价单调价因子值L帮助</title>
|
||||||
|
<style>
|
||||||
|
<!--
|
||||||
|
/* Font Definitions */
|
||||||
|
@font-face
|
||||||
|
{font-family:宋体;
|
||||||
|
panose-1:2 1 6 0 3 1 1 1 1 1;}
|
||||||
|
@font-face
|
||||||
|
{font-family:"Cambria Math";
|
||||||
|
panose-1:2 4 5 3 5 4 6 3 2 4;}
|
||||||
|
@font-face
|
||||||
|
{font-family:"等线 Light";
|
||||||
|
panose-1:2 1 6 0 3 1 1 1 1 1;}
|
||||||
|
@font-face
|
||||||
|
{font-family:"\@宋体";
|
||||||
|
panose-1:2 1 6 0 3 1 1 1 1 1;}
|
||||||
|
@font-face
|
||||||
|
{font-family:"\@等线 Light";}
|
||||||
|
/* Style Definitions */
|
||||||
|
p.MsoNormal, li.MsoNormal, div.MsoNormal
|
||||||
|
{margin:0cm;
|
||||||
|
margin-bottom:.0001pt;
|
||||||
|
text-align:justify;
|
||||||
|
text-justify:inter-ideograph;
|
||||||
|
font-size:9.0pt;
|
||||||
|
font-family:宋体;}
|
||||||
|
h2
|
||||||
|
{mso-style-link:"标题 2 字符";
|
||||||
|
margin:0cm;
|
||||||
|
margin-bottom:.0001pt;
|
||||||
|
text-align:justify;
|
||||||
|
text-justify:inter-ideograph;
|
||||||
|
page-break-after:avoid;
|
||||||
|
font-size:10.5pt;
|
||||||
|
font-family:"Arial",sans-serif;
|
||||||
|
color:blue;}
|
||||||
|
h3
|
||||||
|
{mso-style-link:"标题 3 字符";
|
||||||
|
margin:0cm;
|
||||||
|
margin-bottom:.0001pt;
|
||||||
|
text-align:justify;
|
||||||
|
text-justify:inter-ideograph;
|
||||||
|
page-break-after:avoid;
|
||||||
|
font-size:9.0pt;
|
||||||
|
font-family:宋体;}
|
||||||
|
p.MsoHeader, li.MsoHeader, div.MsoHeader
|
||||||
|
{mso-style-link:"页眉 字符";
|
||||||
|
margin:0cm;
|
||||||
|
margin-bottom:.0001pt;
|
||||||
|
text-align:center;
|
||||||
|
layout-grid-mode:char;
|
||||||
|
font-size:9.0pt;
|
||||||
|
font-family:宋体;}
|
||||||
|
p.MsoFooter, li.MsoFooter, div.MsoFooter
|
||||||
|
{mso-style-link:"页脚 字符";
|
||||||
|
margin:0cm;
|
||||||
|
margin-bottom:.0001pt;
|
||||||
|
layout-grid-mode:char;
|
||||||
|
font-size:9.0pt;
|
||||||
|
font-family:宋体;}
|
||||||
|
a:link, span.MsoHyperlink
|
||||||
|
{color:blue;
|
||||||
|
text-decoration:underline;}
|
||||||
|
a:visited, span.MsoHyperlinkFollowed
|
||||||
|
{color:purple;
|
||||||
|
text-decoration:underline;}
|
||||||
|
span.2
|
||||||
|
{mso-style-name:"标题 2 字符";
|
||||||
|
mso-style-link:"标题 2";
|
||||||
|
font-family:"等线 Light";
|
||||||
|
font-weight:bold;}
|
||||||
|
span.3
|
||||||
|
{mso-style-name:"标题 3 字符";
|
||||||
|
mso-style-link:"标题 3";
|
||||||
|
font-family:宋体;
|
||||||
|
font-weight:bold;}
|
||||||
|
p.msonormal0, li.msonormal0, div.msonormal0
|
||||||
|
{mso-style-name:msonormal;
|
||||||
|
margin-right:0cm;
|
||||||
|
margin-left:0cm;
|
||||||
|
font-size:12.0pt;
|
||||||
|
font-family:宋体;}
|
||||||
|
span.a
|
||||||
|
{mso-style-name:"页眉 字符";
|
||||||
|
mso-style-link:页眉;
|
||||||
|
font-family:宋体;}
|
||||||
|
span.a0
|
||||||
|
{mso-style-name:"页脚 字符";
|
||||||
|
mso-style-link:页脚;
|
||||||
|
font-family:宋体;}
|
||||||
|
p.net2, li.net2, div.net2
|
||||||
|
{mso-style-name:net2;
|
||||||
|
margin:0cm;
|
||||||
|
margin-bottom:.0001pt;
|
||||||
|
text-align:justify;
|
||||||
|
text-justify:inter-ideograph;
|
||||||
|
font-size:9.0pt;
|
||||||
|
font-family:宋体;
|
||||||
|
color:blue;
|
||||||
|
font-weight:bold;}
|
||||||
|
p.net3, li.net3, div.net3
|
||||||
|
{mso-style-name:net3;
|
||||||
|
margin:0cm;
|
||||||
|
margin-bottom:.0001pt;
|
||||||
|
text-align:justify;
|
||||||
|
text-justify:inter-ideograph;
|
||||||
|
font-size:9.0pt;
|
||||||
|
font-family:宋体;
|
||||||
|
font-weight:bold;}
|
||||||
|
p.msochpdefault, li.msochpdefault, div.msochpdefault
|
||||||
|
{mso-style-name:msochpdefault;
|
||||||
|
margin-right:0cm;
|
||||||
|
margin-left:0cm;
|
||||||
|
font-size:10.0pt;
|
||||||
|
font-family:宋体;}
|
||||||
|
span.2char
|
||||||
|
{mso-style-name:2char;
|
||||||
|
font-family:"Arial",sans-serif;
|
||||||
|
color:blue;
|
||||||
|
font-weight:bold;}
|
||||||
|
span.3char
|
||||||
|
{mso-style-name:3char;
|
||||||
|
font-family:宋体;
|
||||||
|
font-weight:bold;}
|
||||||
|
.MsoChpDefault
|
||||||
|
{font-size:10.0pt;}
|
||||||
|
/* Page Definitions */
|
||||||
|
@page WordSection1
|
||||||
|
{size:595.45pt 841.7pt;
|
||||||
|
margin:82.2pt 64.8pt 42.55pt 64.8pt;
|
||||||
|
layout-grid:15.55pt;}
|
||||||
|
div.WordSection1
|
||||||
|
{page:WordSection1;}
|
||||||
|
-->
|
||||||
|
</style>
|
||||||
|
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body lang=ZH-CN link=blue vlink=purple style='text-justify-trim:punctuation'>
|
||||||
|
|
||||||
|
<div class=WordSection1 style='layout-grid:15.55pt'>
|
||||||
|
|
||||||
|
<h2><span lang=EN-US><a href="N_XLXSBJ.HTML"><span lang=EN-US style='font-family:
|
||||||
|
宋体'><span lang=EN-US>▲</span></span></a></span><span lang=EN-US
|
||||||
|
style='font-family:宋体'> </span><span class=MsoHyperlink><span style='font-family:
|
||||||
|
宋体;text-decoration:none'>线缆销售报价单调价因子值<span lang=EN-US>L</span></span></span><span
|
||||||
|
lang=EN-US style='font-family:宋体'> </span><span class=MsoHyperlink><span
|
||||||
|
lang=EN-US><a href="../N_MODEL/N_Base_SingleQuery.html"><span lang=EN-US
|
||||||
|
style='font-family:宋体'><span lang=EN-US>▼</span></span></a></span></span></h2>
|
||||||
|
|
||||||
|
<h3>【用途】</h3>
|
||||||
|
|
||||||
|
<p class=MsoNormal>用于设置调价因素为“<span lang=EN-US>L|</span>按标准加报价数量区间调报价”的报价单调价因子值。</p>
|
||||||
|
|
||||||
|
<h3>【栏目说明】</h3>
|
||||||
|
|
||||||
|
<table class=MsoNormalTable border=0 cellspacing=0 cellpadding=0
|
||||||
|
style='border-collapse:collapse'>
|
||||||
|
<tr>
|
||||||
|
<td valign=top style='padding:0cm 5.4pt 0cm 5.4pt'>
|
||||||
|
<p class=MsoNormal><span style='color:windowtext'>调价表</span></p>
|
||||||
|
</td>
|
||||||
|
<td valign=top style='padding:0cm 5.4pt 0cm 5.4pt'>
|
||||||
|
<p class=MsoNormal><span style='color:windowtext'>选择不同的调价表,设置调价因子值。</span></p>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td valign=top style='padding:0cm 5.4pt 0cm 5.4pt'>
|
||||||
|
<p class=MsoNormal><span style='color:windowtext'>标准</span></p>
|
||||||
|
</td>
|
||||||
|
<td valign=top style='padding:0cm 5.4pt 0cm 5.4pt'>
|
||||||
|
<p class=MsoNormal><span style='color:windowtext'>选择标准。</span></p>
|
||||||
|
</td>
|
||||||
|
</tr> <tr>
|
||||||
|
<td valign=top style='padding:0cm 5.4pt 0cm 5.4pt'>
|
||||||
|
<p class=MsoNormal><span style='color:windowtext'>报价数量始>=</span></p>
|
||||||
|
</td>
|
||||||
|
<td valign=top style='padding:0cm 5.4pt 0cm 5.4pt'>
|
||||||
|
<p class=MsoNormal><span style='color:windowtext'>输入报价数量始的下限。</span></p>
|
||||||
|
</td>
|
||||||
|
</tr> <tr>
|
||||||
|
<td valign=top style='padding:0cm 5.4pt 0cm 5.4pt'>
|
||||||
|
<p class=MsoNormal><span style='color:windowtext'>报价数量始<=</span></p>
|
||||||
|
</td>
|
||||||
|
<td valign=top style='padding:0cm 5.4pt 0cm 5.4pt'>
|
||||||
|
<p class=MsoNormal><span style='color:windowtext'>输入报价数量始的上限。</span></p>
|
||||||
|
</td>
|
||||||
|
</tr> <tr>
|
||||||
|
<td valign=top style='padding:0cm 5.4pt 0cm 5.4pt'>
|
||||||
|
<p class=MsoNormal><span style='color:windowtext'>报价数量止>=</span></p>
|
||||||
|
</td>
|
||||||
|
<td valign=top style='padding:0cm 5.4pt 0cm 5.4pt'>
|
||||||
|
<p class=MsoNormal><span style='color:windowtext'>输入报价数量止的下限。</span></p>
|
||||||
|
</td>
|
||||||
|
</tr> <tr>
|
||||||
|
<td valign=top style='padding:0cm 5.4pt 0cm 5.4pt'>
|
||||||
|
<p class=MsoNormal><span style='color:windowtext'>报价数量止<=</span></p>
|
||||||
|
</td>
|
||||||
|
<td valign=top style='padding:0cm 5.4pt 0cm 5.4pt'>
|
||||||
|
<p class=MsoNormal><span style='color:windowtext'>输入报价数量止的上限。</span></p>
|
||||||
|
</td>
|
||||||
|
</tr></table>
|
||||||
|
|
||||||
|
<p class=MsoNormal><span lang=EN-US> </span></p>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</body>
|
||||||
|
|
||||||
|
</html>
|
||||||
@@ -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 System.Security.Cryptography.X509Certificates;
|
||||||
|
using System.Net.Security;
|
||||||
|
using System.IO;
|
||||||
|
using GThinking.N_MISPRO.Data;
|
||||||
|
using GThinking.N_MISPRO.Utility;
|
||||||
|
using GThinking.N_MISPRO.MISPROAS;
|
||||||
|
using System.Net;
|
||||||
|
using System.Text;
|
||||||
|
using GThinking.N_MISPROAS;
|
||||||
|
|
||||||
|
namespace GThinking.N_XLXSBJ
|
||||||
|
{
|
||||||
|
public class SendFJ
|
||||||
|
{
|
||||||
|
|
||||||
|
public static void UploadFile(string sBJDID)
|
||||||
|
{
|
||||||
|
|
||||||
|
WriteLog("报价单附件发送", "报价单号:" + sBJDID);
|
||||||
|
//BIP必须变量
|
||||||
|
string accessToken = string.Empty;
|
||||||
|
string businessType = "yonbip-scm-scmmp%2BYonSuite";
|
||||||
|
string businessId = string.Empty;
|
||||||
|
bool usePrivateBucket = false;
|
||||||
|
|
||||||
|
string strPath = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "work\\temp\\BJDFJ");//金思维temp目录
|
||||||
|
if (!Directory.Exists(strPath))
|
||||||
|
Directory.CreateDirectory(strPath);
|
||||||
|
|
||||||
|
TDatabase dberp = TContextDatabases.GetDatabase("DBERP");
|
||||||
|
TSQL SQL = new TSQL(dberp);
|
||||||
|
|
||||||
|
SQL.Clear();
|
||||||
|
SQL.Add("select JKZHPZ_TOKEN from JKZHPZ WHERE JKZHPZ_RZZH='BIP' ");
|
||||||
|
DataSet dsBIP = dberp.OpenDataSet(SQL);
|
||||||
|
if (dsBIP.Tables[0].Rows.Count > 0)
|
||||||
|
{
|
||||||
|
accessToken = dsBIP.Tables[0].Rows[0]["JKZHPZ_TOKEN"].ToString().Trim();
|
||||||
|
}
|
||||||
|
WriteLog("报价单附件发送", "accessToken:" + accessToken);
|
||||||
|
if (!String.IsNullOrEmpty(accessToken))
|
||||||
|
{
|
||||||
|
SQL.Clear();
|
||||||
|
SQL.Add("SELECT HLXTDZZ_DFDZZ from HLXTDZZ where HLXTDZZ_DZLXID='12' and HLXTDZZ_DZZ=:pBJDID ");
|
||||||
|
SQL.ParamByName("pBJDID").Value = sBJDID;
|
||||||
|
DataSet dsDZZ = dberp.OpenDataSet(SQL);
|
||||||
|
if (dsDZZ.Tables[0].Rows.Count > 0)
|
||||||
|
{
|
||||||
|
businessId = dsDZZ.Tables[0].Rows[0]["HLXTDZZ_DFDZZ"].ToString().Trim();
|
||||||
|
}
|
||||||
|
WriteLog("报价单附件发送", "businessId:" + businessId);
|
||||||
|
double GRPID = 0;
|
||||||
|
string sWJMC = string.Empty;
|
||||||
|
SQL.Clear();
|
||||||
|
SQL.Add("select distinct convert(char(10),XLXSBJD_DOCGRPID) as WJID, ");
|
||||||
|
SQL.Add(" rtrim(WDWJ_MC)||'.'||WDWJ_KZM as WJMC ");
|
||||||
|
SQL.Add("from WDSL,WDWJ,XLXSBJD ");
|
||||||
|
SQL.Add("where WDSL_WJID=WDWJ_WJID and XLXSBJD_DOCGRPID=WDSL_FZID ");
|
||||||
|
SQL.Add("AND XLXSBJD_BJDID=:pBJDID ");
|
||||||
|
SQL.ParamByName("pBJDID").Value = sBJDID;
|
||||||
|
DataSet ds = dberp.OpenDataSet(SQL);
|
||||||
|
if (ds.Tables[0].Rows.Count > 0)
|
||||||
|
{
|
||||||
|
GRPID = CMISproConvert.StrToFloat(ds.Tables[0].Rows[0]["WJID"].ToString().Trim());
|
||||||
|
sWJMC = ds.Tables[0].Rows[0]["WJMC"].ToString().Trim();
|
||||||
|
}
|
||||||
|
if (GRPID > 0)
|
||||||
|
{
|
||||||
|
DocFileInfo[] arrayWDSX = FileService.GetFilesInfo(GRPID);
|
||||||
|
if (arrayWDSX.Length > 0)
|
||||||
|
{
|
||||||
|
for (int j = 0; j < arrayWDSX.Length; j++)
|
||||||
|
{
|
||||||
|
double WJID = arrayWDSX[j].FileId;
|
||||||
|
string fPath = strPath + "\\" + arrayWDSX[j].FileName;
|
||||||
|
FileService.GetFile(WJID, fPath);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// 遍历下载目录,输出文件路径并删除文件
|
||||||
|
if (Directory.Exists(strPath))
|
||||||
|
{
|
||||||
|
WriteLog("报价单附件发送", "准备发送,文件目录:" + strPath);
|
||||||
|
string[] downloadedFiles = Directory.GetFiles(strPath);
|
||||||
|
foreach (string filePath in downloadedFiles)
|
||||||
|
{
|
||||||
|
WriteLog("报价单附件发送", "文件名及其位置:" + filePath);
|
||||||
|
|
||||||
|
try
|
||||||
|
{
|
||||||
|
// 强制TLS 1.2(.NET 2.0兼容写法)
|
||||||
|
try
|
||||||
|
{
|
||||||
|
ServicePointManager.SecurityProtocol = (SecurityProtocolType)3072;
|
||||||
|
}
|
||||||
|
catch
|
||||||
|
{
|
||||||
|
// 如果系统不支持TLS 1.2,直接抛出异常
|
||||||
|
throw new Exception("当前系统不支持TLS 1.2协议,无法建立安全连接");
|
||||||
|
}
|
||||||
|
// 跳过证书验证(测试环境使用)
|
||||||
|
ServicePointManager.ServerCertificateValidationCallback = delegate(object sender, X509Certificate certificate, X509Chain chain, SslPolicyErrors sslPolicyErrors)
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
};
|
||||||
|
|
||||||
|
// 1. 文件校验
|
||||||
|
string fullRealPath = filePath;
|
||||||
|
if (!File.Exists(fullRealPath))
|
||||||
|
{
|
||||||
|
WriteLog("报价单附件发送", "文件不存在:" + fullRealPath);
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
|
string fileName = Path.GetFileName(fullRealPath);
|
||||||
|
byte[] fileBytes = File.ReadAllBytes(fullRealPath);
|
||||||
|
WriteLog("报价单附件发送", "文件大小:" + fileBytes.Length + " 字节");
|
||||||
|
|
||||||
|
// 2. 拼接Query参数
|
||||||
|
StringBuilder querySb = new StringBuilder();
|
||||||
|
querySb.Append("access_token=");
|
||||||
|
querySb.Append(HttpUtility.UrlEncode(accessToken));
|
||||||
|
querySb.Append("&businessType=");
|
||||||
|
querySb.Append(HttpUtility.UrlEncode(businessType));
|
||||||
|
querySb.Append("&businessId=");
|
||||||
|
querySb.Append(HttpUtility.UrlEncode(businessId));
|
||||||
|
querySb.Append("&usePrivateBucket=");
|
||||||
|
querySb.Append(usePrivateBucket.ToString().ToLower());
|
||||||
|
|
||||||
|
string baseUrl = "https://bip-sit.hnhlxl.cn:9443/iuap-api-gateway/yonbip/uspace/iuap-apcom-file/rest/v1/file";
|
||||||
|
string fullUrl = baseUrl + "?" + querySb.ToString();
|
||||||
|
|
||||||
|
// 3. 构建multipart/form-data请求体(.NET 2.0兼容写法)
|
||||||
|
string boundary = "----YonBipUploadBoundary" + DateTime.Now.Ticks.ToString();
|
||||||
|
MemoryStream ms = new MemoryStream();
|
||||||
|
|
||||||
|
// 写入文件段头部
|
||||||
|
string header = "--" + boundary + "\r\n";
|
||||||
|
header += "Content-Disposition: form-data; name=\"files\"; filename=\"" + fileName + "\"\r\n";
|
||||||
|
header += "Content-Type: application/octet-stream\r\n";
|
||||||
|
header += "\r\n";
|
||||||
|
byte[] headerBytes = Encoding.UTF8.GetBytes(header);
|
||||||
|
ms.Write(headerBytes, 0, headerBytes.Length);
|
||||||
|
|
||||||
|
// 写入文件二进制
|
||||||
|
ms.Write(fileBytes, 0, fileBytes.Length);
|
||||||
|
|
||||||
|
// 写入结束分隔符
|
||||||
|
string footer = "\r\n--" + boundary + "--\r\n";
|
||||||
|
byte[] footerBytes = Encoding.UTF8.GetBytes(footer);
|
||||||
|
ms.Write(footerBytes, 0, footerBytes.Length);
|
||||||
|
|
||||||
|
byte[] postData = ms.ToArray();
|
||||||
|
ms.Close();
|
||||||
|
|
||||||
|
// 4. 发送请求
|
||||||
|
HttpWebRequest request = (HttpWebRequest)WebRequest.Create(fullUrl);
|
||||||
|
request.Method = "POST";
|
||||||
|
request.ContentType = "multipart/form-data; boundary=" + boundary;
|
||||||
|
request.ContentLength = postData.Length;
|
||||||
|
request.Timeout = 60000; // 60秒超时
|
||||||
|
|
||||||
|
// 写入请求体
|
||||||
|
using (Stream requestStream = request.GetRequestStream())
|
||||||
|
{
|
||||||
|
requestStream.Write(postData, 0, postData.Length);
|
||||||
|
}
|
||||||
|
|
||||||
|
// 获取响应
|
||||||
|
using (HttpWebResponse response = (HttpWebResponse)request.GetResponse())
|
||||||
|
{
|
||||||
|
using (Stream responseStream = response.GetResponseStream())
|
||||||
|
{
|
||||||
|
byte[] buffer = new byte[4096];
|
||||||
|
StringBuilder resultBuilder = new StringBuilder();
|
||||||
|
int bytesRead = 0;
|
||||||
|
do
|
||||||
|
{
|
||||||
|
bytesRead = responseStream.Read(buffer, 0, buffer.Length);
|
||||||
|
if (bytesRead > 0)
|
||||||
|
{
|
||||||
|
resultBuilder.Append(Encoding.UTF8.GetString(buffer, 0, bytesRead));
|
||||||
|
}
|
||||||
|
} while (bytesRead > 0);
|
||||||
|
|
||||||
|
string resultJson = resultBuilder.ToString();
|
||||||
|
WriteLog("报价单附件发送", "上传成功,响应:" + resultJson);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// 上传成功后删除文件
|
||||||
|
File.Delete(filePath);
|
||||||
|
WriteLog("报价单附件发送", "文件已删除:" + filePath);
|
||||||
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
WriteLog("报价单附件发送", "发送失败,文件名:" + filePath + ",错误:" + ex.Message);
|
||||||
|
if (ex.InnerException != null)
|
||||||
|
{
|
||||||
|
WriteLog("报价单附件发送", "内部错误:" + ex.InnerException.Message);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
#region 低版本兼容:证书校验静态方法(不能用Lambda)
|
||||||
|
/// <summary>
|
||||||
|
/// 测试环境忽略SSL证书校验,兼容.NET3.5/4.0
|
||||||
|
/// </summary>
|
||||||
|
private static bool CheckServerCertificate(object sender, X509Certificate certificate, X509Chain chain, SslPolicyErrors sslPolicyErrors)
|
||||||
|
{
|
||||||
|
// SIT测试环境直接返回true跳过证书校验;生产删除此段,自行判断sslPolicyErrors
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
#region 记录日志
|
||||||
|
|
||||||
|
private static void WriteLog(string sYWName, string sLogText)
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
if (!Directory.Exists(AppConfig.WorkPath))
|
||||||
|
{
|
||||||
|
DirectoryInfo dirInfo = Directory.CreateDirectory(AppConfig.WorkPath);
|
||||||
|
}
|
||||||
|
string filename = WorkDirectory.CombineLogPath(sYWName + "_" + DateTime.Now.ToString("yyyyMM") + ".log");
|
||||||
|
if (!File.Exists(filename))
|
||||||
|
{
|
||||||
|
using (File.Create(filename))
|
||||||
|
{ }
|
||||||
|
}
|
||||||
|
|
||||||
|
File.AppendAllText(filename, DateTime.Now.ToString() + sLogText + "\r\n");
|
||||||
|
|
||||||
|
}
|
||||||
|
catch { };
|
||||||
|
}
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,408 @@
|
|||||||
|
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;
|
||||||
|
using GThinking.N_MISPRO.Utility;
|
||||||
|
using GThinking.N_MISPRO.Data;
|
||||||
|
using GThinking.N_MISPRO.TableCache;
|
||||||
|
using GThinking.N_PUBLIC2;
|
||||||
|
|
||||||
|
|
||||||
|
namespace GThinking.N_XLXSBJ
|
||||||
|
{
|
||||||
|
[TableMap(DB = "DBERP", DbTableName = "TBYSB", Umid = 100860168, IsWorkFlow = true, IsAttach = true,
|
||||||
|
DOCGRPIDFieldName = "TBYSB_DOCGRPID", DOCFJSFieldName = "TBYSB_FJS",
|
||||||
|
QuerySelSql = "",
|
||||||
|
DefaultFilter = " ",
|
||||||
|
EntitySelSql = "select TBYSB_SPDH, TBYSB_FQR, TBYSB_SYDWID, TBYSB_XMID, TBYSB_TBJE, TBYSB_XMMC, TBYSB_TBRQ, TBYSB_FJS, \r\n"
|
||||||
|
+ " TBYSB_DOCGRPID, TBYSB_WFID, TBYSB_WFINST, TBYSB_WPID, TBYSB_WFAWAITER, TBYSB_WFHANDLER, TBYSB_ACTNAME, TBYSB_ZBF, \r\n"
|
||||||
|
+ " TBYSB_TBDZ, TBYSB_TBJZRQ, TBYSB_XJYQ, TBYSB_BSJFXS, TBYSB_TBBZJJE, TBYSB_TBBZJXS, TBYSB_ZWFKSJ, TBYSB_BMID,TBYSB_TBZT, \r\n"
|
||||||
|
+ " TBYSB_SQDB, TBYSB_BSJFSJ, TBYSB_GDFKTJ, TBYSB_CNFKTJ, TBYSB_QTYQ, TBYSB_SFXYCADZYS, TBYSB_JSPCNR, \r\n"
|
||||||
|
+ " TBYSB_WHR,TBYSB_WHRID,TBYSB_WHSJ,TBYSB_GKFZR \r\n"
|
||||||
|
+ " from TBYSB where TBYSB_SPDH=:TBYSB_SPDH",
|
||||||
|
|
||||||
|
UpdateSql = "update TBYSB set \r\n"
|
||||||
|
+ "TBYSB_FQR=:TBYSB_FQR, \r\n"
|
||||||
|
+ "TBYSB_SYDWID=:TBYSB_SYDWID, \r\n"
|
||||||
|
+ "TBYSB_XMID=:TBYSB_XMID, \r\n"
|
||||||
|
+ "TBYSB_TBJE=:TBYSB_TBJE, \r\n"
|
||||||
|
+ "TBYSB_XMMC=:TBYSB_XMMC, \r\n"
|
||||||
|
+ "TBYSB_TBRQ=:TBYSB_TBRQ, \r\n"
|
||||||
|
+ "TBYSB_FJS=:TBYSB_FJS, \r\n"
|
||||||
|
+ "TBYSB_TBDZ=:TBYSB_TBDZ, \r\n"
|
||||||
|
+ "TBYSB_DOCGRPID=:TBYSB_DOCGRPID, \r\n"
|
||||||
|
+ "TBYSB_ZBF=:TBYSB_ZBF, \r\n"
|
||||||
|
+ "TBYSB_TBJZRQ=:TBYSB_TBJZRQ, \r\n"
|
||||||
|
+ "TBYSB_XJYQ=:TBYSB_XJYQ, \r\n"
|
||||||
|
+ "TBYSB_BSJFXS=:TBYSB_BSJFXS, \r\n"
|
||||||
|
+ "TBYSB_TBBZJJE=:TBYSB_TBBZJJE, \r\n"
|
||||||
|
+ "TBYSB_TBBZJXS=:TBYSB_TBBZJXS, \r\n"
|
||||||
|
+ "TBYSB_ZWFKSJ=:TBYSB_ZWFKSJ, \r\n"
|
||||||
|
+ "TBYSB_BMID=:TBYSB_BMID, \r\n"
|
||||||
|
+ "TBYSB_TBZT=:TBYSB_TBZT, \r\n"
|
||||||
|
+ "TBYSB_SQDB=:TBYSB_SQDB, \r\n"
|
||||||
|
+ "TBYSB_BSJFSJ=:TBYSB_BSJFSJ, \r\n"
|
||||||
|
+ "TBYSB_GDFKTJ=:TBYSB_GDFKTJ, \r\n"
|
||||||
|
+ "TBYSB_CNFKTJ=:TBYSB_CNFKTJ, \r\n"
|
||||||
|
+ "TBYSB_QTYQ=:TBYSB_QTYQ, \r\n"
|
||||||
|
+ "TBYSB_SFXYCADZYS=:TBYSB_SFXYCADZYS,\r\n"
|
||||||
|
+ "TBYSB_JSPCNR=:TBYSB_JSPCNR, \r\n"
|
||||||
|
+ "TBYSB_WHR=:TBYSB_WHR, \r\n"
|
||||||
|
+ "TBYSB_WHRID=:TBYSB_WHRID, \r\n"
|
||||||
|
+ "TBYSB_WHSJ=:TBYSB_WHSJ, \r\n"
|
||||||
|
+ "TBYSB_GKFZR=:TBYSB_GKFZR \r\n"
|
||||||
|
+ " where TBYSB_SPDH=:TBYSB_SPDH ",
|
||||||
|
|
||||||
|
InsertSql = "insert into TBYSB( TBYSB_SPDH, TBYSB_FQR, TBYSB_SYDWID, TBYSB_XMID, TBYSB_TBJE, TBYSB_XMMC, TBYSB_TBRQ, TBYSB_FJS, \r\n"
|
||||||
|
+ " TBYSB_DOCGRPID, TBYSB_ZBF, \r\n"
|
||||||
|
+ " TBYSB_TBDZ, TBYSB_TBJZRQ, TBYSB_XJYQ, TBYSB_BSJFXS, TBYSB_TBBZJJE, TBYSB_TBBZJXS, TBYSB_ZWFKSJ, TBYSB_BMID,TBYSB_TBZT, \r\n"
|
||||||
|
+ " TBYSB_SQDB, TBYSB_BSJFSJ, TBYSB_GDFKTJ, TBYSB_CNFKTJ, TBYSB_QTYQ, TBYSB_SFXYCADZYS, TBYSB_JSPCNR, \r\n"
|
||||||
|
+ " TBYSB_WHR,TBYSB_WHRID,TBYSB_WHSJ,TBYSB_GKFZR)\r\n"
|
||||||
|
|
||||||
|
|
||||||
|
+ " values(:TBYSB_SPDH, :TBYSB_FQR, :TBYSB_SYDWID, :TBYSB_XMID, :TBYSB_TBJE, :TBYSB_XMMC, :TBYSB_TBRQ, :TBYSB_FJS, \r\n"
|
||||||
|
+ " :TBYSB_DOCGRPID, :TBYSB_ZBF, \r\n"
|
||||||
|
+ " :TBYSB_TBDZ, :TBYSB_TBJZRQ, :TBYSB_XJYQ, :TBYSB_BSJFXS, :TBYSB_TBBZJJE, :TBYSB_TBBZJXS, :TBYSB_ZWFKSJ, :TBYSB_BMID, :TBYSB_TBZT, \r\n"
|
||||||
|
+ " :TBYSB_SQDB, :TBYSB_BSJFSJ, :TBYSB_GDFKTJ, :TBYSB_CNFKTJ, :TBYSB_QTYQ, :TBYSB_SFXYCADZYS, :TBYSB_JSPCNR, \r\n"
|
||||||
|
+ " :TBYSB_WHR, :TBYSB_WHRID, :TBYSB_WHSJ, :TBYSB_GKFZR )",
|
||||||
|
|
||||||
|
DeleteSql = "delete from TBYSB where TBYSB_SPDH=:TBYSB_SPDH ")]
|
||||||
|
|
||||||
|
public class TBYS : EntityManager
|
||||||
|
{
|
||||||
|
#region 字段级映射
|
||||||
|
|
||||||
|
private string _TBYSB_SPDH;
|
||||||
|
[ColumnMap(DbField = "TBYSB_SPDH", CtrlName = "txtSPDH", DbTitle = "审批单号", Type = FieldType.C, DefaultValue = "",
|
||||||
|
IsAllowNull = true, IsKey = true, Length = 20)]
|
||||||
|
|
||||||
|
public string TBYSB_SPDH
|
||||||
|
{
|
||||||
|
get { return _TBYSB_SPDH; }
|
||||||
|
set { _TBYSB_SPDH = value; }
|
||||||
|
}
|
||||||
|
|
||||||
|
private string _TBYSB_FQR;
|
||||||
|
[ColumnMap(DbField = "TBYSB_FQR", CtrlName = "txtFQR", DbTitle = "发起人", Type = FieldType.C, DefaultValue = "",
|
||||||
|
IsAllowNull = true, IsKey = false, Length = 30)]
|
||||||
|
public string TBYSB_FQR
|
||||||
|
{
|
||||||
|
get { return _TBYSB_FQR; }
|
||||||
|
set { _TBYSB_FQR = value; }
|
||||||
|
}
|
||||||
|
|
||||||
|
private string _TBYSB_SYDWID;
|
||||||
|
[ColumnMap(DbField = "TBYSB_SYDWID", CtrlName = "cbxSYDWID", DbTitle = "使用单位ID", Type = FieldType.CBX, DefaultValue = "",
|
||||||
|
IsAllowNull = true, IsKey = false, Length = 4)]
|
||||||
|
public string TBYSB_SYDWID
|
||||||
|
{
|
||||||
|
get { return _TBYSB_SYDWID; }
|
||||||
|
set { _TBYSB_SYDWID = value; }
|
||||||
|
}
|
||||||
|
|
||||||
|
private string _TBYSB_XMID;
|
||||||
|
[ColumnMap(DbField = "TBYSB_XMID", CtrlName = "txtXMID", DbTitle = "项目ID", Type = FieldType.C, DefaultValue = "",
|
||||||
|
IsAllowNull = true, IsKey = false, Length = 10)]
|
||||||
|
public string TBYSB_XMID
|
||||||
|
{
|
||||||
|
get { return _TBYSB_XMID; }
|
||||||
|
set { _TBYSB_XMID = value; }
|
||||||
|
}
|
||||||
|
|
||||||
|
private decimal _TBYSB_TBJE;
|
||||||
|
[ColumnMap(DbField = "TBYSB_TBJE", CtrlName = "txtTBJE", DbTitle = "投标金额", Type = FieldType.F, DefaultValue = "",
|
||||||
|
IsAllowNull = true, IsKey = false, Length = 0)]
|
||||||
|
public decimal TBYSB_TBJE
|
||||||
|
{
|
||||||
|
get { return _TBYSB_TBJE; }
|
||||||
|
set { _TBYSB_TBJE = value; }
|
||||||
|
}
|
||||||
|
|
||||||
|
private string _TBYSB_XMMC;
|
||||||
|
[ColumnMap(DbField = "TBYSB_XMMC", CtrlName = "txtXMMC", DbTitle = "项目名称", Type = FieldType.C, DefaultValue = "",
|
||||||
|
IsAllowNull = true, IsKey = false, Length = 250)]
|
||||||
|
public string TBYSB_XMMC
|
||||||
|
{
|
||||||
|
get { return _TBYSB_XMMC; }
|
||||||
|
set { _TBYSB_XMMC = value; }
|
||||||
|
}
|
||||||
|
|
||||||
|
private string _TBYSB_TBRQ;
|
||||||
|
[ColumnMap(DbField = "TBYSB_TBRQ", CtrlName = "datTBRQ", DbTitle = "投标日期", Type = FieldType.D, DefaultValue = "",
|
||||||
|
IsAllowNull = true, IsKey = false, Length = 23)]
|
||||||
|
public string TBYSB_TBRQ
|
||||||
|
{
|
||||||
|
get { return _TBYSB_TBRQ; }
|
||||||
|
set { _TBYSB_TBRQ = value; }
|
||||||
|
}
|
||||||
|
|
||||||
|
private decimal _TBYSB_FJS;
|
||||||
|
[ColumnMap(DbField = "TBYSB_FJS", CtrlName = "txtFJS", DbTitle = "附件数", Type = FieldType.F, DefaultValue = "",
|
||||||
|
IsAllowNull = true, IsKey = false, Length = 8)]
|
||||||
|
public decimal TBYSB_FJS
|
||||||
|
{
|
||||||
|
get { return _TBYSB_FJS; }
|
||||||
|
set { _TBYSB_FJS = value; }
|
||||||
|
}
|
||||||
|
|
||||||
|
private decimal _TBYSB_DOCGRPID;
|
||||||
|
[ColumnMap(DbField = "TBYSB_DOCGRPID", DbTitle = "文档分组号", CtrlName = "txtDOCGRPID", Type = FieldType.HiddenField, DefaultValue = "",
|
||||||
|
IsAllowNull = true, IsKey = false, Length = 8)]
|
||||||
|
public decimal TBYSB_DOCGRPID
|
||||||
|
{
|
||||||
|
get { return _TBYSB_DOCGRPID; }
|
||||||
|
set { _TBYSB_DOCGRPID = value; }
|
||||||
|
}
|
||||||
|
|
||||||
|
private string _TBYSB_WFID;
|
||||||
|
[ColumnMap(DbField = "TBYSB_WFID", CtrlName = "txtWFID", DbTitle = "工作流号", Type = FieldType.HiddenField, DefaultValue = "",
|
||||||
|
IsAllowNull = true, IsKey = false, Length = 10)]
|
||||||
|
public string TBYSB_WFID
|
||||||
|
{
|
||||||
|
get { return _TBYSB_WFID; }
|
||||||
|
set { _TBYSB_WFID = value; }
|
||||||
|
}
|
||||||
|
|
||||||
|
private decimal _TBYSB_WFINST;
|
||||||
|
[ColumnMap(DbField = "TBYSB_WFINST", CtrlName = "txtWFINST", DbTitle = "工作流实例号", Type = FieldType.HiddenField, DefaultValue = "",
|
||||||
|
IsAllowNull = true, IsKey = false, Length = 8)]
|
||||||
|
public decimal TBYSB_WFINST
|
||||||
|
{
|
||||||
|
get { return _TBYSB_WFINST; }
|
||||||
|
set { _TBYSB_WFINST = value; }
|
||||||
|
}
|
||||||
|
|
||||||
|
private string _TBYSB_WPID;
|
||||||
|
[ColumnMap(DbField = "TBYSB_WPID", CtrlName = "txtWPID", DbTitle = "流程状态", Type = FieldType.HiddenField, DefaultValue = "",
|
||||||
|
IsAllowNull = true, IsKey = false, Length = 4)]
|
||||||
|
public string TBYSB_WPID
|
||||||
|
{
|
||||||
|
get { return _TBYSB_WPID; }
|
||||||
|
set { _TBYSB_WPID = value; }
|
||||||
|
}
|
||||||
|
|
||||||
|
private string _TBYSB_WFAWAITER;
|
||||||
|
[ColumnMap(DbField = "TBYSB_WFAWAITER", CtrlName = "txtAWAITER", DbTitle = "待处理人", Type = FieldType.HiddenField, DefaultValue = "",
|
||||||
|
IsAllowNull = true, IsKey = false, Length = 250)]
|
||||||
|
public string TBYSB_WFAWAITER
|
||||||
|
{
|
||||||
|
get { return _TBYSB_WFAWAITER; }
|
||||||
|
set { _TBYSB_WFAWAITER = value; }
|
||||||
|
}
|
||||||
|
|
||||||
|
private string _TBYSB_WFHANDLER;
|
||||||
|
[ColumnMap(DbField = "TBYSB_WFHANDLER", CtrlName = "txtHANDLER", DbTitle = "已处理人", Type = FieldType.HiddenField, DefaultValue = "",
|
||||||
|
IsAllowNull = true, IsKey = false, Length = 250)]
|
||||||
|
public string TBYSB_WFHANDLER
|
||||||
|
{
|
||||||
|
get { return _TBYSB_WFHANDLER; }
|
||||||
|
set { _TBYSB_WFHANDLER = value; }
|
||||||
|
}
|
||||||
|
|
||||||
|
private string _TBYSB_ACTNAME;
|
||||||
|
[ColumnMap(DbField = "TBYSB_ACTNAME", CtrlName = "txtACTNAME", DbTitle = "ACTNAME", Type = FieldType.HiddenField, DefaultValue = "",
|
||||||
|
IsAllowNull = true, IsKey = false, Length = 10)]
|
||||||
|
public string TBYSB_ACTNAME
|
||||||
|
{
|
||||||
|
get { return _TBYSB_ACTNAME; }
|
||||||
|
set { _TBYSB_ACTNAME = value; }
|
||||||
|
}
|
||||||
|
|
||||||
|
private string _TBYSB_ZBF;
|
||||||
|
[ColumnMap(DbField = "TBYSB_ZBF", CtrlName = "txtZBF", DbTitle = "招标方", Type = FieldType.C, DefaultValue = "",
|
||||||
|
IsAllowNull = true, IsKey = false, Length = 120)]
|
||||||
|
public string TBYSB_ZBF
|
||||||
|
{
|
||||||
|
get { return _TBYSB_ZBF; }
|
||||||
|
set { _TBYSB_ZBF = value; }
|
||||||
|
}
|
||||||
|
|
||||||
|
private string _TBYSB_TBDZ;
|
||||||
|
[ColumnMap(DbField = "TBYSB_TBDZ", CtrlName = "txtTBDZ", DbTitle = "投标地址", Type = FieldType.C, DefaultValue = "",
|
||||||
|
IsAllowNull = true, IsKey = false, Length = 250)]
|
||||||
|
public string TBYSB_TBDZ
|
||||||
|
{
|
||||||
|
get { return _TBYSB_TBDZ; }
|
||||||
|
set { _TBYSB_TBDZ = value; }
|
||||||
|
}
|
||||||
|
|
||||||
|
private string _TBYSB_TBJZRQ;
|
||||||
|
[ColumnMap(DbField = "TBYSB_TBJZRQ", CtrlName = "datTBJZRQ", DbTitle = "投标截止日期", Type = FieldType.D, DefaultValue = "",
|
||||||
|
IsAllowNull = true, IsKey = false, Length = 23)]
|
||||||
|
public string TBYSB_TBJZRQ
|
||||||
|
{
|
||||||
|
get { return _TBYSB_TBJZRQ; }
|
||||||
|
set { _TBYSB_TBJZRQ = value; }
|
||||||
|
}
|
||||||
|
|
||||||
|
private string _TBYSB_XJYQ;
|
||||||
|
[ColumnMap(DbField = "TBYSB_XJYQ", CtrlName = "txtXJYQ", DbTitle = "限价要求", Type = FieldType.C, DefaultValue = "",
|
||||||
|
IsAllowNull = true, IsKey = false, Length = 250)]
|
||||||
|
public string TBYSB_XJYQ
|
||||||
|
{
|
||||||
|
get { return _TBYSB_XJYQ; }
|
||||||
|
set { _TBYSB_XJYQ = value; }
|
||||||
|
}
|
||||||
|
|
||||||
|
private string _TBYSB_BSJFXS;
|
||||||
|
[ColumnMap(DbField = "TBYSB_BSJFXS", CtrlName = "cbxBSJFXS", DbTitle = "标书交付形式", Type = FieldType.CBX, DefaultValue = "",
|
||||||
|
IsAllowNull = true, IsKey = false, Length = 1)]
|
||||||
|
public string TBYSB_BSJFXS
|
||||||
|
{
|
||||||
|
get { return _TBYSB_BSJFXS; }
|
||||||
|
set { _TBYSB_BSJFXS = value; }
|
||||||
|
}
|
||||||
|
|
||||||
|
private decimal _TBYSB_TBBZJJE;
|
||||||
|
[ColumnMap(DbField = "TBYSB_TBBZJJE", CtrlName = "txtTBBZJJE", DbTitle = "投标保证金金额", Type = FieldType.F, DefaultValue = "",
|
||||||
|
IsAllowNull = false, IsKey = false, Length = 30)]
|
||||||
|
public decimal TBYSB_TBBZJJE
|
||||||
|
{
|
||||||
|
get { return _TBYSB_TBBZJJE; }
|
||||||
|
set { _TBYSB_TBBZJJE = value; }
|
||||||
|
}
|
||||||
|
|
||||||
|
private string _TBYSB_TBBZJXS;
|
||||||
|
[ColumnMap(DbField = "TBYSB_TBBZJXS", CtrlName = "cbxTBBZJXS", DbTitle = "投标保证金形式", Type = FieldType.CBX, DefaultValue = "",
|
||||||
|
IsAllowNull = true, IsKey = false, Length = 10)]
|
||||||
|
public string TBYSB_TBBZJXS
|
||||||
|
{
|
||||||
|
get { return _TBYSB_TBBZJXS; }
|
||||||
|
set { _TBYSB_TBBZJXS = value; }
|
||||||
|
}
|
||||||
|
|
||||||
|
private DateTime _TBYSB_ZWFKSJ;
|
||||||
|
[ColumnMap(DbField = "TBYSB_ZWFKSJ", CtrlName = "datZWFKSJ", DbTitle = "最晚付款时间", Type = FieldType.D, DefaultValue = "",
|
||||||
|
IsAllowNull = true, IsKey = false, Length = 30)]
|
||||||
|
public DateTime TBYSB_ZWFKSJ
|
||||||
|
{
|
||||||
|
get { return _TBYSB_ZWFKSJ; }
|
||||||
|
set { _TBYSB_ZWFKSJ = value; }
|
||||||
|
}
|
||||||
|
|
||||||
|
private string _TBYSB_BMID;
|
||||||
|
[ColumnMap(DbField = "TBYSB_BMID", CtrlName = "cbxBMID", DbTitle = "部门ID", Type = FieldType.CBX, DefaultValue = "",
|
||||||
|
IsAllowNull = true, IsKey = false, Length = 8)]
|
||||||
|
public string TBYSB_BMID
|
||||||
|
{
|
||||||
|
get { return _TBYSB_BMID; }
|
||||||
|
set { _TBYSB_BMID = value; }
|
||||||
|
}
|
||||||
|
|
||||||
|
private string _TBYSB_TBZT;
|
||||||
|
[ColumnMap(DbField = "TBYSB_TBZT", CtrlName = "txtTBZT", DbTitle = "投标主体", Type = FieldType.C, DefaultValue = "",
|
||||||
|
IsAllowNull = true, IsKey = false, Length = 120)]
|
||||||
|
public string TBYSB_TBZT
|
||||||
|
{
|
||||||
|
get { return _TBYSB_TBZT; }
|
||||||
|
set { _TBYSB_TBZT = value; }
|
||||||
|
}
|
||||||
|
|
||||||
|
private string _TBYSB_SQDB;
|
||||||
|
[ColumnMap(DbField = "TBYSB_SQDB", CtrlName = "txtSQDB", DbTitle = "授权代表", Type = FieldType.C, DefaultValue = "",
|
||||||
|
IsAllowNull = false, IsKey = false, Length = 50)]
|
||||||
|
public string TBYSB_SQDB
|
||||||
|
{
|
||||||
|
get { return _TBYSB_SQDB; }
|
||||||
|
set { _TBYSB_SQDB = value; }
|
||||||
|
}
|
||||||
|
|
||||||
|
private DateTime _TBYSB_BSJFSJ;
|
||||||
|
[ColumnMap(DbField = "TBYSB_BSJFSJ", CtrlName = "datBSJFSJ", DbTitle = "标书交付时间", Type = FieldType.D, DefaultValue = "",
|
||||||
|
IsAllowNull = true, IsKey = false, Length = 30)]
|
||||||
|
public DateTime TBYSB_BSJFSJ
|
||||||
|
{
|
||||||
|
get { return _TBYSB_BSJFSJ; }
|
||||||
|
set { _TBYSB_BSJFSJ = value; }
|
||||||
|
}
|
||||||
|
|
||||||
|
private string _TBYSB_GDFKTJ;
|
||||||
|
[ColumnMap(DbField = "TBYSB_GDFKTJ", CtrlName = "txtGDFKTJ", DbTitle = "规定付款条件", Type = FieldType.C, DefaultValue = "",
|
||||||
|
IsAllowNull = true, IsKey = false, Length = 1000)]
|
||||||
|
public string TBYSB_GDFKTJ
|
||||||
|
{
|
||||||
|
get { return _TBYSB_GDFKTJ; }
|
||||||
|
set { _TBYSB_GDFKTJ = value; }
|
||||||
|
}
|
||||||
|
|
||||||
|
private string _TBYSB_CNFKTJ;
|
||||||
|
[ColumnMap(DbField = "TBYSB_CNFKTJ", CtrlName = "txtCNFKTJ", DbTitle = "承诺付款条件", Type = FieldType.C, DefaultValue = "",
|
||||||
|
IsAllowNull = true, IsKey = false, Length = 1000)]
|
||||||
|
public string TBYSB_CNFKTJ
|
||||||
|
{
|
||||||
|
get { return _TBYSB_CNFKTJ; }
|
||||||
|
set { _TBYSB_CNFKTJ = value; }
|
||||||
|
}
|
||||||
|
|
||||||
|
private string _TBYSB_QTYQ;
|
||||||
|
[ColumnMap(DbField = "TBYSB_QTYQ", CtrlName = "txtQTYQ", DbTitle = "其他要求", Type = FieldType.C, DefaultValue = "",
|
||||||
|
IsAllowNull = true, IsKey = false, Length = 1000)]
|
||||||
|
public string TBYSB_QTYQ
|
||||||
|
{
|
||||||
|
get { return _TBYSB_QTYQ; }
|
||||||
|
set { _TBYSB_QTYQ = value; }
|
||||||
|
}
|
||||||
|
|
||||||
|
private string _TBYSB_SFXYCADZYS;
|
||||||
|
[ColumnMap(DbField = "TBYSB_SFXYCADZYS", CtrlName = "cbxSFXYCADZYS", DbTitle = "是否需要CA电子钥匙", Type = FieldType.CBX, DefaultValue = "",
|
||||||
|
IsAllowNull = false, IsKey = false, Length = 1)]
|
||||||
|
public string TBYSB_SFXYCADZYS
|
||||||
|
{
|
||||||
|
get { return _TBYSB_SFXYCADZYS; }
|
||||||
|
set { _TBYSB_SFXYCADZYS = value; }
|
||||||
|
}
|
||||||
|
|
||||||
|
private string _TBYSB_JSPCNR;
|
||||||
|
[ColumnMap(DbField = "TBYSB_JSPCNR", CtrlName = "txtJSPCNR", DbTitle = "投标文件的付款方式", Type = FieldType.C, DefaultValue = "",
|
||||||
|
IsAllowNull = false, IsKey = false, Length = 1000)]
|
||||||
|
public string TBYSB_JSPCNR
|
||||||
|
{
|
||||||
|
get { return _TBYSB_JSPCNR; }
|
||||||
|
set { _TBYSB_JSPCNR = value; }
|
||||||
|
}
|
||||||
|
|
||||||
|
private string _TBYSB_WHR;
|
||||||
|
[ColumnMap(DbField = "TBYSB_WHR", CtrlName = "txtWHR", DbTitle = "维护人", Type = FieldType.C, DefaultValue = "",
|
||||||
|
IsAllowNull = true, IsKey = false, Length = 30)]
|
||||||
|
public string TBYSB_WHR
|
||||||
|
{
|
||||||
|
get { return _TBYSB_WHR; }
|
||||||
|
set { _TBYSB_WHR = value; }
|
||||||
|
}
|
||||||
|
|
||||||
|
private string _TBYSB_WHRID;
|
||||||
|
[ColumnMap(DbField = "TBYSB_WHRID", CtrlName = "txtWHRID", DbTitle = "维护人ID", Type = FieldType.HiddenField, DefaultValue = "",
|
||||||
|
IsAllowNull = true, IsKey = false, Length = 10)]
|
||||||
|
public string TBYSB_WHRID
|
||||||
|
{
|
||||||
|
get { return _TBYSB_WHRID; }
|
||||||
|
set { _TBYSB_WHRID = value; }
|
||||||
|
}
|
||||||
|
|
||||||
|
private DateTime _TBYSB_WHSJ;
|
||||||
|
[ColumnMap(DbField = "TBYSB_WHSJ", CtrlName = "datWHSJ", DbTitle = "维护时间", Type = FieldType.DT, DefaultValue = "",
|
||||||
|
IsAllowNull = true, IsKey = false, Length = 30)]
|
||||||
|
public DateTime TBYSB_WHSJ
|
||||||
|
{
|
||||||
|
get { return _TBYSB_WHSJ; }
|
||||||
|
set { _TBYSB_WHSJ = value; }
|
||||||
|
}
|
||||||
|
|
||||||
|
private string _TBYSB_GKFZR;
|
||||||
|
[ColumnMap(DbField = "TBYSB_GKFZR", CtrlName = "txtGKFZR", DbTitle = "归口负责人", Type = FieldType.C, DefaultValue = "",
|
||||||
|
IsAllowNull = true, IsKey = false, Length = 120)]
|
||||||
|
public string TBYSB_GKFZR
|
||||||
|
{
|
||||||
|
get { return _TBYSB_GKFZR; }
|
||||||
|
set { _TBYSB_GKFZR = value; }
|
||||||
|
}
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
}
|
||||||
|
}
|
||||||
+219
@@ -0,0 +1,219 @@
|
|||||||
|
<%@ Page Language="C#" MasterPageFile="~/N_MODEL/Page/MasterSingleCard.Master" AutoEventWireup="True" Codebehind="TBYSInfo.aspx.cs"
|
||||||
|
Inherits="GThinking.N_XLXSBJ.TBYSInfo" Title="投标预审" %>
|
||||||
|
<%@ MasterType VirtualPath="~/N_MODEL/Page/MasterSingleCard.Master" %>
|
||||||
|
|
||||||
|
<asp:Content ID="Content1" ContentPlaceHolderID="cphUserToolbar" runat="server">
|
||||||
|
<asp:Table ID="Table1" runat="server" CellPadding="0" CellSpacing="0">
|
||||||
|
<asp:TableRow>
|
||||||
|
<asp:TableCell>
|
||||||
|
<gtc:gtToolButton ID="btnZDFX" Caption="撞单分析" ShowCaption="true" runat="server" Width="70px"
|
||||||
|
Height="19px" OnClick="btnZDFX_Click">
|
||||||
|
</gtc:gtToolButton>
|
||||||
|
</asp:TableCell>
|
||||||
|
</asp:TableRow>
|
||||||
|
</asp:Table>
|
||||||
|
</asp:Content>
|
||||||
|
|
||||||
|
<asp:Content ID="cntForm" ContentPlaceHolderID="CPHForm" runat="server">
|
||||||
|
<table width="100%">
|
||||||
|
<tr style="height:7px"></tr>
|
||||||
|
<tr>
|
||||||
|
<td align="right" style="width:15%">
|
||||||
|
<gtc:gtLabel ID="lblSPDH" runat="server">审批单号:</gtc:gtLabel></td>
|
||||||
|
<td align="left" style="width:30%">
|
||||||
|
<gtc:gtTextBox ID="txtSPDH" runat="server" Enabled="false" Width="125px"></gtc:gtTextBox></td>
|
||||||
|
<td style="width:10%"></td>
|
||||||
|
<td align="right">
|
||||||
|
<gtc:gtLabel ID="lblTBRQ" runat="server">投标日期:</gtc:gtLabel></td>
|
||||||
|
<td align="left">
|
||||||
|
<gtc:gtDateTimeTextBox ID="datTBRQ" runat="server" Width="72px"></gtc:gtDateTimeTextBox></td>
|
||||||
|
</tr>
|
||||||
|
<tr style="height: 8px;" />
|
||||||
|
<tr>
|
||||||
|
<td align="right" style="width:15%">
|
||||||
|
<gtc:gtLabel ID="lblBT" runat="server">标题:</gtc:gtLabel></td>
|
||||||
|
<td align="left" colspan="4">
|
||||||
|
<gtc:gtTextBox ID="txtBT" runat="server" Width="97%"></gtc:gtTextBox>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr style="height: 8px;" />
|
||||||
|
<tr>
|
||||||
|
<td align="right">
|
||||||
|
<gtc:gtLabel ID="lblFQR" runat="server">发起人:</gtc:gtLabel></td>
|
||||||
|
<td align="left">
|
||||||
|
<gtc:gtTextBox ID="txtFQR" runat="server" Enabled="true" Width="72px" OnTextChanged = "txtFQR_OnTextChanged" AutoPostBack = "true"></gtc:gtTextBox></td>
|
||||||
|
<td></td>
|
||||||
|
<td align="right">
|
||||||
|
<gtc:gtLabel ID="lblSYDWID" runat="server">所属单位:</gtc:gtLabel></td>
|
||||||
|
<td align="left">
|
||||||
|
<gtc:gtComboBox ID="cbxSYDWID" runat="server" Enabled="True" Width="90%"></gtc:gtComboBox></td>
|
||||||
|
</tr>
|
||||||
|
<tr style="height: 8px;" />
|
||||||
|
<tr>
|
||||||
|
<td align="right">
|
||||||
|
<gtc:gtLabel ID="lblBMID" runat="server">所属部门:</gtc:gtLabel></td>
|
||||||
|
<td align="left">
|
||||||
|
<gtc:gtComboBox ID="cbxBMID" runat="server" Width="125px"></gtc:gtComboBox></td>
|
||||||
|
<td></td>
|
||||||
|
<td align="right">
|
||||||
|
<gtc:gtLabel ID="lblFJS" runat="server">附件数:</gtc:gtLabel></td>
|
||||||
|
<td align="left">
|
||||||
|
<gtc:gtNumTextBox ID="txtFJS" runat="server" Width="72px" DecimalPlaces="0"></gtc:gtNumTextBox>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr style="height: 8px;" />
|
||||||
|
<tr>
|
||||||
|
<td align="right">
|
||||||
|
<gtc:gtLabel ID="lblXMMC" runat="server">项目名称:</gtc:gtLabel></td>
|
||||||
|
<td align="left" colspan="4">
|
||||||
|
<gtc:gtTextBox ID="txtXMMC" runat="server" Width="97%"></gtc:gtTextBox>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr style="height: 8px;" />
|
||||||
|
<tr>
|
||||||
|
<td align="right">
|
||||||
|
<gtc:gtLabel ID="lblZBF" runat="server">招标方(采购方):</gtc:gtLabel></td>
|
||||||
|
<td align="left" colspan="4">
|
||||||
|
<gtc:gtTextBox ID="txtZBF" runat="server" Width="97%"></gtc:gtTextBox></td>
|
||||||
|
</tr>
|
||||||
|
<tr style="height: 8px;" />
|
||||||
|
<tr>
|
||||||
|
<td align="right">
|
||||||
|
<gtc:gtLabel ID="lblTBDZ" runat="server">投标地址:</gtc:gtLabel></td>
|
||||||
|
<td align="left" colspan="4">
|
||||||
|
<gtc:gtTextBox ID="txtTBDZ" runat="server" Width="97%"></gtc:gtTextBox></td>
|
||||||
|
</tr>
|
||||||
|
<tr style="height: 8px;" />
|
||||||
|
<tr>
|
||||||
|
<td align="right">
|
||||||
|
<gtc:gtLabel ID="lblTBJE" runat="server">投标金额(元):</gtc:gtLabel></td>
|
||||||
|
<td align="left">
|
||||||
|
<gtc:gtNumTextBox ID="txtTBJE" runat="server" Width="72px" DecimalPlaces="2"></gtc:gtNumTextBox></td>
|
||||||
|
<td></td>
|
||||||
|
<td align="right">
|
||||||
|
<gtc:gtLabel ID="lblTBZT" runat="server">投标主体:</gtc:gtLabel></td>
|
||||||
|
<td align="left">
|
||||||
|
<gtc:gtTextBox ID="txtTBZT" runat="server" Width="90%"></gtc:gtTextBox></td>
|
||||||
|
</tr>
|
||||||
|
<tr style="height: 8px;" />
|
||||||
|
<tr>
|
||||||
|
<td align="right">
|
||||||
|
<gtc:gtLabel ID="lblTBJZRQ" runat="server">投标截止日期:</gtc:gtLabel></td>
|
||||||
|
<td align="left">
|
||||||
|
<gtc:gtDateTimeTextBox ID="datTBJZRQ" runat="server" Width="72px"></gtc:gtDateTimeTextBox></td>
|
||||||
|
<td></td>
|
||||||
|
<td align="right">
|
||||||
|
<gtc:gtLabel ID="lblBSJFSJ" runat="server">标书交付时间:</gtc:gtLabel></td>
|
||||||
|
<td align="left">
|
||||||
|
<gtc:gtDateTimeTextBox ID="datBSJFSJ" runat="server"></gtc:gtDateTimeTextBox></td>
|
||||||
|
</tr>
|
||||||
|
<tr style="height: 8px;" />
|
||||||
|
<tr>
|
||||||
|
<td align="right">
|
||||||
|
<gtc:gtLabel ID="lblBSJFXS" runat="server">标书交付形式:</gtc:gtLabel></td>
|
||||||
|
<td align="left">
|
||||||
|
<gtc:gtComboBox ID="cbxBSJFXS" runat="server" Width="90%"></gtc:gtComboBox></td>
|
||||||
|
<td></td>
|
||||||
|
<td align="right">
|
||||||
|
<gtc:gtLabel ID="lblSFXYCADZYS" runat="server">是否需要CA电子钥匙:</gtc:gtLabel></td>
|
||||||
|
<td align="left">
|
||||||
|
<gtc:gtComboBox ID="cbxSFXYCADZYS" runat="server" Width="72px" Tag ="Star"></gtc:gtComboBox></td>
|
||||||
|
</tr>
|
||||||
|
<tr style="height: 8px;" />
|
||||||
|
<tr>
|
||||||
|
<td align="right">
|
||||||
|
<gtc:gtLabel ID="lblTBBZJJE" runat="server">投标保证金金额(元):</gtc:gtLabel></td>
|
||||||
|
<td align="left">
|
||||||
|
<gtc:gtNumTextBox ID="txtTBBZJJE" runat="server" Width="72px" DecimalPlaces="2" Visible ="false"></gtc:gtNumTextBox>
|
||||||
|
<gtc:gtTextBox ID="txtSTRTBBZJJE" runat="server" Width="72px" Tag ="Star"></gtc:gtTextBox></td>
|
||||||
|
<td></td>
|
||||||
|
<td align="right">
|
||||||
|
<gtc:gtLabel ID="lblTBBZJXS" runat="server">投标保证金形式:</gtc:gtLabel></td>
|
||||||
|
<td align="left">
|
||||||
|
<gtc:gtComboBox ID="cbxTBBZJXS" runat="server" Width="72px"></gtc:gtComboBox></td>
|
||||||
|
</tr>
|
||||||
|
<tr style="height: 8px;" />
|
||||||
|
<tr>
|
||||||
|
<td align="right">
|
||||||
|
<gtc:gtLabel ID="lblZWFKSJ" runat="server">最晚付款时间:</gtc:gtLabel></td>
|
||||||
|
<td align="left">
|
||||||
|
<gtc:gtDateTimeTextBox ID="datZWFKSJ" runat="server"></gtc:gtDateTimeTextBox></td>
|
||||||
|
<td></td>
|
||||||
|
<td align="right">
|
||||||
|
<gtc:gtLabel ID="lblSQDB" runat="server">授权代表:</gtc:gtLabel></td>
|
||||||
|
<td align="left">
|
||||||
|
<gtc:gtTextBox ID="txtSQDB" runat="server" Width="90%" Tag ="Star"></gtc:gtTextBox></td>
|
||||||
|
</tr>
|
||||||
|
<tr style="height: 8px;" />
|
||||||
|
<tr>
|
||||||
|
<td align="right">
|
||||||
|
<gtc:gtLabel ID="lblXJYQ" runat="server">限价要求:</gtc:gtLabel></td>
|
||||||
|
<td align="left" colspan="4">
|
||||||
|
<gtc:gtTextBox ID="txtXJYQ" runat="server" Width="97%"></gtc:gtTextBox></td>
|
||||||
|
</tr>
|
||||||
|
<tr style="height: 8px;" />
|
||||||
|
<tr>
|
||||||
|
<td align="right" valign="top">
|
||||||
|
<gtc:gtLabel ID="lblTBWJGDDFKTJ" runat="server">招标文件规定的付款条件:</gtc:gtLabel></td>
|
||||||
|
<td align="left" colspan="4">
|
||||||
|
<gtc:gtTextBox ID="txtGDFKTJ" runat="server" TextMode="MultiLine" Rows="3" Width="97%"></gtc:gtTextBox></td>
|
||||||
|
</tr>
|
||||||
|
<tr style="height: 8px;" />
|
||||||
|
<tr>
|
||||||
|
<td align="right" valign="top">
|
||||||
|
<gtc:gtLabel ID="lblCNFKTJ" runat="server">授权代表承诺的付款条件:</gtc:gtLabel></td>
|
||||||
|
<td align="left" colspan="4">
|
||||||
|
<gtc:gtTextBox ID="txtCNFKTJ" runat="server" TextMode="MultiLine" Rows="3" Width="97%"></gtc:gtTextBox></td>
|
||||||
|
</tr>
|
||||||
|
<tr style="height: 8px;" />
|
||||||
|
<tr>
|
||||||
|
<td align="right" valign="top">
|
||||||
|
<gtc:gtLabel ID="lblJSPCNR" runat="server">投标文件的付款方式:</gtc:gtLabel></td>
|
||||||
|
<td align="left" colspan="4">
|
||||||
|
<gtc:gtTextBox ID="txtJSPCNR" runat="server" TextMode="MultiLine" Rows="3" Width="97%" Tag ="Star"></gtc:gtTextBox></td>
|
||||||
|
</tr>
|
||||||
|
<tr style="height: 8px;" />
|
||||||
|
<tr>
|
||||||
|
<td align="right" valign="top">
|
||||||
|
<gtc:gtLabel ID="lblQTYQ" runat="server">其他要求:</gtc:gtLabel></td>
|
||||||
|
<td align="left" colspan="4">
|
||||||
|
<gtc:gtTextBox ID="txtQTYQ" runat="server" TextMode="MultiLine" Rows="2" Width="97%"></gtc:gtTextBox></td>
|
||||||
|
</tr>
|
||||||
|
<tr style="height: 8px;" />
|
||||||
|
<tr>
|
||||||
|
<td align="right">
|
||||||
|
<gtc:gtLabel ID="lblGKFZR" runat="server">销售服务/大客户/工程项目/营销中心总:</gtc:gtLabel></td>
|
||||||
|
<td align="left" colspan="4">
|
||||||
|
<table border="0" cellpadding="0" cellspacing="0" width="100%">
|
||||||
|
<tr>
|
||||||
|
<td style="width: 90%">
|
||||||
|
<gtc:gtTextBox id="txtGKFZR" runat="server" maxlength="2000" textmode="MultiLine"
|
||||||
|
enabled="True" width="96%" height="36px"></gtc:gtTextBox>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<gtc:gtbutton id="btnXZ" runat="server" onclick="btnXZ_Click" text="选择..." width="48px" />
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</td>
|
||||||
|
|
||||||
|
</tr>
|
||||||
|
<tr style="height: 8px;" />
|
||||||
|
<tr>
|
||||||
|
<td align="right">
|
||||||
|
<gtc:gtLabel ID="lblWHR" runat="server">维护人:</gtc:gtLabel></td>
|
||||||
|
<td align="left">
|
||||||
|
<gtc:gtTextBox ID="txtWHR" runat="server" Enabled="false" Width="72px"></gtc:gtTextBox></td>
|
||||||
|
<td></td>
|
||||||
|
<td align="right">
|
||||||
|
<gtc:gtLabel ID="lblWHSJ" runat="server">维护时间:</gtc:gtLabel></td>
|
||||||
|
<td align="left">
|
||||||
|
<gtc:gtDateTime ID="datWHSJ" runat="server" Enabled="False" Width="142px"></gtc:gtDateTime></td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
<asp:HiddenField ID="txtWHRID" runat="server" />
|
||||||
|
<asp:HiddenField ID="txtWPID" runat="Server" />
|
||||||
|
<asp:HiddenField ID="txtACTNAME" runat="Server" />
|
||||||
|
<asp:HiddenField ID="txtDOCGRPID" runat="Server" />
|
||||||
|
</asp:Content>
|
||||||
@@ -0,0 +1,313 @@
|
|||||||
|
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_MISPRO.Caching;
|
||||||
|
using GThinking.N_WORKFLOW;
|
||||||
|
|
||||||
|
namespace GThinking.N_XLXSBJ
|
||||||
|
{
|
||||||
|
public partial class TBYSInfo : SingleCardBase
|
||||||
|
{
|
||||||
|
TBYS entity = new TBYS();
|
||||||
|
|
||||||
|
#region
|
||||||
|
protected void Page_Load(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
this.UMID = 100860168;
|
||||||
|
this.UMName = "投标预审";
|
||||||
|
this.CurMaster = Master;
|
||||||
|
this.CurEntity = entity;
|
||||||
|
this.PageHeight = 600;
|
||||||
|
this.PageWidth = 750;
|
||||||
|
|
||||||
|
this.Master.EnableAttachBtn = true;
|
||||||
|
|
||||||
|
if (!IsPostBack)
|
||||||
|
{
|
||||||
|
InitControls();
|
||||||
|
}
|
||||||
|
|
||||||
|
base.InitPage();
|
||||||
|
|
||||||
|
this.WorkFlowId = _curWorkFlow.GetWFID("XSBJ_TBYS");
|
||||||
|
}
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
#region
|
||||||
|
protected override void LoadRecord()
|
||||||
|
{
|
||||||
|
if (!IsPostBack)
|
||||||
|
{
|
||||||
|
if (!PageParam.ContainsKey("TBYSB_SPDH"))
|
||||||
|
{
|
||||||
|
this.CurEntity.EntityTable.EntitySelSql = @"select TBYSB_SPDH, TBYSB_FQR, TBYSB_SYDWID, TBYSB_XMID, TBYSB_TBJE, TBYSB_XMMC, TBYSB_TBRQ, TBYSB_FJS,
|
||||||
|
TBYSB_DOCGRPID, TBYSB_WFID, TBYSB_WFINST, TBYSB_WPID, TBYSB_WFAWAITER, TBYSB_WFHANDLER, TBYSB_ACTNAME, TBYSB_ZBF,
|
||||||
|
TBYSB_TBDZ, TBYSB_TBJZRQ, TBYSB_XJYQ, TBYSB_BSJFXS, TBYSB_TBBZJJE, TBYSB_TBBZJXS, TBYSB_ZWFKSJ, TBYSB_BMID,TBYSB_TBZT,
|
||||||
|
TBYSB_SQDB, TBYSB_BSJFSJ, TBYSB_GDFKTJ, TBYSB_CNFKTJ, TBYSB_QTYQ, TBYSB_SFXYCADZYS, TBYSB_JSPCNR,
|
||||||
|
TBYSB_WHR,TBYSB_WHRID,TBYSB_WHSJ,TBYSB_GKFZR
|
||||||
|
from TBYSB where TBYSB_WFID=:TBYSB_WFID and TBYSB_WFINST=:TBYSB_WFINST";
|
||||||
|
this.CurEntity.Param.Add("TBYSB_WFID", PageParam.GetRTrimString("WFID"));
|
||||||
|
this.CurEntity.Param.Add("TBYSB_WFINST", PageParam.GetRTrimString("WFInst"));
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
this.CurEntity.Param.Add("TBYSB_SPDH", PageParam.GetRTrimString("TBYSB_SPDH").ToString().Trim());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
this.CurEntity.Param.Add("TBYSB_SPDH", txtSPDH.Text);
|
||||||
|
}
|
||||||
|
base.LoadRecord();
|
||||||
|
|
||||||
|
// 拼接标题显示
|
||||||
|
string sXMMC = txtXMMC.Text.Trim();
|
||||||
|
string sFQR = txtFQR.Text.Trim();
|
||||||
|
string sTBRQ = datTBRQ.Text.Trim();
|
||||||
|
txtBT.Text = "投标预审表( " + sXMMC + ") -" + sFQR + "-" + sTBRQ;
|
||||||
|
txtSTRTBBZJJE.Text = txtTBBZJJE.Value.ToString().Trim();
|
||||||
|
}
|
||||||
|
protected override void OnNewRecorder()
|
||||||
|
{
|
||||||
|
base.OnNewRecorder();
|
||||||
|
|
||||||
|
cbxSFXYCADZYS.SelectedValue = "";
|
||||||
|
txtSTRTBBZJJE.Text = "";
|
||||||
|
txtSPDH.Text = "";
|
||||||
|
txtWHR.Text = tSession.UserName;
|
||||||
|
txtWHRID.Value = tSession.UserId;
|
||||||
|
datWHSJ.Value = CMISproConvert.ConvertTime(System.DateTime.Now);
|
||||||
|
|
||||||
|
txtFQR.Text = tSession.UserName;
|
||||||
|
datTBRQ.Text = CMISproConvert.ConvertDate(System.DateTime.Today);
|
||||||
|
|
||||||
|
TDatabase dberp = TContextDatabases.GetDatabase("DBERP");
|
||||||
|
string sDW = "";
|
||||||
|
string sBM = "";
|
||||||
|
DataSet ds = dberp.OpenDataSet("select RSRYJBXX_RZBM, RSRYJBXX_SYDWID from RSRYJBXX where RSRYJBXX_RYID = '" + tSession.UserId + "'");
|
||||||
|
if (ds.Tables[0].Rows.Count > 0)
|
||||||
|
{
|
||||||
|
sBM = ds.Tables[0].Rows[0]["RSRYJBXX_RZBM"].ToString().Trim();
|
||||||
|
sDW = ds.Tables[0].Rows[0]["RSRYJBXX_SYDWID"].ToString().Trim();
|
||||||
|
}
|
||||||
|
|
||||||
|
// 重新绑定下拉框并赋值
|
||||||
|
TComboBox.SetComboBox("DBERP", cbxSYDWID, string.Format("select GS_SYDWID,GS_GSMC from GS where GS_SYDWID='{0}' order by GS_SYDWID", sDW), false);
|
||||||
|
cbxSYDWID.SelectedValue = sDW;
|
||||||
|
|
||||||
|
TComboBox.SetComboBox("DBERP", cbxBMID, string.Format(" SELECT BM_BMID,BM_MC FROM BM where BM_BMID='{0}' order by BM_BMID", sBM), false);
|
||||||
|
cbxBMID.SelectedValue = sBM;
|
||||||
|
|
||||||
|
|
||||||
|
cbxBSJFXS.SelectedValue = "";
|
||||||
|
cbxTBBZJXS.SelectedValue = "";
|
||||||
|
}
|
||||||
|
protected override void OnCopyRecorder()
|
||||||
|
{
|
||||||
|
base.OnCopyRecorder();
|
||||||
|
|
||||||
|
txtSPDH.Text = "";
|
||||||
|
txtWHR.Text = tSession.UserName;
|
||||||
|
txtWHRID.Value = tSession.UserId;
|
||||||
|
datWHSJ.Value = CMISproConvert.ConvertTime(System.DateTime.Now);
|
||||||
|
txtFQR.Text = tSession.UserName;
|
||||||
|
datTBRQ.Text = CMISproConvert.ConvertDate(System.DateTime.Today);
|
||||||
|
|
||||||
|
TDatabase dberp = TContextDatabases.GetDatabase("DBERP");
|
||||||
|
string sDW = "";
|
||||||
|
string sBM = "";
|
||||||
|
DataSet ds = dberp.OpenDataSet("select RSRYJBXX_RZBM, RSRYJBXX_SYDWID from RSRYJBXX where RSRYJBXX_RYID = '" + tSession.UserId + "'");
|
||||||
|
if (ds.Tables[0].Rows.Count > 0)
|
||||||
|
{
|
||||||
|
sBM = ds.Tables[0].Rows[0]["RSRYJBXX_RZBM"].ToString().Trim();
|
||||||
|
sDW = ds.Tables[0].Rows[0]["RSRYJBXX_SYDWID"].ToString().Trim();
|
||||||
|
}
|
||||||
|
|
||||||
|
// 重新绑定下拉框并赋值
|
||||||
|
TComboBox.SetComboBox("DBERP", cbxSYDWID, string.Format("select GS_SYDWID,GS_GSMC from GS where GS_SYDWID='{0}' order by GS_SYDWID", sDW), false);
|
||||||
|
cbxSYDWID.SelectedValue = sDW;
|
||||||
|
|
||||||
|
TComboBox.SetComboBox("DBERP", cbxBMID, string.Format(" SELECT BM_BMID,BM_MC FROM BM where BM_BMID='{0}' order by BM_BMID", sBM), false);
|
||||||
|
cbxBMID.SelectedValue = sBM;
|
||||||
|
|
||||||
|
}
|
||||||
|
protected override void SetControlState()
|
||||||
|
{
|
||||||
|
base.SetControlState();
|
||||||
|
txtSPDH.Enabled = false;
|
||||||
|
datWHSJ.Enabled = false;
|
||||||
|
txtWHR.Enabled = false;
|
||||||
|
txtFJS.Enabled = false;
|
||||||
|
|
||||||
|
// 标题只读,不可编辑
|
||||||
|
if (txtBT != null)
|
||||||
|
{
|
||||||
|
txtBT.Enabled = false;
|
||||||
|
}
|
||||||
|
btnZDFX.Enabled = ControlState == TControlState.ctsBrowse;
|
||||||
|
this.Master.EnableAttachBtn = true;
|
||||||
|
}
|
||||||
|
protected override bool Master_BeforeSaveAction(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
txtWHR.Text = tSession.UserName;
|
||||||
|
txtWHRID.Value = tSession.UserId;
|
||||||
|
datWHSJ.Text = CMISproConvert.ConvertTime(System.DateTime.Now);
|
||||||
|
if (!string.IsNullOrEmpty(txtSTRTBBZJJE.Text))
|
||||||
|
{
|
||||||
|
float value;
|
||||||
|
if (!float.TryParse(txtSTRTBBZJJE.Text.Trim(), System.Globalization.NumberStyles.Float,
|
||||||
|
System.Globalization.CultureInfo.InvariantCulture, out value))
|
||||||
|
{
|
||||||
|
ShowMessage("投标保证金金额格式不正确,请输入有效数字!");
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
txtTBBZJJE.Value = NumberUtils.RoundX(value, 2);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
ShowMessage("投标保证金金额不能为空!");
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (ControlState == TControlState.ctsInsert || ControlState == TControlState.ctsCopy)
|
||||||
|
{
|
||||||
|
TDatabase dberp = TContextDatabases.GetDatabase("DBERP");
|
||||||
|
txtSPDH.Text = GetMaxSPDH(dberp);
|
||||||
|
}
|
||||||
|
|
||||||
|
string sXMMC = txtXMMC.Text.Trim();
|
||||||
|
string sFQR = txtFQR.Text.Trim();
|
||||||
|
string sTBRQ = datTBRQ.Text.Trim();
|
||||||
|
txtBT.Text = "投标预审表( " + sXMMC + ") -" + sFQR + "-" + sTBRQ;
|
||||||
|
|
||||||
|
return base.Master_BeforeSaveAction(sender, e);
|
||||||
|
}
|
||||||
|
protected override void BeforeAttach()
|
||||||
|
{
|
||||||
|
attDoc.WorkTableName = "TBYSB";
|
||||||
|
attDoc.UpdCondition = String.Format("TBYSB_SPDH='{0}'", txtSPDH.Text.Trim());
|
||||||
|
attDoc.FJSComponentName = txtFJS.ClientID;
|
||||||
|
base.BeforeAttach();
|
||||||
|
}
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
#region
|
||||||
|
private void InitControls()
|
||||||
|
{
|
||||||
|
cbxBSJFXS.ClearItems();
|
||||||
|
cbxBSJFXS.Items.Add(new ListItem("", ""));
|
||||||
|
cbxBSJFXS.Items.Add(new ListItem("电子文档", "D"));
|
||||||
|
cbxBSJFXS.Items.Add(new ListItem("纸质", "Z"));
|
||||||
|
cbxBSJFXS.Items.Add(new ListItem("光盘", "G"));
|
||||||
|
cbxBSJFXS.ShowValue = false;
|
||||||
|
|
||||||
|
cbxSFXYCADZYS.ClearItems();
|
||||||
|
cbxSFXYCADZYS.Items.Add(new ListItem("是", "Y"));
|
||||||
|
cbxSFXYCADZYS.Items.Add(new ListItem("否", "N"));
|
||||||
|
cbxSFXYCADZYS.ShowValue = false;
|
||||||
|
|
||||||
|
cbxTBBZJXS.ClearItems();
|
||||||
|
cbxTBBZJXS.Items.Add(new ListItem("", ""));
|
||||||
|
cbxTBBZJXS.Items.Add(new ListItem("电汇", "D"));
|
||||||
|
cbxTBBZJXS.Items.Add(new ListItem("保函", "H"));
|
||||||
|
cbxTBBZJXS.Items.Add(new ListItem("保险", "X"));
|
||||||
|
cbxTBBZJXS.Items.Add(new ListItem("其他", "Q"));
|
||||||
|
cbxTBBZJXS.Items.Add(new ListItem("无", "W"));
|
||||||
|
cbxTBBZJXS.ShowValue = false;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
protected override void Master_wfAfterActionEvent(TWorkflow Sender, TWFAction Action, bool ActionIsDone)
|
||||||
|
{
|
||||||
|
base.Master_wfAfterActionEvent(Sender, Action, ActionIsDone);
|
||||||
|
if (!ActionIsDone)
|
||||||
|
return;
|
||||||
|
Sender.dbe.ExecSQL(string.Format("update TBYSB set TBYSB_WFID = '{0}', TBYSB_WPID = '{1}', TBYSB_WFAWAITER= '{2}', TBYSB_WFHANDLER = '{3}', TBYSB_WFINST = {4}, TBYSB_ACTNAME = '{5}' where TBYSB_SPDH = '{6}'",
|
||||||
|
Sender.WFID, Sender.WPID, Sender.Awaiter, Sender.Handler, Sender.WFInst, Sender.GetWFActionName(Action), txtSPDH.Text.ToString().Trim()));
|
||||||
|
//txtWPID.Value = Sender.WPID;
|
||||||
|
}
|
||||||
|
protected void btnXZ_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
N_PUBLIC.TRYXX.OpenSelectRYBMDialog(true, true, false, false, txtWHRID.ClientID, txtWHRID.ClientID, txtGKFZR.ClientID,
|
||||||
|
"", "", "", "", txtGKFZR.ClientID, "", txtWHRID.Value,
|
||||||
|
txtWHRID.Value, "", "", false, true, "", "", btnXZ, "RY");
|
||||||
|
}
|
||||||
|
public string GetMaxSPDH(TDatabase db)
|
||||||
|
{
|
||||||
|
string sQZ = "TBYS" + DateTime.Now.ToString("yyyyMMdd");
|
||||||
|
string sSPDH = "";
|
||||||
|
DataSet ds;
|
||||||
|
|
||||||
|
TSQL sql = new TSQL(db);
|
||||||
|
sql.Clear();
|
||||||
|
sql.Text = "select isnull( max(TBYSB_SPDH), '') as SPDH from TBYSB where TBYSB_SPDH like :TBYSB_SPDH ";
|
||||||
|
sql.ParamByName("TBYSB_SPDH").Value = sQZ + "%";
|
||||||
|
ds = db.OpenDataSet(sql);
|
||||||
|
|
||||||
|
sSPDH = ds.Tables[0].Rows[0]["SPDH"].ToString().Trim();
|
||||||
|
|
||||||
|
try
|
||||||
|
{
|
||||||
|
if (sSPDH.Trim().Equals(""))
|
||||||
|
{
|
||||||
|
sSPDH = sQZ + "0001";
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
string sNum = sSPDH.Substring(sQZ.Length, 4);
|
||||||
|
sSPDH = sQZ + (Convert.ToInt32(sNum) + 1).ToString().PadLeft(4, '0');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
catch
|
||||||
|
{
|
||||||
|
sSPDH = sQZ + "0001";
|
||||||
|
}
|
||||||
|
return sSPDH;
|
||||||
|
}
|
||||||
|
|
||||||
|
protected override void SetComboxItems()
|
||||||
|
{
|
||||||
|
TComboBox.SetComboBox("DBERP", cbxSYDWID, string.Format("select GS_SYDWID,GS_GSMC from GS where 1=1 and GS_TYBZ <> 'Y' order by GS_SYDWID"), true);
|
||||||
|
TComboBox.SetComboBox("DBERP", cbxBMID, string.Format(" SELECT BM_BMID,BM_MC FROM BM where 1=1 AND BM_TYBZ <> 'Y' order by BM_BMID"), true);
|
||||||
|
base.SetComboxItems();
|
||||||
|
}
|
||||||
|
protected void txtFQR_OnTextChanged(object Sender, EventArgs e)
|
||||||
|
{
|
||||||
|
string sFQR = txtFQR.Text.Trim();
|
||||||
|
TDatabase dberp = TContextDatabases.GetDatabase("DBERP");
|
||||||
|
string sDW = "";
|
||||||
|
string sBM = "";
|
||||||
|
DataSet ds = dberp.OpenDataSet("select RSRYJBXX_RZBM, RSRYJBXX_SYDWID from RSRYJBXX where RSRYJBXX_RYMC = '" + sFQR + "'");
|
||||||
|
if (ds.Tables[0].Rows.Count > 0)
|
||||||
|
{
|
||||||
|
sBM = ds.Tables[0].Rows[0]["RSRYJBXX_RZBM"].ToString().Trim();
|
||||||
|
sDW = ds.Tables[0].Rows[0]["RSRYJBXX_SYDWID"].ToString().Trim();
|
||||||
|
}
|
||||||
|
cbxSYDWID.SelectedValue = sDW;
|
||||||
|
cbxBMID.SelectedValue = sBM;
|
||||||
|
}
|
||||||
|
|
||||||
|
protected void btnZDFX_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
TPageParams pageParams = new TPageParams();
|
||||||
|
pageParams.UrlPath = "ZDFXList.aspx";
|
||||||
|
pageParams.AddString("SPDH", txtSPDH.Text.Trim());
|
||||||
|
OpenModuleDialog(100860068, pageParams);
|
||||||
|
}
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
}
|
||||||
|
}
|
||||||
Generated
+610
@@ -0,0 +1,610 @@
|
|||||||
|
//------------------------------------------------------------------------------
|
||||||
|
// <auto-generated>
|
||||||
|
// 此代码由工具生成。
|
||||||
|
// 运行时版本:2.0.50727.9179
|
||||||
|
//
|
||||||
|
// 对此文件的更改可能会导致不正确的行为,并且如果
|
||||||
|
// 重新生成代码,这些更改将会丢失。
|
||||||
|
// </auto-generated>
|
||||||
|
//------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
namespace GThinking.N_XLXSBJ {
|
||||||
|
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// TBYSInfo 类。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的类。
|
||||||
|
/// </remarks>
|
||||||
|
public partial class TBYSInfo {
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Table1 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::System.Web.UI.WebControls.Table Table1;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// btnZDFX 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtToolButton btnZDFX;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// lblSPDH 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtLabel lblSPDH;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtSPDH 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtTextBox txtSPDH;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// lblTBRQ 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtLabel lblTBRQ;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// datTBRQ 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtDateTimeTextBox datTBRQ;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// lblBT 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtLabel lblBT;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtBT 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtTextBox txtBT;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// lblFQR 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtLabel lblFQR;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtFQR 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtTextBox txtFQR;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// lblSYDWID 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtLabel lblSYDWID;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// cbxSYDWID 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtComboBox cbxSYDWID;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// lblBMID 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtLabel lblBMID;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// cbxBMID 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtComboBox cbxBMID;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// lblFJS 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtLabel lblFJS;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtFJS 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtNumTextBox txtFJS;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// lblXMMC 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtLabel lblXMMC;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtXMMC 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtTextBox txtXMMC;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// lblZBF 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtLabel lblZBF;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtZBF 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtTextBox txtZBF;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// lblTBDZ 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtLabel lblTBDZ;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtTBDZ 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtTextBox txtTBDZ;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// lblTBJE 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtLabel lblTBJE;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtTBJE 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtNumTextBox txtTBJE;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// lblTBZT 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtLabel lblTBZT;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtTBZT 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtTextBox txtTBZT;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// lblTBJZRQ 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtLabel lblTBJZRQ;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// datTBJZRQ 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtDateTimeTextBox datTBJZRQ;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// lblBSJFSJ 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtLabel lblBSJFSJ;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// datBSJFSJ 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtDateTimeTextBox datBSJFSJ;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// lblBSJFXS 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtLabel lblBSJFXS;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// cbxBSJFXS 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtComboBox cbxBSJFXS;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// lblSFXYCADZYS 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtLabel lblSFXYCADZYS;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// cbxSFXYCADZYS 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtComboBox cbxSFXYCADZYS;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// lblTBBZJJE 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtLabel lblTBBZJJE;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtTBBZJJE 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtNumTextBox txtTBBZJJE;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtSTRTBBZJJE 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtTextBox txtSTRTBBZJJE;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// lblTBBZJXS 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtLabel lblTBBZJXS;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// cbxTBBZJXS 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtComboBox cbxTBBZJXS;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// lblZWFKSJ 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtLabel lblZWFKSJ;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// datZWFKSJ 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtDateTimeTextBox datZWFKSJ;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// lblSQDB 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtLabel lblSQDB;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtSQDB 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtTextBox txtSQDB;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// lblXJYQ 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtLabel lblXJYQ;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtXJYQ 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtTextBox txtXJYQ;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// lblTBWJGDDFKTJ 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtLabel lblTBWJGDDFKTJ;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtGDFKTJ 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtTextBox txtGDFKTJ;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// lblCNFKTJ 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtLabel lblCNFKTJ;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtCNFKTJ 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtTextBox txtCNFKTJ;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// lblJSPCNR 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtLabel lblJSPCNR;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtJSPCNR 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtTextBox txtJSPCNR;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// lblQTYQ 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtLabel lblQTYQ;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtQTYQ 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtTextBox txtQTYQ;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// lblGKFZR 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtLabel lblGKFZR;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtGKFZR 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtTextBox txtGKFZR;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// btnXZ 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtButton btnXZ;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// lblWHR 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtLabel lblWHR;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtWHR 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtTextBox txtWHR;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// lblWHSJ 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtLabel lblWHSJ;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// datWHSJ 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtDateTime datWHSJ;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtWHRID 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::System.Web.UI.WebControls.HiddenField txtWHRID;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtWPID 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::System.Web.UI.WebControls.HiddenField txtWPID;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtACTNAME 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::System.Web.UI.WebControls.HiddenField txtACTNAME;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtDOCGRPID 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::System.Web.UI.WebControls.HiddenField txtDOCGRPID;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Master 属性。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的属性。
|
||||||
|
/// </remarks>
|
||||||
|
public new GThinking.N_MODEL.Page.MasterSingleCard Master {
|
||||||
|
get {
|
||||||
|
return ((GThinking.N_MODEL.Page.MasterSingleCard)(base.Master));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
+186
@@ -0,0 +1,186 @@
|
|||||||
|
<%@ Page Language="C#" MasterPageFile="~/N_MODEL/Page/MasterSingleGrid.Master" AutoEventWireup="True"
|
||||||
|
Codebehind="TBYSList.aspx.cs" Inherits="GThinking.N_XLXSBJ.TBYSList" 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:gtButton Style="display: none" ID="btnGRWJGRefer" OnClick="btnGRWJGRefer_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="ContentGrid" runat="server" AutoGenerateColumns="False" EnableViewState="false">
|
||||||
|
<FixRowCol TableHeight="100%" TableWidth="100%" />
|
||||||
|
<Columns>
|
||||||
|
<asp:BoundField DataField="TBYSB_WPID" HeaderText="流程状态">
|
||||||
|
<itemstyle width="80px"></itemstyle>
|
||||||
|
<headerstyle width="80px" verticalalign="Middle"></headerstyle>
|
||||||
|
</asp:BoundField>
|
||||||
|
<asp:BoundField DataField="TBYSB_ACTNAME" HeaderText="流转方向">
|
||||||
|
<itemstyle width="80px"></itemstyle>
|
||||||
|
<headerstyle width="80px" verticalalign="Middle"></headerstyle>
|
||||||
|
</asp:BoundField>
|
||||||
|
<asp:BoundField HeaderText="审批单号" DataField="TBYSB_SPDH">
|
||||||
|
<itemstyle width="130px"></itemstyle>
|
||||||
|
<headerstyle width="130px"></headerstyle>
|
||||||
|
</asp:BoundField>
|
||||||
|
<asp:BoundField HeaderText="项目名称" DataField="TBYSB_XMMC">
|
||||||
|
<itemstyle width="150px"></itemstyle>
|
||||||
|
<headerstyle width="150px"></headerstyle>
|
||||||
|
</asp:BoundField>
|
||||||
|
<asp:BoundField HeaderText="发起人" DataField="TBYSB_FQR">
|
||||||
|
<itemstyle width="72px"></itemstyle>
|
||||||
|
<headerstyle width="72px"></headerstyle>
|
||||||
|
</asp:BoundField>
|
||||||
|
<asp:BoundField HeaderText="投标日期" DataField="TBYSB_TBRQ">
|
||||||
|
<itemstyle width="72px"></itemstyle>
|
||||||
|
<headerstyle width="72px"></headerstyle>
|
||||||
|
</asp:BoundField>
|
||||||
|
<asp:BoundField HeaderText="所属单位" DataField="TBYSB_SYDWID">
|
||||||
|
<itemstyle width="150px"></itemstyle>
|
||||||
|
<headerstyle width="150px"></headerstyle>
|
||||||
|
</asp:BoundField>
|
||||||
|
<asp:BoundField HeaderText="所属部门" DataField="TBYSB_BMID">
|
||||||
|
<itemstyle width="150px"></itemstyle>
|
||||||
|
<headerstyle width="150px"></headerstyle>
|
||||||
|
</asp:BoundField>
|
||||||
|
<asp:BoundField HeaderText="招标方" DataField="TBYSB_ZBF">
|
||||||
|
<itemstyle width="150px"></itemstyle>
|
||||||
|
<headerstyle width="150px"></headerstyle>
|
||||||
|
</asp:BoundField>
|
||||||
|
<asp:BoundField HeaderText="投标地址" DataField="TBYSB_TBDZ">
|
||||||
|
<itemstyle width="150px"></itemstyle>
|
||||||
|
<headerstyle width="150px"></headerstyle>
|
||||||
|
</asp:BoundField>
|
||||||
|
<asp:BoundField HeaderText="投标截止日期" DataField="TBYSB_TBJZRQ">
|
||||||
|
<itemstyle width="72px"></itemstyle>
|
||||||
|
<headerstyle width="72px"></headerstyle>
|
||||||
|
</asp:BoundField>
|
||||||
|
<asp:BoundField HeaderText="投标金额" DataField="TBYSB_TBJE">
|
||||||
|
<itemstyle width="72px"></itemstyle>
|
||||||
|
<headerstyle width="72px"></headerstyle>
|
||||||
|
</asp:BoundField>
|
||||||
|
<asp:BoundField HeaderText="限价要求" DataField="TBYSB_XJYQ">
|
||||||
|
<itemstyle width="150px"></itemstyle>
|
||||||
|
<headerstyle width="150px"></headerstyle>
|
||||||
|
</asp:BoundField>
|
||||||
|
<asp:BoundField HeaderText="投标主体" DataField="TBYSB_TBZT">
|
||||||
|
<itemstyle width="150px"></itemstyle>
|
||||||
|
<headerstyle width="150px"></headerstyle>
|
||||||
|
</asp:BoundField>
|
||||||
|
<asp:BoundField HeaderText="授权代表" DataField="TBYSB_SQDB">
|
||||||
|
<itemstyle width="72px"></itemstyle>
|
||||||
|
<headerstyle width="72px"></headerstyle>
|
||||||
|
</asp:BoundField>
|
||||||
|
<asp:BoundField HeaderText="标书交付时间" DataField="TBYSB_BSJFSJ">
|
||||||
|
<itemstyle width="72px"></itemstyle>
|
||||||
|
<headerstyle width="72px"></headerstyle>
|
||||||
|
</asp:BoundField>
|
||||||
|
<asp:BoundField HeaderText="标书交付形式" DataField="TBYSB_BSJFXS">
|
||||||
|
<itemstyle width="100px"></itemstyle>
|
||||||
|
<headerstyle width="100px"></headerstyle>
|
||||||
|
</asp:BoundField>
|
||||||
|
<asp:BoundField HeaderText="投标保证金金额" DataField="TBYSB_TBBZJJE">
|
||||||
|
<itemstyle horizontalalign="Right" width="100px"></itemstyle>
|
||||||
|
<headerstyle width="100px"></headerstyle>
|
||||||
|
</asp:BoundField>
|
||||||
|
<asp:BoundField HeaderText="投标保证金形式" DataField="TBYSB_TBBZJXS">
|
||||||
|
<itemstyle width="100px"></itemstyle>
|
||||||
|
<headerstyle width="100px"></headerstyle>
|
||||||
|
</asp:BoundField>
|
||||||
|
<asp:BoundField HeaderText="最晚付款时间" DataField="TBYSB_ZWFKSJ">
|
||||||
|
<itemstyle width="72px"></itemstyle>
|
||||||
|
<headerstyle width="72px"></headerstyle>
|
||||||
|
</asp:BoundField>
|
||||||
|
<asp:BoundField HeaderText="是否需要CA电子钥匙" DataField="TBYSB_SFXYCADZYS">
|
||||||
|
<itemstyle width="125px"></itemstyle>
|
||||||
|
<headerstyle width="125px"></headerstyle>
|
||||||
|
</asp:BoundField>
|
||||||
|
<asp:BoundField HeaderText="招标文件规定的付款条件" DataField="TBYSB_GDFKTJ">
|
||||||
|
<itemstyle width="150px"></itemstyle>
|
||||||
|
<headerstyle width="150px"></headerstyle>
|
||||||
|
</asp:BoundField>
|
||||||
|
<asp:BoundField HeaderText="附件数" DataField="TBYSB_FJS">
|
||||||
|
<itemstyle horizontalalign="Right" width="80px"></itemstyle>
|
||||||
|
<headerstyle width="80px"></headerstyle>
|
||||||
|
</asp:BoundField>
|
||||||
|
<asp:BoundField HeaderText="待处理人" DataField="TBYSB_WFAWAITER">
|
||||||
|
<itemstyle width="150px"></itemstyle>
|
||||||
|
<headerstyle width="150px"></headerstyle>
|
||||||
|
</asp:BoundField>
|
||||||
|
<asp:BoundField HeaderText="已处理人" DataField="TBYSB_WFHANDLER">
|
||||||
|
<itemstyle width="150px"></itemstyle>
|
||||||
|
<headerstyle width="150px"></headerstyle>
|
||||||
|
</asp:BoundField>
|
||||||
|
<asp:BoundField HeaderText="维护人" DataField="TBYSB_WHR">
|
||||||
|
<itemstyle width="72px"></itemstyle>
|
||||||
|
<headerstyle width="72px"></headerstyle>
|
||||||
|
</asp:BoundField>
|
||||||
|
<asp:BoundField HeaderText="维护时间" DataField="TBYSB_WHSJ">
|
||||||
|
<itemstyle width="125px"></itemstyle>
|
||||||
|
<headerstyle width="125px"></headerstyle>
|
||||||
|
</asp:BoundField>
|
||||||
|
</Columns>
|
||||||
|
<ColumnsEx>
|
||||||
|
<gtc:gtGridView_Column DataField="TBYSB_WPID" ShowHint="true" EditType="etString">
|
||||||
|
</gtc:gtGridView_Column>
|
||||||
|
<gtc:gtGridView_Column DataField="TBYSB_ACTNAME" ShowHint="true" EditType="etString">
|
||||||
|
</gtc:gtGridView_Column>
|
||||||
|
<gtc:gtGridView_Column DataField="TBYSB_SPDH" EditType="etString" ShowHint="true">
|
||||||
|
</gtc:gtGridView_Column>
|
||||||
|
<gtc:gtGridView_Column DataField="TBYSB_XMMC" EditType="etString" ShowHint="true">
|
||||||
|
</gtc:gtGridView_Column>
|
||||||
|
<gtc:gtGridView_Column DataField="TBYSB_FQR" EditType="etString" ShowHint="true">
|
||||||
|
</gtc:gtGridView_Column>
|
||||||
|
<gtc:gtGridView_Column DataField="TBYSB_TBRQ" EditType="etDateTime" DateTimeEditKins="dtDate">
|
||||||
|
</gtc:gtGridView_Column>
|
||||||
|
<gtc:gtGridView_Column DataField="TBYSB_SYDWID" EditType="etString" ShowHint="true">
|
||||||
|
</gtc:gtGridView_Column>
|
||||||
|
<gtc:gtGridView_Column DataField="TBYSB_BMID" EditType="etString" ShowHint="true">
|
||||||
|
</gtc:gtGridView_Column>
|
||||||
|
<gtc:gtGridView_Column DataField="TBYSB_ZBF" EditType="etString" ShowHint="true">
|
||||||
|
</gtc:gtGridView_Column>
|
||||||
|
<gtc:gtGridView_Column DataField="TBYSB_TBDZ" EditType="etString" ShowHint="true">
|
||||||
|
</gtc:gtGridView_Column>
|
||||||
|
<gtc:gtGridView_Column DataField="TBYSB_TBJZRQ" EditType="etDateTime" DateTimeEditKins="dtDate">
|
||||||
|
</gtc:gtGridView_Column>
|
||||||
|
<gtc:gtGridView_Column DataField="TBYSB_TBJE" EditType="etNumber" ShowHint="true" NumberDecimalPlace="2">
|
||||||
|
</gtc:gtGridView_Column>
|
||||||
|
<gtc:gtGridView_Column DataField="TBYSB_XJYQ" EditType="etString" ShowHint="true">
|
||||||
|
</gtc:gtGridView_Column>
|
||||||
|
<gtc:gtGridView_Column DataField="TBYSB_TBZT" EditType="etString" ShowHint="true">
|
||||||
|
</gtc:gtGridView_Column>
|
||||||
|
<gtc:gtGridView_Column DataField="TBYSB_SQDB" EditType="etString" ShowHint="true">
|
||||||
|
</gtc:gtGridView_Column>
|
||||||
|
<gtc:gtGridView_Column DataField="TBYSB_BSJFSJ" EditType="etDateTime" DateTimeEditKins="dtDate">
|
||||||
|
</gtc:gtGridView_Column>
|
||||||
|
<gtc:gtGridView_Column DataField="TBYSB_BSJFXS" EditType="etString" ShowHint="true">
|
||||||
|
</gtc:gtGridView_Column>
|
||||||
|
<gtc:gtGridView_Column DataField="TBYSB_TBBZJJE" EditType="etNumber" ShowZero="false" NumberDecimalPlace="2">
|
||||||
|
</gtc:gtGridView_Column>
|
||||||
|
<gtc:gtGridView_Column DataField="TBYSB_TBBZJXS" EditType="etString" ShowHint="true">
|
||||||
|
</gtc:gtGridView_Column>
|
||||||
|
<gtc:gtGridView_Column DataField="TBYSB_ZWFKSJ" EditType="etDateTime" DateTimeEditKins="dtDate">
|
||||||
|
</gtc:gtGridView_Column>
|
||||||
|
<gtc:gtGridView_Column DataField="TBYSB_SFXYCADZYS" EditType="etCheckBox">
|
||||||
|
</gtc:gtGridView_Column>
|
||||||
|
<gtc:gtGridView_Column DataField="TBYSB_GDFKTJ" EditType="etString" ShowHint="true">
|
||||||
|
</gtc:gtGridView_Column>
|
||||||
|
<gtc:gtGridView_Column DataField="TBYSB_FJS" EditType="etNumber" ShowZero="false" NumberDecimalPlace="0">
|
||||||
|
</gtc:gtGridView_Column>
|
||||||
|
<gtc:gtGridView_Column DataField="TBYSB_WFAWAITER" ShowHint="true" EditType="etString">
|
||||||
|
</gtc:gtGridView_Column>
|
||||||
|
<gtc:gtGridView_Column DataField="TBYSB_WFHANDLER" ShowHint="true" EditType="etString">
|
||||||
|
</gtc:gtGridView_Column>
|
||||||
|
<gtc:gtGridView_Column DataField="TBYSB_WHR" EditType="etString" ShowHint="true">
|
||||||
|
</gtc:gtGridView_Column>
|
||||||
|
<gtc:gtGridView_Column DataField="TBYSB_WHSJ" EditType="etDateTime" DateTimeEditKins="dtDateTime">
|
||||||
|
</gtc:gtGridView_Column>
|
||||||
|
</ColumnsEx>
|
||||||
|
</gtc:gtGridView>
|
||||||
|
</asp:Content>
|
||||||
@@ -0,0 +1,254 @@
|
|||||||
|
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_MISPRO;
|
||||||
|
using GThinking.N_WORKFLOW;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
|
||||||
|
namespace GThinking.N_XLXSBJ
|
||||||
|
{
|
||||||
|
public partial class TBYSList : SingleGridBase
|
||||||
|
{
|
||||||
|
TBYS entity = new TBYS();
|
||||||
|
TBYS_M queryentity = new TBYS_M();
|
||||||
|
|
||||||
|
#region Page类事件继承
|
||||||
|
protected void Page_Load(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
this.UMID = 100860168;
|
||||||
|
this.UMName = "投标预审";
|
||||||
|
this.CurMaster = Master;
|
||||||
|
this.ModuleGV = ContentGrid;
|
||||||
|
this.CurEntity = entity;
|
||||||
|
this.CurQueryEntity = queryentity;
|
||||||
|
this.PageHeight = 500;
|
||||||
|
this.PageWidth = 700;
|
||||||
|
this.sURLTarget = "TBYSInfo.aspx";
|
||||||
|
this.sQueryURLTarget = "TBYSQuery.aspx";
|
||||||
|
this.DataKeyNames = new string[] { "TBYSB_SPDH", "TBYSB_WPID" };
|
||||||
|
this.Master.EnableAttachBtn = true;
|
||||||
|
|
||||||
|
if (!IsPostBack)
|
||||||
|
{
|
||||||
|
CurQueryEntity.FieldByName("SW").Value = "W";
|
||||||
|
}
|
||||||
|
|
||||||
|
base.InitPage();
|
||||||
|
|
||||||
|
if (!IsPostBack)
|
||||||
|
{
|
||||||
|
Master_OnStandardQuery(null, null);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
#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_PageIndexChanging(object sender, GridViewPageEventArgs e)
|
||||||
|
{
|
||||||
|
base.InitEntityByCondition();
|
||||||
|
entity.EntityTable.QuerySelSql = GetQuerySql();
|
||||||
|
ContentGrid.SelectedIndex = -1;
|
||||||
|
base.moduleGV_PageIndexChanging(sender, e);
|
||||||
|
}
|
||||||
|
protected override void moduleGV_RowDataBound(object sender, GridViewRowEventArgs e)
|
||||||
|
{
|
||||||
|
if (e.Row.RowType == DataControlRowType.DataRow)
|
||||||
|
{
|
||||||
|
|
||||||
|
e.Row.Cells[0].Text = _curWorkFlow.GetWPName("XSBJ_TBYS", e.Row.Cells[0].Text.Trim());
|
||||||
|
|
||||||
|
int indexAwaiter = ContentGrid.Columns.IndexOf(ContentGrid.FindColumnByFieldName("TBYSB_WFAWAITER"));
|
||||||
|
int indexHandler = ContentGrid.Columns.IndexOf(ContentGrid.FindColumnByFieldName("TBYSB_WFHANDLER"));
|
||||||
|
if (indexAwaiter > -1)
|
||||||
|
{
|
||||||
|
e.Row.Cells[indexAwaiter].Text = _curWorkFlow.UserInfo.GetUserNames(e.Row.Cells[indexAwaiter].Text.Trim());
|
||||||
|
}
|
||||||
|
if (indexHandler > -1)
|
||||||
|
{
|
||||||
|
e.Row.Cells[indexHandler].Text = _curWorkFlow.UserInfo.GetUserNames(e.Row.Cells[indexHandler].Text.Trim());
|
||||||
|
}
|
||||||
|
|
||||||
|
int tbbzjxsIndex = -1;
|
||||||
|
for (int i = 0; i < ContentGrid.Columns.Count; i++)
|
||||||
|
{
|
||||||
|
if (ContentGrid.Columns[i] is BoundField && ((BoundField)ContentGrid.Columns[i]).DataField == "TBYSB_TBBZJXS")
|
||||||
|
{
|
||||||
|
tbbzjxsIndex = i;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (tbbzjxsIndex > -1)
|
||||||
|
{
|
||||||
|
string sTBBZJXS = e.Row.Cells[tbbzjxsIndex].Text.Trim();
|
||||||
|
switch (sTBBZJXS)
|
||||||
|
{
|
||||||
|
case "D": e.Row.Cells[tbbzjxsIndex].Text = "电汇"; break;
|
||||||
|
case "H": e.Row.Cells[tbbzjxsIndex].Text = "保函"; break;
|
||||||
|
case "X": e.Row.Cells[tbbzjxsIndex].Text = "保险"; break;
|
||||||
|
case "Q": e.Row.Cells[tbbzjxsIndex].Text = "其他"; break;
|
||||||
|
case "W": e.Row.Cells[tbbzjxsIndex].Text = "无"; break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
int bsjfxsIndex = -1;
|
||||||
|
for (int i = 0; i < ContentGrid.Columns.Count; i++)
|
||||||
|
{
|
||||||
|
if (ContentGrid.Columns[i] is BoundField && ((BoundField)ContentGrid.Columns[i]).DataField == "TBYSB_BSJFXS")
|
||||||
|
{
|
||||||
|
bsjfxsIndex = i;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (bsjfxsIndex > -1)
|
||||||
|
{
|
||||||
|
string sBSJFXS = e.Row.Cells[bsjfxsIndex].Text.Trim();
|
||||||
|
switch (sBSJFXS)
|
||||||
|
{
|
||||||
|
case "D": e.Row.Cells[bsjfxsIndex].Text = "电子文档"; break;
|
||||||
|
case "Z": e.Row.Cells[bsjfxsIndex].Text = "纸质"; break;
|
||||||
|
case "G": e.Row.Cells[bsjfxsIndex].Text = "光盘"; break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
LinkPageParam.AddString("TBYSB_SPDH", ContentGrid.DataKeys[e.Row.RowIndex]["TBYSB_SPDH"].ToString().Trim());
|
||||||
|
LinkPageParam.AddString("WFID", ContentGrid.DataKeys[e.Row.RowIndex]["TBYSB_WFID"].ToString().Trim());
|
||||||
|
LinkPageParam.AddString("WFINST", ContentGrid.DataKeys[e.Row.RowIndex]["TBYSB_WFINST"].ToString().Trim());
|
||||||
|
}
|
||||||
|
base.moduleGV_RowDataBound(sender, e);
|
||||||
|
|
||||||
|
}
|
||||||
|
protected override bool Master_BeforeDeleteAction(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
string sSPDH = ContentGrid.DataKeys[ContentGrid.SelectedIndex]["TBYSB_SPDH"].ToString().Trim();
|
||||||
|
CurEntity.Param.Add("TBYSB_SPDH", sSPDH);
|
||||||
|
return base.Master_BeforeDeleteAction(sender, e);
|
||||||
|
}
|
||||||
|
protected override void BeforeDelete(TDatabase db, ref bool ActionIsDone)
|
||||||
|
{
|
||||||
|
base.BeforeDelete(db, ref ActionIsDone);
|
||||||
|
}
|
||||||
|
protected override void AfterDelete(TDatabase db, ref bool ActionIsDone)
|
||||||
|
{
|
||||||
|
base.AfterDelete(db, ref ActionIsDone);
|
||||||
|
}
|
||||||
|
protected override bool Master_AfterDeleteAction(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
if (!base.Master_AfterDeleteAction(sender, e)) return false;
|
||||||
|
|
||||||
|
base.InitEntityByCondition();
|
||||||
|
entity.EntityTable.QuerySelSql = GetQuerySql();
|
||||||
|
entity.GridDataBind(ContentGrid, tSession);
|
||||||
|
ContentGrid.SelectedIndex = -1;
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
protected override void BeforeAttach()
|
||||||
|
{
|
||||||
|
attDoc.WorkTableName = "TBYSB";
|
||||||
|
attDoc.UpdCondition = string.Format(" TBYSB_SPDH='{0}'", ContentGrid.DataKeys[ContentGrid.SelectedIndex]["TBYSB_SPDH"].ToString().Trim());
|
||||||
|
base.BeforeAttach();
|
||||||
|
}
|
||||||
|
protected override void Master_wfAfterActionEvent(TWorkflow Sender, TWFAction Action, bool ActionIsDone)
|
||||||
|
{
|
||||||
|
base.Master_wfAfterActionEvent(Sender, Action, ActionIsDone);
|
||||||
|
|
||||||
|
if (!ActionIsDone)
|
||||||
|
return;
|
||||||
|
|
||||||
|
TSQL SQL = new TSQL(Sender.dbe);
|
||||||
|
SQL.Clear();
|
||||||
|
SQL.Add(" update TBYSB");
|
||||||
|
SQL.Add(" set TBYSB_WFID = :TBYSB_WFID, ");
|
||||||
|
SQL.Add(" TBYSB_WPID = :TBYSB_WPID, ");
|
||||||
|
SQL.Add(" TBYSB_WFAWAITER = :TBYSB_WFAWAITER, ");
|
||||||
|
SQL.Add(" TBYSB_WFHANDLER = :TBYSB_WFHANDLER, ");
|
||||||
|
SQL.Add(" TBYSB_WFINST = :TBYSB_WFINST, ");
|
||||||
|
SQL.Add(" TBYSB_ACTNAME = :TBYSB_ACTNAME ");
|
||||||
|
SQL.Add(" where TBYSB_SPDH = :TBYSB_SPDH ");
|
||||||
|
SQL.ParamByName("TBYSB_WFID").Value = Sender.WFID;
|
||||||
|
SQL.ParamByName("TBYSB_WFINST").Value = Sender.WFInst;
|
||||||
|
SQL.ParamByName("TBYSB_WPID").Value = Sender.WPID;
|
||||||
|
SQL.ParamByName("TBYSB_WFAWAITER").Value = Sender.Awaiter;
|
||||||
|
SQL.ParamByName("TBYSB_WFHANDLER").Value = Sender.Handler;
|
||||||
|
SQL.ParamByName("TBYSB_ACTNAME").Value = Sender.GetWFActionName(Action);
|
||||||
|
SQL.ParamByName("TBYSB_SPDH").Value = ContentGrid.DataKeys[ContentGrid.SelectedIndex]["TBYSB_SPDH"].ToString().Trim();
|
||||||
|
Sender.dbe.ExecSQL(SQL);
|
||||||
|
}
|
||||||
|
private string GetQuerySql()
|
||||||
|
{
|
||||||
|
string sSQL = " select TBYSB_SPDH, TBYSB_FQR, "
|
||||||
|
+ " case isnull(TBYSB_SYDWID,' ') when ' ' then ' ' else (rtrim(TBYSB_SYDWID)||'|'||GS_GSMC) end as TBYSB_SYDWID, "
|
||||||
|
+ " case isnull(TBYSB_BMID,' ') when ' ' then ' ' else (rtrim(TBYSB_BMID)||'|'||BM_MC) end as TBYSB_BMID, "
|
||||||
|
+ " TBYSB_XMID, TBYSB_TBJE, TBYSB_XMMC, TBYSB_TBRQ, TBYSB_FJS, \r\n"
|
||||||
|
+ " TBYSB_DOCGRPID, TBYSB_WFID, TBYSB_WFINST, TBYSB_WPID, TBYSB_WFAWAITER, TBYSB_WFHANDLER, TBYSB_ACTNAME, TBYSB_ZBF, \r\n"
|
||||||
|
+ " TBYSB_TBDZ, TBYSB_TBJZRQ, TBYSB_XJYQ, TBYSB_BSJFXS, TBYSB_TBBZJJE, TBYSB_TBBZJXS, TBYSB_ZWFKSJ, TBYSB_TBZT, \r\n"
|
||||||
|
+ " TBYSB_SQDB, TBYSB_BSJFSJ, TBYSB_GDFKTJ, TBYSB_CNFKTJ, TBYSB_QTYQ, TBYSB_SFXYCADZYS, TBYSB_JSPCNR, \r\n"
|
||||||
|
+ " TBYSB_WHR,TBYSB_WHRID,TBYSB_WHSJ,TBYSB_GKFZR \r\n"
|
||||||
|
+ " from TBYSB \r\n"
|
||||||
|
+ " left join GS on GS_SYDWID = TBYSB_SYDWID \r\n"
|
||||||
|
+ " left join BM on BM_BMID = TBYSB_BMID \r\n"
|
||||||
|
+ " where 1=1 ";
|
||||||
|
|
||||||
|
switch (CurQueryEntity.FieldByName("SW").Value.Trim())
|
||||||
|
{
|
||||||
|
case "W":
|
||||||
|
sSQL += "\r\n and " + _curWorkFlow.GetWhereAgent("XSBJ_TBYS", tSession.UserId, "TBYSB_WFAWAITER", "TBYSB_WFID", "TBYSB_WPID");
|
||||||
|
break;
|
||||||
|
case "H":
|
||||||
|
sSQL += "\r\n and TBYSB_WFHANDLER LIKE :TBYSB_WFHANDLER ";
|
||||||
|
entity.Param.Add("TBYSB_WFHANDLER", "%," + tSession.UserId + ",%");
|
||||||
|
break;
|
||||||
|
case "A":
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!string.IsNullOrEmpty(CurQueryEntity.FieldByName("WFAWAITER").Value.Trim()))
|
||||||
|
{
|
||||||
|
sSQL += " \r\n and TBYSB_WFAWAITER like :pWFAWITER ";
|
||||||
|
entity.Param.Add("pWFAWITER", string.Format("%,{0},%", CurQueryEntity.FieldByName("WFAWAITER").Value.Trim()));
|
||||||
|
}
|
||||||
|
if (!string.IsNullOrEmpty(CurQueryEntity.FieldByName("STATE").Value.Trim()))
|
||||||
|
{
|
||||||
|
sSQL += "\r\n and " + CMISproDataBase.GetWhereEqual("TBYSB_WPID", CurQueryEntity.FieldByName("STATE").Value.Trim());
|
||||||
|
}
|
||||||
|
if (!string.IsNullOrEmpty(CurQueryEntity.FieldByName("ZBF").Value.Trim()))
|
||||||
|
{
|
||||||
|
sSQL += "\r\n and TBYSB_ZBF like :pZBF ";
|
||||||
|
entity.Param.Add("pZBF", string.Format("%{0}%", CurQueryEntity.FieldByName("ZBF").Value.Trim()));
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!CurQueryEntity.FieldByName("XMMC").Value.Trim().Equals(""))
|
||||||
|
{
|
||||||
|
sSQL += "\r\n and " + CMISproDataBase.GetWhereLike("TBYSB_XMMC", CurQueryEntity.FieldByName("XMMC").Value.Trim());
|
||||||
|
}
|
||||||
|
|
||||||
|
sSQL += " order by TBYSB_WHSJ DESC, TBYSB_SPDH DESC ";
|
||||||
|
return sSQL;
|
||||||
|
}
|
||||||
|
|
||||||
|
protected void btnGRWJGRefer_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
int tmpIndex = ContentGrid.SelectedIndex;
|
||||||
|
moduleGV_PageIndexChanging(null, null);
|
||||||
|
ContentGrid.SelectedIndex = tmpIndex;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
Generated
+61
@@ -0,0 +1,61 @@
|
|||||||
|
//------------------------------------------------------------------------------
|
||||||
|
// <auto-generated>
|
||||||
|
// 此代码由工具生成。
|
||||||
|
// 运行时版本:2.0.50727.9179
|
||||||
|
//
|
||||||
|
// 对此文件的更改可能会导致不正确的行为,并且如果
|
||||||
|
// 重新生成代码,这些更改将会丢失。
|
||||||
|
// </auto-generated>
|
||||||
|
//------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
namespace GThinking.N_XLXSBJ {
|
||||||
|
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// TBYSList 类。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的类。
|
||||||
|
/// </remarks>
|
||||||
|
public partial class TBYSList {
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// CustomButton 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::System.Web.UI.WebControls.Table CustomButton;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// btnGRWJGRefer 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtButton btnGRWJGRefer;
|
||||||
|
|
||||||
|
/// <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,58 @@
|
|||||||
|
<%@ Page Language="C#" MasterPageFile="~/N_MODEL/Page/MasterSingleQuery.Master" AutoEventWireup="True"
|
||||||
|
Codebehind="TBYSQuery.aspx.cs" Inherits="GThinking.N_XLXSBJ.TBYSQuery" 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="120px">
|
||||||
|
<gtc:gtLabel ID="lblSW" runat="server">事务:</gtc:gtLabel>
|
||||||
|
</asp:TableCell>
|
||||||
|
<asp:TableCell Height="23px">
|
||||||
|
<gtc:gtComboBox ID="cbxSW" DataField="SW" runat="server" Width="150px" Tag="Star"></gtc:gtComboBox>
|
||||||
|
</asp:TableCell>
|
||||||
|
</asp:TableRow>
|
||||||
|
|
||||||
|
<asp:TableRow>
|
||||||
|
<asp:TableCell></asp:TableCell>
|
||||||
|
<asp:TableCell HorizontalAlign="Right" Width="120px" >
|
||||||
|
<gtc:gtLabel ID="lblWFAWAITER" runat="server">待处理人:</gtc:gtLabel>
|
||||||
|
</asp:TableCell>
|
||||||
|
<asp:TableCell Height="23px">
|
||||||
|
<gtc:gtComboBox ID="cbxDCLR" DataField="WFAWAITER" runat="server" Width="150px" ></gtc:gtComboBox>
|
||||||
|
</asp:TableCell>
|
||||||
|
</asp:TableRow>
|
||||||
|
|
||||||
|
<asp:TableRow>
|
||||||
|
<asp:TableCell></asp:TableCell>
|
||||||
|
<asp:TableCell HorizontalAlign="Right" Width="120px">
|
||||||
|
<gtc:gtLabel ID="GtLabel10" runat="server">流程状态:</gtc:gtLabel>
|
||||||
|
</asp:TableCell>
|
||||||
|
<asp:TableCell Height="23px">
|
||||||
|
<gtc:gtCheckedDropDownList ID="cbxWFState" DataField="STATE" runat="server" Width="150px">
|
||||||
|
</gtc:gtCheckedDropDownList>
|
||||||
|
</asp:TableCell>
|
||||||
|
</asp:TableRow>
|
||||||
|
|
||||||
|
<asp:TableRow>
|
||||||
|
<asp:TableCell></asp:TableCell>
|
||||||
|
<asp:TableCell HorizontalAlign="Right" Width="120px">
|
||||||
|
<gtc:gtLabel ID="lblZBF" runat="server">招标方:</gtc:gtLabel>
|
||||||
|
</asp:TableCell>
|
||||||
|
<asp:TableCell Height="23px">
|
||||||
|
<gtc:gtTextBox ID="txtZBF" DataField="ZBF" runat="server" Width="150px" Tag="Percent"></gtc:gtTextBox>
|
||||||
|
</asp:TableCell>
|
||||||
|
</asp:TableRow>
|
||||||
|
|
||||||
|
<asp:TableRow>
|
||||||
|
<asp:TableCell></asp:TableCell>
|
||||||
|
<asp:TableCell HorizontalAlign="Right" Width="120px">
|
||||||
|
<gtc:gtLabel ID="lblXMMC" runat="server">项目名称:</gtc:gtLabel>
|
||||||
|
</asp:TableCell>
|
||||||
|
<asp:TableCell Height="23px">
|
||||||
|
<gtc:gtTextBox ID="txtXMMC" DataField="XMMC" runat="server" Width="150px" Tag="Percent"></gtc:gtTextBox>
|
||||||
|
</asp:TableCell>
|
||||||
|
</asp:TableRow>
|
||||||
|
</asp:Table>
|
||||||
|
</asp:Content>
|
||||||
@@ -0,0 +1,50 @@
|
|||||||
|
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.N_XLXSBJ
|
||||||
|
{
|
||||||
|
public partial class TBYSQuery : SingleQueryBase
|
||||||
|
{
|
||||||
|
TBYS_M qryEntity = new TBYS_M();
|
||||||
|
protected void Page_Load(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
this.UMID = 100860168;
|
||||||
|
this.UMName = "Ͷ±êÔ¤Éó";
|
||||||
|
this.CurMaster = Master;
|
||||||
|
this.CurQueryTable = QueryTable;
|
||||||
|
this.CurQueryEntity = qryEntity;
|
||||||
|
|
||||||
|
base.InitPage();
|
||||||
|
|
||||||
|
if (!IsPostBack)
|
||||||
|
{
|
||||||
|
InitControl();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
private void InitControl()
|
||||||
|
{
|
||||||
|
WorkFlowUtils.SetCombox_WFSW(this.UMID, tSession, cbxSW);
|
||||||
|
|
||||||
|
TRYXX.SetComboBox_GH(cbxDCLR, "", false, true);
|
||||||
|
WorkFlowUtils.SetCheckedDropDownList_WFPROC("XSBJ_TBYS", cbxWFState);
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
Generated
+133
@@ -0,0 +1,133 @@
|
|||||||
|
//------------------------------------------------------------------------------
|
||||||
|
// <auto-generated>
|
||||||
|
// 此代码由工具生成。
|
||||||
|
// 运行时版本:2.0.50727.9179
|
||||||
|
//
|
||||||
|
// 对此文件的更改可能会导致不正确的行为,并且如果
|
||||||
|
// 重新生成代码,这些更改将会丢失。
|
||||||
|
// </auto-generated>
|
||||||
|
//------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
namespace GThinking.N_XLXSBJ {
|
||||||
|
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// TBYSQuery 类。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的类。
|
||||||
|
/// </remarks>
|
||||||
|
public partial class TBYSQuery {
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// QueryTable 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::System.Web.UI.WebControls.Table QueryTable;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// lblSW 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtLabel lblSW;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// cbxSW 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtComboBox cbxSW;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// lblWFAWAITER 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtLabel lblWFAWAITER;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// cbxDCLR 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtComboBox cbxDCLR;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// GtLabel10 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtLabel GtLabel10;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// cbxWFState 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtCheckedDropDownList cbxWFState;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// lblZBF 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtLabel lblZBF;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtZBF 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtTextBox txtZBF;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// lblXMMC 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtLabel lblXMMC;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtXMMC 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtTextBox txtXMMC;
|
||||||
|
|
||||||
|
/// <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,25 @@
|
|||||||
|
using System;
|
||||||
|
using System.Data;
|
||||||
|
using System.Configuration;
|
||||||
|
using System.Web;
|
||||||
|
using System.Web.Security;
|
||||||
|
using System.Web.UI;
|
||||||
|
using System.Web.UI.WebControls;
|
||||||
|
using System.Web.UI.WebControls.WebParts;
|
||||||
|
using System.Web.UI.HtmlControls;
|
||||||
|
using GThinking.N_MODEL.Page;
|
||||||
|
|
||||||
|
namespace GThinking.N_XLXSBJ
|
||||||
|
{
|
||||||
|
public class TBYS_M : TBaseNamedQuery
|
||||||
|
{
|
||||||
|
public TBYS_M()
|
||||||
|
{
|
||||||
|
AddFieldDefs("SW", "事务", false);
|
||||||
|
AddFieldDefs("WFAWAITER", "待处理人", false);
|
||||||
|
AddFieldDefs("STATE", "流程状态", false);
|
||||||
|
AddFieldDefs("ZBF", "招标方", false);
|
||||||
|
AddFieldDefs("XMMC", "项目名称", false);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,99 @@
|
|||||||
|
<%@ Page Language="C#" MasterPageFile="~/N_MODEL/Page/MasterSingleGrid.Master" AutoEventWireup="true"
|
||||||
|
Codebehind="TBYS_ZDFXList.aspx.cs" Inherits="GThinking.N_XLXSBJ.TBYS_ZDFXList" Title="投标预审撞单分析" %>
|
||||||
|
|
||||||
|
<%@ MasterType VirtualPath="~/N_MODEL/Page/MasterSingleGrid.Master" %>
|
||||||
|
<asp:Content ID="ContentButton" ContentPlaceHolderID="CPHButton" 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="btnCXCX" BorderWidth="0px" BorderStyle="NotSet" Width="70px"
|
||||||
|
Height="19px" ButtonType="Button" OnClick="btnCXCX_Click" ShowCaption="True"
|
||||||
|
Caption="重新查询" runat="server" />
|
||||||
|
</asp:TableCell>
|
||||||
|
</asp:TableRow>
|
||||||
|
</asp:Table>
|
||||||
|
</asp:Content>
|
||||||
|
|
||||||
|
<asp:Content ID="ContentForm" ContentPlaceHolderID="cphForm" runat="server">
|
||||||
|
<table border="0" cellpadding="0" cellspacing="0">
|
||||||
|
<tr>
|
||||||
|
<td align="right" style="width: 120px" id="tdlblBZTBZT" runat="server">
|
||||||
|
<gtc:gtLabel ID="lblBZTBZT" runat="server" Width="120px" Text="客户(被撞):"></gtc:gtLabel>
|
||||||
|
</td>
|
||||||
|
<td align="left" style="width: 200px" id="tdtxtBZTBZT" runat="server">
|
||||||
|
<gtc:gtTextBox ID="txtBZTBZT" runat="server" Width="180px" ReadOnly="true"></gtc:gtTextBox>
|
||||||
|
</td>
|
||||||
|
<td align="right" style="width: 120px" id="tdlblBZXM" runat="server">
|
||||||
|
<gtc:gtLabel ID="lblBZXM" runat="server" Width="120px" Text="项目名称(被撞):"></gtc:gtLabel>
|
||||||
|
</td>
|
||||||
|
<td align="left" style="width: 200px" id="tdtxtBZXM" runat="server">
|
||||||
|
<gtc:gtTextBox ID="txtBZXM" runat="server" Width="180px" ReadOnly="true"></gtc:gtTextBox>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr style="height: 3px">
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
<gtc:gtGridView ID="grdContentGrid" runat="server" AutoGenerateColumns="False" CellPadding="2"
|
||||||
|
CellSpacing="2" AllowSorting="True" EnableViewState="False" OnRowDoubleClick="grdContentGrid_RowDoubleClick" >
|
||||||
|
<Columns>
|
||||||
|
<asp:BoundField DataField="TBYSB_SPDH" HeaderText="审批单号">
|
||||||
|
<itemstyle width="120px" />
|
||||||
|
<headerstyle width="120px" />
|
||||||
|
</asp:BoundField>
|
||||||
|
<asp:BoundField DataField="TBYSB_TBRQ" HeaderText="投标日期">
|
||||||
|
<itemstyle width="80px" />
|
||||||
|
<headerstyle width="80px" />
|
||||||
|
</asp:BoundField>
|
||||||
|
<asp:BoundField DataField="TBYSB_TBZT" HeaderText="客户">
|
||||||
|
<itemstyle width="180px" />
|
||||||
|
<headerstyle width="180px" />
|
||||||
|
</asp:BoundField>
|
||||||
|
<asp:BoundField DataField="TBYSB_XMMC" HeaderText="项目名称">
|
||||||
|
<itemstyle width="180px" />
|
||||||
|
<headerstyle width="180px" />
|
||||||
|
</asp:BoundField>
|
||||||
|
<asp:BoundField DataField="TBYSB_FQR" HeaderText="发起人">
|
||||||
|
<itemstyle width="100px" />
|
||||||
|
<headerstyle width="100px" />
|
||||||
|
</asp:BoundField>
|
||||||
|
<asp:BoundField DataField="TBYSB_TBJE" HeaderText="投标金额">
|
||||||
|
<itemstyle width="100px" horizontalalign="Right"></itemstyle>
|
||||||
|
<headerstyle width="100px"></headerstyle>
|
||||||
|
</asp:BoundField>
|
||||||
|
<asp:BoundField DataField="ZDLX" HeaderText="撞单类型">
|
||||||
|
<itemstyle width="200px" />
|
||||||
|
<headerstyle width="200px" />
|
||||||
|
</asp:BoundField>
|
||||||
|
<asp:BoundField DataField="TBYSB_WHR" HeaderText="维护人">
|
||||||
|
<itemstyle width="72px" />
|
||||||
|
<headerstyle width="72px" />
|
||||||
|
</asp:BoundField>
|
||||||
|
<asp:BoundField DataField="TBYSB_WHSJ" HeaderText="维护时间">
|
||||||
|
<itemstyle width="125px" />
|
||||||
|
<headerstyle width="125px" />
|
||||||
|
</asp:BoundField>
|
||||||
|
</Columns>
|
||||||
|
<FixRowCol TableHeight="100%" TableWidth="100%" />
|
||||||
|
<ColumnsEx>
|
||||||
|
<gtc:gtGridView_Column DataField="TBYSB_SPDH" ShowHint="True">
|
||||||
|
</gtc:gtGridView_Column>
|
||||||
|
<gtc:gtGridView_Column DataField="TBYSB_TBRQ" ShowHint="True" EditType="etdatetime" DateTimeEditKins="dtDate">
|
||||||
|
</gtc:gtGridView_Column>
|
||||||
|
<gtc:gtGridView_Column DataField="TBYSB_TBZT" ShowHint="True">
|
||||||
|
</gtc:gtGridView_Column>
|
||||||
|
<gtc:gtGridView_Column DataField="TBYSB_XMMC" ShowHint="True">
|
||||||
|
</gtc:gtGridView_Column>
|
||||||
|
<gtc:gtGridView_Column DataField="TBYSB_FQR" ShowHint="True">
|
||||||
|
</gtc:gtGridView_Column>
|
||||||
|
<gtc:gtGridView_Column DataField="TBYSB_TBJE" EditType="etNumber" NumberDecimalPlace="2">
|
||||||
|
</gtc:gtGridView_Column>
|
||||||
|
<gtc:gtGridView_Column DataField="ZDLX" ShowHint="True">
|
||||||
|
</gtc:gtGridView_Column>
|
||||||
|
<gtc:gtGridView_Column DataField="TBYSB_WHR" ShowHint="True">
|
||||||
|
</gtc:gtGridView_Column>
|
||||||
|
<gtc:gtGridView_Column DataField="TBYSB_WHSJ" DateTimeEditKins="dtDateTime" EditType="etDateTime">
|
||||||
|
</gtc:gtGridView_Column>
|
||||||
|
</ColumnsEx>
|
||||||
|
</gtc:gtGridView>
|
||||||
|
<asp:HiddenField ID="txtInfo" runat="server" />
|
||||||
|
</asp:Content>
|
||||||
@@ -0,0 +1,245 @@
|
|||||||
|
using System;
|
||||||
|
using System.Data;
|
||||||
|
using System.Configuration;
|
||||||
|
using System.Collections;
|
||||||
|
using System.Web;
|
||||||
|
using System.Web.Security;
|
||||||
|
using System.Web.UI;
|
||||||
|
using System.Web.UI.WebControls;
|
||||||
|
using System.Web.UI.WebControls.WebParts;
|
||||||
|
using System.Web.UI.HtmlControls;
|
||||||
|
using GThinking.N_MISPRO;
|
||||||
|
using GThinking.N_MODEL.Page;
|
||||||
|
using GThinking.N_MISPRO.Data;
|
||||||
|
using GThinking.N_PUBLIC;
|
||||||
|
using System.Text;
|
||||||
|
using GThinking.N_MISPRO.Utility;
|
||||||
|
using GThinking.N_MISPRO.TableCache;
|
||||||
|
using GThinking.N_WORKFLOW;
|
||||||
|
using System.Drawing;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
|
||||||
|
namespace GThinking.N_XLXSBJ
|
||||||
|
{
|
||||||
|
public partial class TBYS_ZDFXList : SingleGridBase
|
||||||
|
{
|
||||||
|
TBYS entity = new TBYS();
|
||||||
|
TBYS_ZDFX_M qryEntity = new TBYS_ZDFX_M();
|
||||||
|
protected void Page_Load(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
this.UMID = 100860168;
|
||||||
|
this.UMName = "投标预审";
|
||||||
|
this.CurMaster = Master;
|
||||||
|
this.ModuleGV = grdContentGrid;
|
||||||
|
this.CurEntity = entity;
|
||||||
|
this.CurQueryEntity = qryEntity;
|
||||||
|
this.sQueryURLTarget = "TBYS_ZDFXQuery.aspx";
|
||||||
|
this.PageHeight = 500;
|
||||||
|
this.PageWidth = 800;
|
||||||
|
|
||||||
|
Master.EnableNewBtn = false;
|
||||||
|
Master.EnableEditBtn = false;
|
||||||
|
Master.EnableCopyBtn = false;
|
||||||
|
Master.EnableDeleteBtn = false;
|
||||||
|
Master.EnableViewBtn = false;
|
||||||
|
Master.EnableWorkflowBtn = false;
|
||||||
|
|
||||||
|
base.DataKeyNames = new string[] { "TBYSB_SPDH", "sBZSPDH" };
|
||||||
|
|
||||||
|
if (!IsPostBack)
|
||||||
|
{
|
||||||
|
CurQueryEntity.FieldByName("ND").Value = "2";
|
||||||
|
if (PageParam.ContainsKey("SPDH"))
|
||||||
|
{
|
||||||
|
CurQueryEntity.FieldByName("BZSPDH").Value = PageParam.GetRTrimString("SPDH").Trim();
|
||||||
|
}
|
||||||
|
else if (PageParam.ContainsKey("BJDID"))
|
||||||
|
{
|
||||||
|
CurQueryEntity.FieldByName("BZSPDH").Value = PageParam.GetRTrimString("BJDID").Trim();
|
||||||
|
}
|
||||||
|
InitCXTJ();
|
||||||
|
}
|
||||||
|
|
||||||
|
base.InitPage();
|
||||||
|
|
||||||
|
if (!IsPostBack)
|
||||||
|
{
|
||||||
|
if (base.IsDefaultExecute)
|
||||||
|
{
|
||||||
|
Master_OnStandardQuery(null, null);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
private void InitCXTJ()
|
||||||
|
{
|
||||||
|
if (PageParam.ContainsKey("SPDH"))
|
||||||
|
{
|
||||||
|
TDatabase dberp = TContextDatabases.GetDatabase("DBERP");
|
||||||
|
TSQL SQL = new TSQL(dberp);
|
||||||
|
SQL.Add(" select TBYSB_TBZT, TBYSB_XMMC from TBYSB where TBYSB_SPDH = :pSPDH ");
|
||||||
|
SQL.ParamByName("pSPDH").Value = PageParam.GetRTrimString("SPDH").Trim();
|
||||||
|
DataSet ds = dberp.OpenDataSet(SQL);
|
||||||
|
if (ds.Tables[0].Rows.Count > 0)
|
||||||
|
{
|
||||||
|
txtBZTBZT.Text = ds.Tables[0].Rows[0]["TBYSB_TBZT"].ToString().Trim();
|
||||||
|
txtBZXM.Text = ds.Tables[0].Rows[0]["TBYSB_XMMC"].ToString().Trim();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else if (PageParam.ContainsKey("BJDID"))
|
||||||
|
{
|
||||||
|
TDatabase dberp = TContextDatabases.GetDatabase("DBERP");
|
||||||
|
TSQL SQL = new TSQL(dberp);
|
||||||
|
SQL.Add(" select XLXSBJD_KH, XLXSBJD_XMMC from XLXSBJD where XLXSBJD_BJDID = :pBJDID ");
|
||||||
|
SQL.ParamByName("pBJDID").Value = PageParam.GetRTrimString("BJDID").Trim();
|
||||||
|
DataSet ds = dberp.OpenDataSet(SQL);
|
||||||
|
if (ds.Tables[0].Rows.Count > 0)
|
||||||
|
{
|
||||||
|
txtBZTBZT.Text = ds.Tables[0].Rows[0]["XLXSBJD_KH"].ToString().Trim();
|
||||||
|
txtBZXM.Text = ds.Tables[0].Rows[0]["XLXSBJD_XMMC"].ToString().Trim();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
protected override void Master_OnStandardQuery(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
base.InitEntityByCondition();
|
||||||
|
entity.EntityTable.QuerySelSql = GetSQL();
|
||||||
|
base.Master_OnStandardQuery(sender, e);
|
||||||
|
entity.GridDataBind(grdContentGrid, tSession);
|
||||||
|
}
|
||||||
|
protected override void moduleGV_PageIndexChanging(object sender, GridViewPageEventArgs e)
|
||||||
|
{
|
||||||
|
base.InitEntityByCondition();
|
||||||
|
entity.EntityTable.QuerySelSql = GetSQL();
|
||||||
|
grdContentGrid.SelectedIndex = -1;
|
||||||
|
base.moduleGV_PageIndexChanging(sender, e);
|
||||||
|
}
|
||||||
|
protected void btnCXCX_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
entity.Param.Clear();
|
||||||
|
moduleGV_PageIndexChanging(null, null);
|
||||||
|
}
|
||||||
|
private string GetSQL()
|
||||||
|
{
|
||||||
|
string sBZSPDH = "";
|
||||||
|
if (PageParam.ContainsKey("SPDH"))
|
||||||
|
sBZSPDH = PageParam.GetRTrimString("SPDH");
|
||||||
|
else
|
||||||
|
sBZSPDH = CurQueryEntity.FieldByName("BZSPDH").Value.Trim();
|
||||||
|
|
||||||
|
string sTBZT = txtBZTBZT.Text.Trim();
|
||||||
|
string sXM = txtBZXM.Text.Trim();
|
||||||
|
|
||||||
|
StringBuilder sSQL = new StringBuilder();
|
||||||
|
sSQL.AppendLine("select TBYSB_SPDH, TBYSB_TBRQ, TBYSB_TBZT, TBYSB_XMMC, TBYSB_FQR, TBYSB_TBJE, :pSPDH as sBZSPDH, ");
|
||||||
|
sSQL.AppendLine(" TBYSB_WHR,TBYSB_WHRID,TBYSB_WHSJ, ");
|
||||||
|
|
||||||
|
sSQL.AppendLine(" case ");
|
||||||
|
sSQL.AppendLine(" when (TBYSB_TBZT='" + sTBZT + "' and TBYSB_XMMC='" + sXM + "' and '" + sTBZT + "'<>'' and '" + sXM + "'<>'') then '客户,项目名称重复;' ");
|
||||||
|
sSQL.AppendLine(" when (TBYSB_TBZT='" + sTBZT + "' and '" + sTBZT + "'<>'') then '客户重复;' ");
|
||||||
|
sSQL.AppendLine(" when (TBYSB_XMMC='" + sXM + "' and '" + sXM + "'<>'') then '项目名称重复;' ");
|
||||||
|
sSQL.AppendLine(" else ' ' end as ZDLX ");
|
||||||
|
|
||||||
|
sSQL.AppendLine(" from TBYSB ");
|
||||||
|
sSQL.AppendLine(" where TBYSB_SPDH <> :pSPDH ");
|
||||||
|
|
||||||
|
if (string.IsNullOrEmpty(CurQueryEntity.FieldByName("ZDLX").Value.Trim()))
|
||||||
|
{
|
||||||
|
sSQL.AppendLine(" and ( ");
|
||||||
|
sSQL.AppendLine(" (TBYSB_TBZT='" + sTBZT + "' and '" + sTBZT + "'<>'') ");
|
||||||
|
sSQL.AppendLine(" or (TBYSB_XMMC='" + sXM + "' and '" + sXM + "'<>'') ");
|
||||||
|
sSQL.AppendLine(" ) ");
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!string.IsNullOrEmpty(CurQueryEntity.FieldByName("ZDLX").Value.Trim()))
|
||||||
|
{
|
||||||
|
string sQueryZDLX = CurQueryEntity.FieldByName("ZDLX").Value.Trim();
|
||||||
|
sSQL.AppendLine(" and ( ");
|
||||||
|
string[] zdlxArray = sQueryZDLX.Split(new char[] { ',' }, StringSplitOptions.RemoveEmptyEntries);
|
||||||
|
for (int i = 0; i < zdlxArray.Length; i++)
|
||||||
|
{
|
||||||
|
if (i > 0)
|
||||||
|
{
|
||||||
|
sSQL.AppendLine(" or ");
|
||||||
|
}
|
||||||
|
if (zdlxArray[i].Equals("2")) // 客户重复
|
||||||
|
{
|
||||||
|
sSQL.AppendLine(" (TBYSB_TBZT='" + sTBZT + "' and '" + sTBZT + "'<>'') ");
|
||||||
|
}
|
||||||
|
else if (zdlxArray[i].Equals("3")) // 项目名称重复
|
||||||
|
{
|
||||||
|
sSQL.AppendLine(" (TBYSB_XMMC='" + sXM + "' and '" + sXM + "'<>'') ");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
sSQL.AppendLine(" ) ");
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!string.IsNullOrEmpty(CurQueryEntity.FieldByName("ZCSPDH").Value.Trim()))
|
||||||
|
{
|
||||||
|
sSQL.AppendLine(" and TBYSB_SPDH like :pZCSPDH ");
|
||||||
|
entity.Param.Add("pZCSPDH", "%" + CurQueryEntity.FieldByName("ZCSPDH").Value.Trim() + "%");
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!string.IsNullOrEmpty(CurQueryEntity.FieldByName("STATE").Value.Trim()))
|
||||||
|
{
|
||||||
|
sSQL.AppendLine(" and " + CMISproDataBase.GetWhereEqual("TBYSB_WPID", CurQueryEntity.FieldByName("STATE").Value.Trim()));
|
||||||
|
}
|
||||||
|
|
||||||
|
sSQL.AppendLine(CMISproDataBase.GetTimeConditionSQL("TBYSB_TBRQ",
|
||||||
|
CurQueryEntity.FieldByName("TBRQS").Value.ToString().Trim(),
|
||||||
|
CurQueryEntity.FieldByName("TBRQZ").Value.ToString().Trim(),
|
||||||
|
DateTimeType.dtDate, DateTimeType.dtDate));
|
||||||
|
|
||||||
|
if (!string.IsNullOrEmpty(CurQueryEntity.FieldByName("TBZT").Value.Trim()))
|
||||||
|
{
|
||||||
|
sSQL.AppendLine(" and TBYSB_TBZT like :pTBZT ");
|
||||||
|
entity.Param.Add("pTBZT", "%" + CurQueryEntity.FieldByName("TBZT").Value.Trim() + "%");
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!string.IsNullOrEmpty(CurQueryEntity.FieldByName("XMMC").Value.Trim()))
|
||||||
|
{
|
||||||
|
sSQL.AppendLine(" and TBYSB_XMMC like :pXMMC ");
|
||||||
|
entity.Param.Add("pXMMC", "%" + CurQueryEntity.FieldByName("XMMC").Value.Trim() + "%");
|
||||||
|
}
|
||||||
|
|
||||||
|
double dND = CMISproConvert.StrToFloat(CurQueryEntity.FieldByName("ND").Value.Trim(), 1);
|
||||||
|
if (dND != 0)
|
||||||
|
{
|
||||||
|
int dYF = (int)((dND - (int)dND) * 12);
|
||||||
|
sSQL.AppendLine(" and TBYSB_TBRQ >= DATEADD(month,-" + dYF + ",DATEADD(year, -" + (int)dND + ", getdate())) ");
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
sSQL.AppendLine(" order by TBYSB_TBRQ desc, TBYSB_SPDH desc ");
|
||||||
|
|
||||||
|
entity.Param.Add("pSPDH", sBZSPDH);
|
||||||
|
|
||||||
|
return sSQL.ToString();
|
||||||
|
}
|
||||||
|
protected void grdContentGrid_RowDoubleClick(object sender, GThinking.N_CONTROL.RowDoubleClickEventArgs e)
|
||||||
|
{
|
||||||
|
string sSPDH = grdContentGrid.DataKeys[grdContentGrid.SelectedIndex]["TBYSB_SPDH"].ToString().Trim();
|
||||||
|
string sBZSPDH = grdContentGrid.DataKeys[grdContentGrid.SelectedIndex]["sBZSPDH"].ToString().Trim();
|
||||||
|
|
||||||
|
TDatabase dberp = TContextDatabases.GetDatabase("DBERP");
|
||||||
|
TSQL SQL = new TSQL(dberp);
|
||||||
|
SQL.Add(" select TBYSB_WFID, TBYSB_WFINST from TBYSB where TBYSB_SPDH = :pSPDH ");
|
||||||
|
SQL.ParamByName("pSPDH").Value = sSPDH;
|
||||||
|
DataSet ds = dberp.OpenDataSet(SQL);
|
||||||
|
string sWFID = "";
|
||||||
|
string sWFINST = "";
|
||||||
|
if (ds.Tables[0].Rows.Count > 0)
|
||||||
|
{
|
||||||
|
sWFID = ds.Tables[0].Rows[0]["TBYSB_WFID"].ToString().Trim();
|
||||||
|
sWFINST = ds.Tables[0].Rows[0]["TBYSB_WFINST"].ToString().Trim();
|
||||||
|
}
|
||||||
|
|
||||||
|
TPageParams tpp = new TPageParams();
|
||||||
|
tpp.UrlPath = "TBYSInfo.aspx";
|
||||||
|
tpp.AddString("TBYSB_SPDH", sSPDH);
|
||||||
|
tpp.AddString("WFID", sWFID);
|
||||||
|
tpp.AddString("WFINST", sWFINST);
|
||||||
|
tpp.CallAction = TPageCallAction.pcaBrowse;
|
||||||
|
OpenDialog(tpp);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
Generated
+142
@@ -0,0 +1,142 @@
|
|||||||
|
//------------------------------------------------------------------------------
|
||||||
|
// <auto-generated>
|
||||||
|
// 此代码由工具生成。
|
||||||
|
// 运行时版本:2.0.50727.9179
|
||||||
|
//
|
||||||
|
// 对此文件的更改可能会导致不正确的行为,并且如果
|
||||||
|
// 重新生成代码,这些更改将会丢失。
|
||||||
|
// </auto-generated>
|
||||||
|
//------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
namespace GThinking.N_XLXSBJ {
|
||||||
|
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// TBYS_ZDFXList 类。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的类。
|
||||||
|
/// </remarks>
|
||||||
|
public partial class TBYS_ZDFXList {
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// ButtonTable 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::System.Web.UI.WebControls.Table ButtonTable;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// btnCXCX 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtToolButton btnCXCX;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// tdlblBZTBZT 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::System.Web.UI.HtmlControls.HtmlTableCell tdlblBZTBZT;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// lblBZTBZT 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtLabel lblBZTBZT;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// tdtxtBZTBZT 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::System.Web.UI.HtmlControls.HtmlTableCell tdtxtBZTBZT;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtBZTBZT 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtTextBox txtBZTBZT;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// tdlblBZXM 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::System.Web.UI.HtmlControls.HtmlTableCell tdlblBZXM;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// lblBZXM 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtLabel lblBZXM;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// tdtxtBZXM 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::System.Web.UI.HtmlControls.HtmlTableCell tdtxtBZXM;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtBZXM 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtTextBox txtBZXM;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// grdContentGrid 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtGridView grdContentGrid;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtInfo 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::System.Web.UI.WebControls.HiddenField txtInfo;
|
||||||
|
|
||||||
|
/// <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,91 @@
|
|||||||
|
<%@ Page Language="C#" MasterPageFile="~/N_MODEL/Page/MasterSingleQuery.Master" AutoEventWireup="true"
|
||||||
|
CodeBehind="TBYS_ZDFXQuery.aspx.cs" Inherits="GThinking.N_XLXSBJ.TBYS_ZDFXQuery" 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="GtLabel7" runat="server">撞单类型:</gtc:gtLabel>
|
||||||
|
</asp:TableCell>
|
||||||
|
<asp:TableCell Height="22px">
|
||||||
|
<gtc:gtCheckedDropDownList ID="cbxZDLX" runat="server" DataField="ZDLX" Width="116px">
|
||||||
|
</gtc:gtCheckedDropDownList>
|
||||||
|
</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="txtBZSPDH" runat="server" DataField="BZSPDH" Width="116px" CharCase="ecUpperCase" Tag="Star"></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:gtTextBox ID="txtZCSPDH" runat="server" DataField="ZCSPDH" 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="GtLabel10" runat="server">流程状态:</gtc:gtLabel>
|
||||||
|
</asp:TableCell>
|
||||||
|
<asp:TableCell Height="22px">
|
||||||
|
<gtc:gtCheckedDropDownList ID="cbxWFState" runat="server" DataField="STATE" Width="120px"></gtc:gtCheckedDropDownList>
|
||||||
|
</asp:TableCell>
|
||||||
|
</asp:TableRow>
|
||||||
|
<asp:TableRow>
|
||||||
|
<asp:TableCell></asp:TableCell>
|
||||||
|
<asp:TableCell HorizontalAlign="Right" Width="100px" Height="22px">
|
||||||
|
<gtc:gtLabel ID="lblJ" runat="server">近</gtc:gtLabel>
|
||||||
|
</asp:TableCell>
|
||||||
|
<asp:TableCell Height="22px">
|
||||||
|
<gtc:gtNumTextBox ID="txtND" runat="server" DataField="ND" Width="55px" DecimalPlaces="1"></gtc:gtNumTextBox>
|
||||||
|
<gtc:gtLabel ID="lblN" runat="server">  年</gtc:gtLabel>
|
||||||
|
</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="datTBRQS" runat="server" DataField="TBRQS" EnableRelevant="true" RelevantControl="datTBRQZ"></gtc:gtDateTimeTextBox>
|
||||||
|
</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:gtDateTimeTextBox ID="datTBRQZ" runat="server" DataField="TBRQZ" 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="GtLabel5" runat="server">客户:</gtc:gtLabel>
|
||||||
|
</asp:TableCell>
|
||||||
|
<asp:TableCell Height="22px">
|
||||||
|
<gtc:gtTextBox ID="txtTBZT" runat="server" DataField="TBZT" 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="GtLabel6" runat="server">项目名称:</gtc:gtLabel>
|
||||||
|
</asp:TableCell>
|
||||||
|
<asp:TableCell Height="22px">
|
||||||
|
<gtc:gtTextBox ID="txtXMMC" runat="server" DataField="XMMC" Width="116px" CharCase="ecUpperCase" Tag="Percent"></gtc:gtTextBox>
|
||||||
|
</asp:TableCell>
|
||||||
|
</asp:TableRow>
|
||||||
|
</asp:Table>
|
||||||
|
</asp:Content>
|
||||||
@@ -0,0 +1,77 @@
|
|||||||
|
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_MODEL.Dialog;
|
||||||
|
|
||||||
|
namespace GThinking.N_XLXSBJ
|
||||||
|
{
|
||||||
|
public partial class TBYS_ZDFXQuery : SingleQueryBase
|
||||||
|
{
|
||||||
|
TBYS_ZDFX_M queryentity = new TBYS_ZDFX_M();
|
||||||
|
private string sBZSPDH = "";
|
||||||
|
protected void Page_Load(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
this.UMID = 100860168;
|
||||||
|
this.UMName = "投标预审";
|
||||||
|
this.CurMaster = Master;
|
||||||
|
this.CurQueryEntity = queryentity;
|
||||||
|
this.CurQueryTable = QueryTalbe;
|
||||||
|
|
||||||
|
if (!IsPostBack)
|
||||||
|
{
|
||||||
|
InitControls();
|
||||||
|
}
|
||||||
|
base.InitPage();
|
||||||
|
HiddenField querycontrol = (HiddenField)this.CurMaster.FindControl("DefaultCondition");
|
||||||
|
string querycondition = querycontrol.Value.ToString();
|
||||||
|
if (querycondition != "")
|
||||||
|
{
|
||||||
|
queryentity.UnSerializeCondition(querycondition);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!IsPostBack)
|
||||||
|
{
|
||||||
|
txtBZSPDH.Text = queryentity.FieldByName("BZSPDH").Value;
|
||||||
|
sBZSPDH = txtBZSPDH.Text;
|
||||||
|
}
|
||||||
|
cbxZDLX.SelectedValue = "2,3";
|
||||||
|
CurQueryEntity.FieldByName("ZDLX").Value = "2,3";
|
||||||
|
}
|
||||||
|
protected override bool QueryLogicValid()
|
||||||
|
{
|
||||||
|
if (txtBZSPDH.Text.Trim().Equals(""))
|
||||||
|
{
|
||||||
|
ShowMessage("审批单号(被撞)不允许为空!");
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
return base.QueryLogicValid();
|
||||||
|
}
|
||||||
|
protected override void SetControlState()
|
||||||
|
{
|
||||||
|
base.SetControlState();
|
||||||
|
if (!sBZSPDH.Trim().Equals(""))
|
||||||
|
{
|
||||||
|
txtBZSPDH.Text = sBZSPDH;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
private void InitControls()
|
||||||
|
{
|
||||||
|
WorkFlowUtils.SetCheckedDropDownList_WFPROC("XSBJ_TBYS", cbxWFState);
|
||||||
|
|
||||||
|
cbxZDLX.ClearItems();
|
||||||
|
cbxZDLX.Items.Add(new ListItem("客户名称重复", "2"));
|
||||||
|
cbxZDLX.Items.Add(new ListItem("项目名称重复", "3"));
|
||||||
|
cbxZDLX.ShowValue = false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
Generated
+214
@@ -0,0 +1,214 @@
|
|||||||
|
//------------------------------------------------------------------------------
|
||||||
|
// <auto-generated>
|
||||||
|
// 此代码由工具生成。
|
||||||
|
// 运行时版本:2.0.50727.9179
|
||||||
|
//
|
||||||
|
// 对此文件的更改可能会导致不正确的行为,并且如果
|
||||||
|
// 重新生成代码,这些更改将会丢失。
|
||||||
|
// </auto-generated>
|
||||||
|
//------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
namespace GThinking.N_XLXSBJ {
|
||||||
|
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// TBYS_ZDFXQuery 类。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的类。
|
||||||
|
/// </remarks>
|
||||||
|
public partial class TBYS_ZDFXQuery {
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// QueryTalbe 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::System.Web.UI.WebControls.Table QueryTalbe;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// GtLabel7 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtLabel GtLabel7;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// cbxZDLX 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtCheckedDropDownList cbxZDLX;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// GtLabel3 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtLabel GtLabel3;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtBZSPDH 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtTextBox txtBZSPDH;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// GtLabel1 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtLabel GtLabel1;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtZCSPDH 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtTextBox txtZCSPDH;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// GtLabel10 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtLabel GtLabel10;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// cbxWFState 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtCheckedDropDownList cbxWFState;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// lblJ 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtLabel lblJ;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtND 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtNumTextBox txtND;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// lblN 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtLabel lblN;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// GtLabel2 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtLabel GtLabel2;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// datTBRQS 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtDateTimeTextBox datTBRQS;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// GtLabel4 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtLabel GtLabel4;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// datTBRQZ 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtDateTimeTextBox datTBRQZ;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// GtLabel5 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtLabel GtLabel5;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtTBZT 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtTextBox txtTBZT;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// GtLabel6 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtLabel GtLabel6;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtXMMC 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtTextBox txtXMMC;
|
||||||
|
|
||||||
|
/// <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,29 @@
|
|||||||
|
using System;
|
||||||
|
using System.Data;
|
||||||
|
using System.Configuration;
|
||||||
|
using System.Web;
|
||||||
|
using System.Web.Security;
|
||||||
|
using System.Web.UI;
|
||||||
|
using System.Web.UI.WebControls;
|
||||||
|
using System.Web.UI.WebControls.WebParts;
|
||||||
|
using System.Web.UI.HtmlControls;
|
||||||
|
using GThinking.N_MODEL.Page;
|
||||||
|
|
||||||
|
namespace GThinking.N_XLXSBJ
|
||||||
|
{
|
||||||
|
public class TBYS_ZDFX_M : TBaseNamedQuery
|
||||||
|
{
|
||||||
|
public TBYS_ZDFX_M()
|
||||||
|
{
|
||||||
|
AddFieldDefs("ZDLX", "撞单类型", false);
|
||||||
|
AddFieldDefs("BZSPDH", "报价单号(被撞)", false);
|
||||||
|
AddFieldDefs("ZCSPDH", "审批单号(撞出)");
|
||||||
|
AddFieldDefs("STATE", "流程状态");
|
||||||
|
AddFieldDefs("ND", "年度");
|
||||||
|
AddFieldDefs("TBRQS", "投标日期始");
|
||||||
|
AddFieldDefs("TBRQZ", "投标日期止");
|
||||||
|
AddFieldDefs("TBZT", "客户");
|
||||||
|
AddFieldDefs("XMMC", "项目名称");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
+159
@@ -0,0 +1,159 @@
|
|||||||
|
using System;
|
||||||
|
using System.Data;
|
||||||
|
using System.Configuration;
|
||||||
|
using System.Web;
|
||||||
|
using System.Web.Security;
|
||||||
|
using System.Web.UI;
|
||||||
|
using System.Web.UI.WebControls;
|
||||||
|
using System.Web.UI.WebControls.WebParts;
|
||||||
|
using System.Web.UI.HtmlControls;
|
||||||
|
using GThinking.N_MODEL.Page;
|
||||||
|
|
||||||
|
namespace GThinking.N_XLXSBJ
|
||||||
|
{
|
||||||
|
[TableMap(DB = "DBERP", DbTableName = "XLXSBJDYZZL", Umid = 100860169, IsWorkFlow = false, IsAttach = false, UseWhr = false,
|
||||||
|
QuerySelSql = "select XLXSBJDYZZL_JGBID, XLXSBJDYZZL_YZID, XLXSBJDYZZL_XLBZID, XLXSBJDYZZL_BJSLS, XLXSBJDYZZL_BJSLZ, "
|
||||||
|
+ " XLXSBJDYZZL_YZZ, XLXSBJDYZZL_WHR, XLXSBJDYZZL_WHRID, XLXSBJDYZZL_WHSJ "
|
||||||
|
+ " from XLXSBJDYZZL where 1=1 ",
|
||||||
|
|
||||||
|
EntitySelSql = " select XLXSBJDYZZL_JGBID, XLXSBJDYZZL_YZID, XLXSTZYZ_JJFS, XLXSBJDYZZL_XLBZID, "
|
||||||
|
+ " XLXSBJDYZZL_BJSLS, XLXSBJDYZZL_BJSLZ, XLXSBJDYZZL_YZZ, "
|
||||||
|
+ " XLXSBJDYZZL_WHR, XLXSBJDYZZL_WHRID, XLXSBJDYZZL_WHSJ "
|
||||||
|
+ " from XLXSBJDYZZL left join XLXSTZYZ on XLXSTZYZ_YZID=XLXSBJDYZZL_YZID and XLXSTZYZ_MXBH='BJD' "
|
||||||
|
+ " where XLXSBJDYZZL_JGBID=:XLXSBJDYZZL_JGBID and XLXSBJDYZZL_YZID=:XLXSBJDYZZL_YZID "
|
||||||
|
+ " and XLXSBJDYZZL_XLBZID=:XLXSBJDYZZL_XLBZID and XLXSBJDYZZL_BJSLS=:XLXSBJDYZZL_BJSLS "
|
||||||
|
+ " and XLXSBJDYZZL_BJSLZ=:XLXSBJDYZZL_BJSLZ ",
|
||||||
|
|
||||||
|
UpdateSql = " update XLXSBJDYZZL "
|
||||||
|
+ " set XLXSBJDYZZL_XLBZID=:XLXSBJDYZZL_XLBZID, XLXSBJDYZZL_BJSLS=isnull(:XLXSBJDYZZL_BJSLS,0), "
|
||||||
|
+ " XLXSBJDYZZL_BJSLZ=isnull(:XLXSBJDYZZL_BJSLZ,0), XLXSBJDYZZL_YZZ=isnull(:XLXSBJDYZZL_YZZ,0), "
|
||||||
|
+ " XLXSBJDYZZL_WHR=:XLXSBJDYZZL_WHR, XLXSBJDYZZL_WHRID=:XLXSBJDYZZL_WHRID, XLXSBJDYZZL_WHSJ=:XLXSBJDYZZL_WHSJ "
|
||||||
|
+ " where XLXSBJDYZZL_JGBID=:XLXSBJDYZZL_JGBID and XLXSBJDYZZL_YZID=:XLXSBJDYZZL_YZID "
|
||||||
|
+ " and XLXSBJDYZZL_XLBZID=:OLD_XLXSBJDYZZL_XLBZID and XLXSBJDYZZL_BJSLS=:OLD_XLXSBJDYZZL_BJSLS "
|
||||||
|
+ " and XLXSBJDYZZL_BJSLZ=:OLD_XLXSBJDYZZL_BJSLZ ",
|
||||||
|
|
||||||
|
InsertSql = " select XLXSBJDYZZL_JGBID from XLXSBJDYZZL where 1<>1 ",
|
||||||
|
|
||||||
|
DeleteSql = " delete from XLXSBJDYZZL where XLXSBJDYZZL_JGBID=:XLXSBJDYZZL_JGBID and XLXSBJDYZZL_YZID=:XLXSBJDYZZL_YZID "
|
||||||
|
+ " and XLXSBJDYZZL_XLBZID=:XLXSBJDYZZL_XLBZID and XLXSBJDYZZL_BJSLS=:XLXSBJDYZZL_BJSLS "
|
||||||
|
+ " and XLXSBJDYZZL_BJSLZ=:XLXSBJDYZZL_BJSLZ ")]
|
||||||
|
public class TZYZBJL : EntityManager
|
||||||
|
{
|
||||||
|
private string _XLXSBJDYZZL_JGBID;
|
||||||
|
[ColumnMap(DbField = "XLXSBJDYZZL_JGBID", CtrlName = "txtJGBID", DbTitle = "JGBID", Type = FieldType.HiddenField, DefaultValue = "",
|
||||||
|
IsAllowNull = false, IsKey = true, Length = 8)]
|
||||||
|
public string XLXSBJDYZZL_JGBID
|
||||||
|
{
|
||||||
|
get { return _XLXSBJDYZZL_JGBID; }
|
||||||
|
set { _XLXSBJDYZZL_JGBID = value; }
|
||||||
|
}
|
||||||
|
|
||||||
|
private string _XLXSBJDYZZL_YZID;
|
||||||
|
[ColumnMap(DbField = "XLXSBJDYZZL_YZID", CtrlName = "txtYZID", DbTitle = "YZID", Type = FieldType.HiddenField, DefaultValue = "",
|
||||||
|
IsAllowNull = false, IsKey = true, Length = 10)]
|
||||||
|
public string XLXSBJDYZZL_YZID
|
||||||
|
{
|
||||||
|
get { return _XLXSBJDYZZL_YZID; }
|
||||||
|
set { _XLXSBJDYZZL_YZID = value; }
|
||||||
|
}
|
||||||
|
|
||||||
|
private string _XLXSBJDYZZL_XLBZID;
|
||||||
|
[ColumnMap(DbField = "XLXSBJDYZZL_XLBZID", CtrlName = "cbxXLBZID", DbTitle = "XLBZID", Type = FieldType.CBX, DefaultValue = "",
|
||||||
|
IsAllowNull = false, IsKey = true, Length = 10)]
|
||||||
|
public string XLXSBJDYZZL_XLBZID
|
||||||
|
{
|
||||||
|
get { return _XLXSBJDYZZL_XLBZID; }
|
||||||
|
set { _XLXSBJDYZZL_XLBZID = value; }
|
||||||
|
}
|
||||||
|
|
||||||
|
private string _OLD_XLXSBJDYZZL_XLBZID;
|
||||||
|
[ColumnMap(DbField = "OLD_XLXSBJDYZZL_XLBZID", CtrlName = "txtOLD_XLBZID", DbTitle = "OLD_XLBZID", Type = FieldType.HiddenField, DefaultValue = "",
|
||||||
|
IsAllowNull = true, IsKey = false, Length = 10)]
|
||||||
|
public string OLD_XLXSBJDYZZL_XLBZID
|
||||||
|
{
|
||||||
|
get { return _OLD_XLXSBJDYZZL_XLBZID; }
|
||||||
|
set { _OLD_XLXSBJDYZZL_XLBZID = value; }
|
||||||
|
}
|
||||||
|
|
||||||
|
private string _XLXSBJDYZZL_BJSLS;
|
||||||
|
[ColumnMap(DbField = "XLXSBJDYZZL_BJSLS", CtrlName = "txtBJSLS", DbTitle = "BJSLS", Type = FieldType.F, DefaultValue = "0",
|
||||||
|
IsAllowNull = false, IsKey = true, Length = 0)]
|
||||||
|
public string XLXSBJDYZZL_BJSLS
|
||||||
|
{
|
||||||
|
get { return _XLXSBJDYZZL_BJSLS; }
|
||||||
|
set { _XLXSBJDYZZL_BJSLS = value; }
|
||||||
|
}
|
||||||
|
|
||||||
|
private string _OLD_XLXSBJDYZZL_BJSLS;
|
||||||
|
[ColumnMap(DbField = "OLD_XLXSBJDYZZL_BJSLS", CtrlName = "txtOLD_BJSLS", DbTitle = "OLD_BJSLS", Type = FieldType.HiddenField, DefaultValue = "0",
|
||||||
|
IsAllowNull = true, IsKey = false, Length = 0)]
|
||||||
|
public string OLD_XLXSBJDYZZL_BJSLS
|
||||||
|
{
|
||||||
|
get { return _OLD_XLXSBJDYZZL_BJSLS; }
|
||||||
|
set { _OLD_XLXSBJDYZZL_BJSLS = value; }
|
||||||
|
}
|
||||||
|
|
||||||
|
private string _XLXSBJDYZZL_BJSLZ;
|
||||||
|
[ColumnMap(DbField = "XLXSBJDYZZL_BJSLZ", CtrlName = "txtBJSLZ", DbTitle = "BJSLZ", Type = FieldType.F, DefaultValue = "0",
|
||||||
|
IsAllowNull = false, IsKey = true, Length = 0)]
|
||||||
|
public string XLXSBJDYZZL_BJSLZ
|
||||||
|
{
|
||||||
|
get { return _XLXSBJDYZZL_BJSLZ; }
|
||||||
|
set { _XLXSBJDYZZL_BJSLZ = value; }
|
||||||
|
}
|
||||||
|
|
||||||
|
private string _OLD_XLXSBJDYZZL_BJSLZ;
|
||||||
|
[ColumnMap(DbField = "OLD_XLXSBJDYZZL_BJSLZ", CtrlName = "txtOLD_BJSLZ", DbTitle = "OLD_BJSLZ", Type = FieldType.HiddenField, DefaultValue = "0",
|
||||||
|
IsAllowNull = true, IsKey = false, Length = 0)]
|
||||||
|
public string OLD_XLXSBJDYZZL_BJSLZ
|
||||||
|
{
|
||||||
|
get { return _OLD_XLXSBJDYZZL_BJSLZ; }
|
||||||
|
set { _OLD_XLXSBJDYZZL_BJSLZ = value; }
|
||||||
|
}
|
||||||
|
|
||||||
|
private string _XLXSTZYZ_JJFS;
|
||||||
|
[ColumnMap(DbField = "XLXSTZYZ_JJFS", CtrlName = "cbxJJFS", DbTitle = "JJFS", Type = FieldType.CBX, DefaultValue = "",
|
||||||
|
IsAllowNull = true, IsKey = false, Length = 2)]
|
||||||
|
public string XLXSTZYZ_JJFS
|
||||||
|
{
|
||||||
|
get { return _XLXSTZYZ_JJFS; }
|
||||||
|
set { _XLXSTZYZ_JJFS = value; }
|
||||||
|
}
|
||||||
|
|
||||||
|
private string _XLXSBJDYZZL_YZZ;
|
||||||
|
[ColumnMap(DbField = "XLXSBJDYZZL_YZZ", CtrlName = "txtYZZ", DbTitle = "YZZ", Type = FieldType.F, DefaultValue = "0",
|
||||||
|
IsAllowNull = true, IsKey = false, Length = 0)]
|
||||||
|
public string XLXSBJDYZZL_YZZ
|
||||||
|
{
|
||||||
|
get { return _XLXSBJDYZZL_YZZ; }
|
||||||
|
set { _XLXSBJDYZZL_YZZ = value; }
|
||||||
|
}
|
||||||
|
|
||||||
|
private string _XLXSBJDYZZL_WHR;
|
||||||
|
[ColumnMap(DbField = "XLXSBJDYZZL_WHR", CtrlName = "txtWHR", DbTitle = "WHR", Type = FieldType.C, DefaultValue = "",
|
||||||
|
IsAllowNull = true, IsKey = false, Length = 30)]
|
||||||
|
public string XLXSBJDYZZL_WHR
|
||||||
|
{
|
||||||
|
get { return _XLXSBJDYZZL_WHR; }
|
||||||
|
set { _XLXSBJDYZZL_WHR = value; }
|
||||||
|
}
|
||||||
|
|
||||||
|
private string _XLXSBJDYZZL_WHRID;
|
||||||
|
[ColumnMap(DbField = "XLXSBJDYZZL_WHRID", CtrlName = "txtWHRID", DbTitle = "WHRID", Type = FieldType.HiddenField, DefaultValue = "",
|
||||||
|
IsAllowNull = true, IsKey = false, Length = 10)]
|
||||||
|
public string XLXSBJDYZZL_WHRID
|
||||||
|
{
|
||||||
|
get { return _XLXSBJDYZZL_WHRID; }
|
||||||
|
set { _XLXSBJDYZZL_WHRID = value; }
|
||||||
|
}
|
||||||
|
|
||||||
|
private string _XLXSBJDYZZL_WHSJ;
|
||||||
|
[ColumnMap(DbField = "XLXSBJDYZZL_WHSJ", CtrlName = "datWHSJ", DbTitle = "WHSJ", Type = FieldType.DT, DefaultValue = "",
|
||||||
|
IsAllowNull = true, IsKey = false, Length = 10)]
|
||||||
|
public string XLXSBJDYZZL_WHSJ
|
||||||
|
{
|
||||||
|
get { return _XLXSBJDYZZL_WHSJ; }
|
||||||
|
set { _XLXSBJDYZZL_WHSJ = value; }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,214 @@
|
|||||||
|
<%@ Page Language="C#" MasterPageFile="~/N_MODEL/Page/MasterSingleCard.Master" AutoEventWireup="true"
|
||||||
|
Codebehind="TZYZBJLInfo.aspx.cs" Inherits="GThinking.N_XLXSBJ.TZYZBJLInfo"
|
||||||
|
Title="按标准加报价数量区间调报价" %>
|
||||||
|
|
||||||
|
<%@ MasterType VirtualPath="~/N_MODEL/Page/MasterSingleCard.Master" %>
|
||||||
|
<asp:Content ID="cntTool" ContentPlaceHolderID="cphUserToolbar" runat="server">
|
||||||
|
</asp:Content>
|
||||||
|
<asp:Content ID="cntForm" ContentPlaceHolderID="cphForm" runat="server">
|
||||||
|
<table cellpadding="0" cellspacing="0">
|
||||||
|
<tr style="height: 3px;" />
|
||||||
|
<tr>
|
||||||
|
<td align="right">
|
||||||
|
<gtc:gtLabel ID="GtLabel7" runat="server">标准:</gtc:gtLabel>
|
||||||
|
</td>
|
||||||
|
<td align="left">
|
||||||
|
<gtc:gtComboBox ID="cbxXLBZID" runat="server" Width="140px" Tag="Star" ShowValue="true">
|
||||||
|
</gtc:gtComboBox>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr style="height: 3px;" />
|
||||||
|
<tr>
|
||||||
|
<td align="right">
|
||||||
|
<gtc:gtLabel ID="lblBJSLS" runat="server">报价数量始:</gtc:gtLabel>
|
||||||
|
</td>
|
||||||
|
<td align="left">
|
||||||
|
<gtc:gtNumTextBox ID="txtBJSLS" runat="server" Width="80px" DecimalPlaces="3" IsQuantity="true" ShowZero="true"></gtc:gtNumTextBox>
|
||||||
|
</td>
|
||||||
|
<td align="right">
|
||||||
|
<gtc:gtLabel ID="lblBJSLZ" runat="server">报价数量止:</gtc:gtLabel>
|
||||||
|
</td>
|
||||||
|
<td align="left">
|
||||||
|
<gtc:gtNumTextBox ID="txtBJSLZ" runat="server" Width="80px" DecimalPlaces="3" IsQuantity="true"></gtc:gtNumTextBox>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr style="height: 3px;" />
|
||||||
|
<tr>
|
||||||
|
<td align="right">
|
||||||
|
<gtc:gtLabel ID="lblTJYZ1" runat="server">调价因子01:</gtc:gtLabel>
|
||||||
|
</td>
|
||||||
|
<td align="left">
|
||||||
|
<gtc:gtNumTextBox ID="txtTJYZ1" runat="server" Width="80px" ShowZero="false"></gtc:gtNumTextBox>
|
||||||
|
</td>
|
||||||
|
<td align="right">
|
||||||
|
<gtc:gtLabel ID="lblTJYZ11" runat="server">调价因子11:</gtc:gtLabel>
|
||||||
|
</td>
|
||||||
|
<td align="left">
|
||||||
|
<gtc:gtNumTextBox ID="txtTJYZ11" runat="server" Width="80px" ShowZero="false"></gtc:gtNumTextBox>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr style="height: 3px;" />
|
||||||
|
<tr>
|
||||||
|
<td align="right">
|
||||||
|
<gtc:gtLabel ID="lblTJYZ2" runat="server">调价因子02:</gtc:gtLabel>
|
||||||
|
</td>
|
||||||
|
<td align="left">
|
||||||
|
<gtc:gtNumTextBox ID="txtTJYZ2" runat="server" Width="80px" ShowZero="false"></gtc:gtNumTextBox>
|
||||||
|
</td>
|
||||||
|
<td align="right">
|
||||||
|
<gtc:gtLabel ID="lblTJYZ12" runat="server">调价因子12:</gtc:gtLabel>
|
||||||
|
</td>
|
||||||
|
<td align="left">
|
||||||
|
<gtc:gtNumTextBox ID="txtTJYZ12" runat="server" Width="80px" ShowZero="false"></gtc:gtNumTextBox>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr style="height: 3px;" />
|
||||||
|
<tr>
|
||||||
|
<td align="right">
|
||||||
|
<gtc:gtLabel ID="lblTJYZ3" runat="server">调价因子03:</gtc:gtLabel>
|
||||||
|
</td>
|
||||||
|
<td align="left">
|
||||||
|
<gtc:gtNumTextBox ID="txtTJYZ3" runat="server" Width="80px" ShowZero="false"></gtc:gtNumTextBox>
|
||||||
|
</td>
|
||||||
|
<td align="right">
|
||||||
|
<gtc:gtLabel ID="lblTJYZ13" runat="server">调价因子13:</gtc:gtLabel>
|
||||||
|
</td>
|
||||||
|
<td align="left">
|
||||||
|
<gtc:gtNumTextBox ID="txtTJYZ13" runat="server" Width="80px" ShowZero="false"></gtc:gtNumTextBox>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr style="height: 3px;" />
|
||||||
|
<tr>
|
||||||
|
<td align="right">
|
||||||
|
<gtc:gtLabel ID="lblTJYZ4" runat="server">调价因子04:</gtc:gtLabel>
|
||||||
|
</td>
|
||||||
|
<td align="left">
|
||||||
|
<gtc:gtNumTextBox ID="txtTJYZ4" runat="server" Width="80px" ShowZero="false"></gtc:gtNumTextBox>
|
||||||
|
</td>
|
||||||
|
<td align="right">
|
||||||
|
<gtc:gtLabel ID="lblTJYZ14" runat="server">调价因子14:</gtc:gtLabel>
|
||||||
|
</td>
|
||||||
|
<td align="left">
|
||||||
|
<gtc:gtNumTextBox ID="txtTJYZ14" runat="server" Width="80px" ShowZero="false"></gtc:gtNumTextBox>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr style="height: 3px;" />
|
||||||
|
<tr>
|
||||||
|
<td align="right">
|
||||||
|
<gtc:gtLabel ID="lblTJYZ5" runat="server">调价因子05:</gtc:gtLabel>
|
||||||
|
</td>
|
||||||
|
<td align="left">
|
||||||
|
<gtc:gtNumTextBox ID="txtTJYZ5" runat="server" Width="80px" ShowZero="false"></gtc:gtNumTextBox>
|
||||||
|
</td>
|
||||||
|
<td align="right">
|
||||||
|
<gtc:gtLabel ID="lblTJYZ15" runat="server">调价因子15:</gtc:gtLabel>
|
||||||
|
</td>
|
||||||
|
<td align="left">
|
||||||
|
<gtc:gtNumTextBox ID="txtTJYZ15" runat="server" Width="80px" ShowZero="false"></gtc:gtNumTextBox>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr style="height: 3px;" />
|
||||||
|
<tr>
|
||||||
|
<td align="right">
|
||||||
|
<gtc:gtLabel ID="lblTJYZ6" runat="server">调价因子06:</gtc:gtLabel>
|
||||||
|
</td>
|
||||||
|
<td align="left">
|
||||||
|
<gtc:gtNumTextBox ID="txtTJYZ6" runat="server" Width="80px" ShowZero="false"></gtc:gtNumTextBox>
|
||||||
|
</td>
|
||||||
|
<td align="right">
|
||||||
|
<gtc:gtLabel ID="lblTJYZ16" runat="server">调价因子16:</gtc:gtLabel>
|
||||||
|
</td>
|
||||||
|
<td align="left">
|
||||||
|
<gtc:gtNumTextBox ID="txtTJYZ16" runat="server" Width="80px" ShowZero="false"></gtc:gtNumTextBox>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr style="height: 3px;" />
|
||||||
|
<tr>
|
||||||
|
<td align="right">
|
||||||
|
<gtc:gtLabel ID="lblTJYZ7" runat="server">调价因子07:</gtc:gtLabel>
|
||||||
|
</td>
|
||||||
|
<td align="left">
|
||||||
|
<gtc:gtNumTextBox ID="txtTJYZ7" runat="server" Width="80px" ShowZero="false"></gtc:gtNumTextBox>
|
||||||
|
</td>
|
||||||
|
<td align="right">
|
||||||
|
<gtc:gtLabel ID="lblTJYZ17" runat="server">调价因子17:</gtc:gtLabel>
|
||||||
|
</td>
|
||||||
|
<td align="left">
|
||||||
|
<gtc:gtNumTextBox ID="txtTJYZ17" runat="server" Width="80px" ShowZero="false"></gtc:gtNumTextBox>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr style="height: 3px;" />
|
||||||
|
<tr>
|
||||||
|
<td align="right">
|
||||||
|
<gtc:gtLabel ID="lblTJYZ8" runat="server">调价因子08:</gtc:gtLabel>
|
||||||
|
</td>
|
||||||
|
<td align="left">
|
||||||
|
<gtc:gtNumTextBox ID="txtTJYZ8" runat="server" Width="80px" ShowZero="false"></gtc:gtNumTextBox>
|
||||||
|
</td>
|
||||||
|
<td align="right">
|
||||||
|
<gtc:gtLabel ID="lblTJYZ18" runat="server">调价因子18:</gtc:gtLabel>
|
||||||
|
</td>
|
||||||
|
<td align="left">
|
||||||
|
<gtc:gtNumTextBox ID="txtTJYZ18" runat="server" Width="80px" ShowZero="false"></gtc:gtNumTextBox>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr style="height: 3px;" />
|
||||||
|
<tr>
|
||||||
|
<td align="right">
|
||||||
|
<gtc:gtLabel ID="lblTJYZ9" runat="server">调价因子09:</gtc:gtLabel>
|
||||||
|
</td>
|
||||||
|
<td align="left">
|
||||||
|
<gtc:gtNumTextBox ID="txtTJYZ9" runat="server" Width="80px" ShowZero="false"></gtc:gtNumTextBox>
|
||||||
|
</td>
|
||||||
|
<td align="right">
|
||||||
|
<gtc:gtLabel ID="lblTJYZ19" runat="server">调价因子19:</gtc:gtLabel>
|
||||||
|
</td>
|
||||||
|
<td align="left">
|
||||||
|
<gtc:gtNumTextBox ID="txtTJYZ19" runat="server" Width="80px" ShowZero="false"></gtc:gtNumTextBox>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr style="height: 3px;" />
|
||||||
|
<tr>
|
||||||
|
<td align="right">
|
||||||
|
<gtc:gtLabel ID="lblTJYZ10" runat="server">调价因子10:</gtc:gtLabel>
|
||||||
|
</td>
|
||||||
|
<td align="left">
|
||||||
|
<gtc:gtNumTextBox ID="txtTJYZ10" runat="server" Width="80px" ShowZero="false"></gtc:gtNumTextBox>
|
||||||
|
</td>
|
||||||
|
<td align="right">
|
||||||
|
<gtc:gtLabel ID="lblTJYZ20" runat="server">调价因子20:</gtc:gtLabel>
|
||||||
|
</td>
|
||||||
|
<td align="left">
|
||||||
|
<gtc:gtNumTextBox ID="txtTJYZ20" runat="server" Width="80px" ShowZero="false"></gtc:gtNumTextBox>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr style="height: 3px;" />
|
||||||
|
<tr>
|
||||||
|
<td align="right">
|
||||||
|
<gtc:gtLabel ID="GtLabel5" runat="server">维护人:</gtc:gtLabel>
|
||||||
|
</td>
|
||||||
|
<td align="left">
|
||||||
|
<gtc:gtTextBox ID="txtWHR" runat="server" Width="72px"></gtc:gtTextBox>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr style="height: 3px;" />
|
||||||
|
<tr>
|
||||||
|
<td align="right">
|
||||||
|
<gtc:gtLabel ID="GtLabel6" runat="server">维护时间:</gtc:gtLabel>
|
||||||
|
</td>
|
||||||
|
<td align="left">
|
||||||
|
<gtc:gtDateTime ID="datWHSJ" runat="server" Width="142px">
|
||||||
|
</gtc:gtDateTime>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
<asp:HiddenField ID="txtWHRID" runat="server" />
|
||||||
|
<asp:HiddenField ID="txtJGBID" runat="server" />
|
||||||
|
<asp:HiddenField ID="txtYZID" runat="server" />
|
||||||
|
<asp:HiddenField ID="txtOLD_YZID" runat="server" />
|
||||||
|
<asp:HiddenField ID="txtOLD_XLBZID" runat="server" />
|
||||||
|
<asp:HiddenField ID="txtOLD_BJSLS" runat="server" />
|
||||||
|
<asp:HiddenField ID="txtOLD_BJSLZ" runat="server" />
|
||||||
|
</asp:Content>
|
||||||
|
<asp:Content ID="cntHiFZRen" ContentPlaceHolderID="cphBrand" runat="server">
|
||||||
|
</asp:Content>
|
||||||
@@ -0,0 +1,356 @@
|
|||||||
|
using System;
|
||||||
|
using System.Data;
|
||||||
|
using System.Configuration;
|
||||||
|
using System.Collections;
|
||||||
|
using System.Web;
|
||||||
|
using System.Web.Security;
|
||||||
|
using System.Web.UI;
|
||||||
|
using System.Web.UI.WebControls;
|
||||||
|
using System.Web.UI.WebControls.WebParts;
|
||||||
|
using System.Web.UI.HtmlControls;
|
||||||
|
using GThinking.N_MISPRO;
|
||||||
|
using GThinking.N_MISPRO.Data;
|
||||||
|
using GThinking.N_MODEL.Page;
|
||||||
|
using GThinking.N_MISPRO.Utility;
|
||||||
|
using GThinking.N_PUBLIC;
|
||||||
|
using GThinking.N_MODEL.Dialog;
|
||||||
|
using GThinking.N_CONTROL;
|
||||||
|
|
||||||
|
namespace GThinking.N_XLXSBJ
|
||||||
|
{
|
||||||
|
public partial class TZYZBJLInfo : SingleCardBase
|
||||||
|
{
|
||||||
|
TZYZBJL entity = new TZYZBJL();
|
||||||
|
|
||||||
|
protected void Page_Load(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
this.UMID = 100860169;
|
||||||
|
this.UMName = "按标准加报价数量区间调报价";
|
||||||
|
this.CurMaster = Master;
|
||||||
|
this.CurEntity = entity;
|
||||||
|
this.PageHeight = 430;
|
||||||
|
this.PageWidth = 560;
|
||||||
|
|
||||||
|
SetTJYZLable();
|
||||||
|
|
||||||
|
if (!this.IsPostBack)
|
||||||
|
{
|
||||||
|
InitControls();
|
||||||
|
}
|
||||||
|
|
||||||
|
base.InitPage();
|
||||||
|
}
|
||||||
|
|
||||||
|
#region 模板事件继承
|
||||||
|
|
||||||
|
protected override void ReportDataSetAdd()
|
||||||
|
{
|
||||||
|
TDatabase db = TContextDatabases.GetDatabase("DBERP");
|
||||||
|
TSQL sql = new TSQL(db);
|
||||||
|
sql.Add("select XLXSTZYZ_YZID, XLXSTZYZ_YZMC from XLXSTZYZ where XLXSTZYZ_MXBH='BJD' and XLXSTZYZ_TJYS='L' order by XLXSTZYZ_XSXH,XLXSTZYZ_YZID ");
|
||||||
|
DataSet ds = db.OpenDataSet(sql);
|
||||||
|
for (int i = 0; i < ds.Tables[0].Rows.Count; i++)
|
||||||
|
{
|
||||||
|
string sYZID = "TZYZ_" + ds.Tables[0].Rows[i]["XLXSTZYZ_YZID"].ToString().Trim();
|
||||||
|
string sYZMC = ds.Tables[0].Rows[i]["XLXSTZYZ_YZMC"].ToString().Trim();
|
||||||
|
AddUserReportField("XLXSBJDYZZL", sYZID, sYZMC, "N");
|
||||||
|
}
|
||||||
|
|
||||||
|
base.ReportDataSetAdd();
|
||||||
|
}
|
||||||
|
|
||||||
|
protected override void ReportRecordSetAdd()
|
||||||
|
{
|
||||||
|
TDatabase dberp = TContextDatabases.GetDatabase("DBERP");
|
||||||
|
TSQL sSQL = new TSQL(dberp);
|
||||||
|
TSQL SQL = new TSQL(dberp);
|
||||||
|
SQL.Clear();
|
||||||
|
SQL.Add("select XLXSTZYZ_YZID, XLXSTZYZ_YZMC ");
|
||||||
|
SQL.Add(" from XLXSTZYZ");
|
||||||
|
SQL.Add(" where XLXSTZYZ_MXBH = 'BJD' and XLXSTZYZ_TJYS='L' order by XLXSTZYZ_XSXH,XLXSTZYZ_YZID ");
|
||||||
|
DataSet ds = dberp.OpenDataSet(SQL);
|
||||||
|
for (int i = 0; i < ds.Tables[0].Rows.Count; i++)
|
||||||
|
{
|
||||||
|
sSQL.Add(string.Format(",sum(decode(XLXSBJDYZZL_YZID, '{0}', XLXSBJDYZZL_YZZ, 0)) as TZYZ_{0}", ds.Tables[0].Rows[i][0].ToString().Trim()));
|
||||||
|
}
|
||||||
|
sSQL.Text = "select 1" + sSQL.Text + " from XLXSBJDYZZL where XLXSBJDYZZL_JGBID='" + txtJGBID.Value.Trim() + "' and XLXSBJDYZZL_XLBZID='" + cbxXLBZID.SelectedValue.Trim() + "' and XLXSBJDYZZL_BJSLS=" + txtBJSLS.Value + " and XLXSBJDYZZL_BJSLZ=" + txtBJSLZ.Value;
|
||||||
|
AddUserReportSQL("XLXSBJDYZZL", sSQL);
|
||||||
|
base.ReportRecordSetAdd();
|
||||||
|
}
|
||||||
|
|
||||||
|
protected override void SetControlState()
|
||||||
|
{
|
||||||
|
base.SetControlState();
|
||||||
|
|
||||||
|
txtWHR.Enabled = false;
|
||||||
|
datWHSJ.Enabled = false;
|
||||||
|
|
||||||
|
# region 给调价因子控件设只读性
|
||||||
|
if (ControlState == TControlState.ctsInsert || ControlState == TControlState.ctsCopy || ControlState == TControlState.ctsEdit)
|
||||||
|
{
|
||||||
|
for (int i = 1; i <= 20; i++)
|
||||||
|
{
|
||||||
|
gtNumTextBox txtTJYZ = (gtNumTextBox)Master.ContentFormControl.FindControl("txt" + "TJYZ" + i);
|
||||||
|
txtTJYZ.Enabled = false;
|
||||||
|
}
|
||||||
|
|
||||||
|
string[] sTJYZList = PageParam.GetRTrimString("TJYZList").Split(',');
|
||||||
|
for (int i = 0; i < sTJYZList.Length; i++)
|
||||||
|
{
|
||||||
|
for (int j = 1; j <= 20; j++)
|
||||||
|
{
|
||||||
|
string sTZYZID = "BJ" + j.ToString().PadLeft(2, '0') + "|";
|
||||||
|
gtNumTextBox txtTJYZ = (gtNumTextBox)Master.ContentFormControl.FindControl("txt" + "TJYZ" + j.ToString().Trim());
|
||||||
|
if (sTJYZList[i].StartsWith(sTZYZID))
|
||||||
|
{
|
||||||
|
txtTJYZ.Enabled = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endregion
|
||||||
|
}
|
||||||
|
|
||||||
|
protected override void LoadRecord()
|
||||||
|
{
|
||||||
|
if (!IsPostBack)
|
||||||
|
{
|
||||||
|
entity.Param.Add("XLXSBJDYZZL_JGBID", PageParam.GetRTrimString("XLXSBJDYZZL_JGBID"));
|
||||||
|
entity.Param.Add("XLXSBJDYZZL_XLBZID", PageParam.GetRTrimString("XLXSBJDYZZL_XLBZID"));
|
||||||
|
entity.Param.Add("XLXSBJDYZZL_BJSLS", PageParam.GetRTrimString("XLXSBJDYZZL_BJSLS"));
|
||||||
|
entity.Param.Add("XLXSBJDYZZL_BJSLZ", PageParam.GetRTrimString("XLXSBJDYZZL_BJSLZ"));
|
||||||
|
entity.Param.Add("XLXSBJDYZZL_YZID", PageParam.GetRTrimString("XLXSBJDYZZL_YZID"));
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
entity.Param.Add("XLXSBJDYZZL_JGBID", txtJGBID.Value.Trim());
|
||||||
|
entity.Param.Add("XLXSBJDYZZL_XLBZID", txtOLD_XLBZID.Value.Trim());
|
||||||
|
entity.Param.Add("XLXSBJDYZZL_BJSLS", txtOLD_BJSLS.Value.Trim());
|
||||||
|
entity.Param.Add("XLXSBJDYZZL_BJSLZ", txtOLD_BJSLZ.Value.Trim());
|
||||||
|
entity.Param.Add("XLXSBJDYZZL_YZID", txtYZID.Value.Trim());
|
||||||
|
}
|
||||||
|
base.LoadRecord();
|
||||||
|
SetOldValues();
|
||||||
|
|
||||||
|
# region 给调价因子控件赋值
|
||||||
|
TDatabase dberp = TContextDatabases.GetDatabase("DBERP");
|
||||||
|
TSQL sql = new TSQL(dberp);
|
||||||
|
sql.Clear();
|
||||||
|
sql.Add(" select XLXSBJDYZZL_YZID, XLXSBJDYZZL_YZZ from XLXSBJDYZZL ");
|
||||||
|
sql.Add(" where XLXSBJDYZZL_JGBID=:pJGBID and XLXSBJDYZZL_XLBZID=:pXLBZID and XLXSBJDYZZL_BJSLS=:pBJSLS and XLXSBJDYZZL_BJSLZ=:pBJSLZ order by XLXSBJDYZZL_YZID");
|
||||||
|
sql.ParamByName("pJGBID").Value = txtJGBID.Value.Trim();
|
||||||
|
sql.ParamByName("pXLBZID").Value = cbxXLBZID.SelectedValue.Trim();
|
||||||
|
sql.ParamByName("pBJSLS").Value = txtBJSLS.Value;
|
||||||
|
sql.ParamByName("pBJSLZ").Value = txtBJSLZ.Value;
|
||||||
|
DataSet ds = dberp.OpenDataSet(sql);
|
||||||
|
for (int i = 0; i < ds.Tables[0].Rows.Count; i++)
|
||||||
|
{
|
||||||
|
string sYZID = ds.Tables[0].Rows[i][0].ToString().Trim();
|
||||||
|
double dYZZ = CMISproConvert.StrToFloat(ds.Tables[0].Rows[i][1].ToString().Trim());
|
||||||
|
if (PageParam.GetRTrimString("TJYZList").Contains(sYZID + "|"))
|
||||||
|
{
|
||||||
|
for (int j = 1; j <= 20; j++)
|
||||||
|
{
|
||||||
|
string sTZYZID = "BJ" + j.ToString().PadLeft(2, '0');
|
||||||
|
gtNumTextBox txtTJYZ = (gtNumTextBox)Master.ContentFormControl.FindControl("txt" + "TJYZ" + j.ToString().Trim());
|
||||||
|
if (sYZID.Equals(sTZYZID))
|
||||||
|
txtTJYZ.Value = dYZZ;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endregion
|
||||||
|
}
|
||||||
|
|
||||||
|
protected override void OnNewRecorder()
|
||||||
|
{
|
||||||
|
base.OnNewRecorder();
|
||||||
|
txtJGBID.Value = PageParam.GetRTrimString("XLXSBJDYZZL_JGBID");
|
||||||
|
txtWHR.Text = tSession.UserName;
|
||||||
|
txtWHRID.Value = tSession.UserId;
|
||||||
|
datWHSJ.Text = CMISproConvert.ConvertTime(System.DateTime.Now);
|
||||||
|
}
|
||||||
|
|
||||||
|
protected override void OnCopyRecorder()
|
||||||
|
{
|
||||||
|
base.OnCopyRecorder();
|
||||||
|
txtJGBID.Value = PageParam.GetRTrimString("XLXSBJDYZZL_JGBID");
|
||||||
|
txtWHR.Text = tSession.UserName;
|
||||||
|
txtWHRID.Value = tSession.UserId;
|
||||||
|
datWHSJ.Text = CMISproConvert.ConvertTime(System.DateTime.Now);
|
||||||
|
}
|
||||||
|
|
||||||
|
protected override bool DataLogicValid()
|
||||||
|
{
|
||||||
|
if (!base.DataLogicValid()) return false;
|
||||||
|
|
||||||
|
if (cbxXLBZID.SelectedValue.Trim().Equals(""))
|
||||||
|
{
|
||||||
|
ShowMessage("标准不允许为空!");
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
if (txtBJSLS.Value < 0 || txtBJSLZ.Value < 0)
|
||||||
|
{
|
||||||
|
ShowMessage("报价数量区间不允许为负数!");
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
if (txtBJSLZ.Value != 0 && txtBJSLS.Value >= txtBJSLZ.Value)
|
||||||
|
{
|
||||||
|
ShowMessage("报价数量始必须小于报价数量止!");
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
if (HasOverlappedRange())
|
||||||
|
{
|
||||||
|
ShowMessage("当前标准、报价数量区间已存在交集记录,不允许保存!");
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
protected override bool Master_BeforeDeleteAction(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
string sYZIDlist = TZYZBJAInfo.GetYZIDList(PageParam.GetRTrimString("TJYZList"));
|
||||||
|
entity.EntityTable.DeleteSql = " delete from XLXSBJDYZZL where XLXSBJDYZZL_JGBID=:XLXSBJDYZZL_JGBID and XLXSBJDYZZL_XLBZID=:XLXSBJDYZZL_XLBZID and XLXSBJDYZZL_BJSLS=:XLXSBJDYZZL_BJSLS and XLXSBJDYZZL_BJSLZ=:XLXSBJDYZZL_BJSLZ and "
|
||||||
|
+ CMISproDataBase.GetWhereEqual("XLXSBJDYZZL_YZID", sYZIDlist);
|
||||||
|
return base.Master_BeforeDeleteAction(sender, e);
|
||||||
|
}
|
||||||
|
|
||||||
|
protected override bool Master_BeforeSaveAction(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
if (!base.Master_BeforeSaveAction(sender, e)) return false;
|
||||||
|
string sYZIDlist = TZYZBJAInfo.GetYZIDList(PageParam.GetRTrimString("TJYZList"));
|
||||||
|
entity.EntityTable.UpdateSql = " update XLXSBJDYZZL " + "\r\n"
|
||||||
|
+ " set XLXSBJDYZZL_XLBZID=:XLXSBJDYZZL_XLBZID, XLXSBJDYZZL_BJSLS=isnull(:XLXSBJDYZZL_BJSLS,0), XLXSBJDYZZL_BJSLZ=isnull(:XLXSBJDYZZL_BJSLZ,0), "
|
||||||
|
+ " XLXSBJDYZZL_WHR=:XLXSBJDYZZL_WHR, XLXSBJDYZZL_WHRID=:XLXSBJDYZZL_WHRID, XLXSBJDYZZL_WHSJ=:XLXSBJDYZZL_WHSJ " + "\r\n"
|
||||||
|
+ " where XLXSBJDYZZL_JGBID=:XLXSBJDYZZL_JGBID and XLXSBJDYZZL_XLBZID=:OLD_XLXSBJDYZZL_XLBZID and XLXSBJDYZZL_BJSLS=:OLD_XLXSBJDYZZL_BJSLS and XLXSBJDYZZL_BJSLZ=:OLD_XLXSBJDYZZL_BJSLZ and "
|
||||||
|
+ CMISproDataBase.GetWhereEqual("XLXSBJDYZZL_YZID", sYZIDlist);
|
||||||
|
txtWHR.Text = tSession.UserName;
|
||||||
|
txtWHRID.Value = tSession.UserId;
|
||||||
|
datWHSJ.Text = CMISproConvert.ConvertTime(System.DateTime.Now);
|
||||||
|
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
protected override bool Master_AfterSaveAction(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
SetOldValues();
|
||||||
|
txtYZID.Value = PageParam.GetRTrimString("FirstYZID");
|
||||||
|
|
||||||
|
string sJGBID = txtJGBID.Value.Trim();
|
||||||
|
string sXLBZID = cbxXLBZID.SelectedValue.Trim();
|
||||||
|
string sBJSLS = txtBJSLS.Value.ToString().Trim();
|
||||||
|
string sBJSLZ = txtBJSLZ.Value.ToString().Trim();
|
||||||
|
# region 将调价因子控件值更新至数据库中
|
||||||
|
TDatabase dberp = TContextDatabases.GetDatabase("DBERP");
|
||||||
|
TSQL sql = new TSQL(dberp);
|
||||||
|
sql.Clear();
|
||||||
|
string sYZIDlist = TZYZBJAInfo.GetYZIDList(PageParam.GetRTrimString("TJYZList"));
|
||||||
|
dberp.ExecSQL(string.Format("delete from XLXSBJDYZZL where XLXSBJDYZZL_JGBID='{0}' and XLXSBJDYZZL_XLBZID='{1}' and XLXSBJDYZZL_BJSLS={2} and XLXSBJDYZZL_BJSLZ={3} and " + CMISproDataBase.GetWhereEqual("XLXSBJDYZZL_YZID", sYZIDlist), sJGBID, sXLBZID, sBJSLS, sBJSLZ));
|
||||||
|
|
||||||
|
string[] sTJYZList = PageParam.GetRTrimString("TJYZList").Split(',');
|
||||||
|
DateTime tNow = DateTime.Now;
|
||||||
|
for (int i = 0; i < sTJYZList.Length; i++)
|
||||||
|
{
|
||||||
|
sql.Clear();
|
||||||
|
sql.Add("insert into XLXSBJDYZZL(XLXSBJDYZZL_JGBID, XLXSBJDYZZL_XLBZID, XLXSBJDYZZL_BJSLS, XLXSBJDYZZL_BJSLZ, XLXSBJDYZZL_YZID, XLXSBJDYZZL_YZZ, XLXSBJDYZZL_WHR, XLXSBJDYZZL_WHRID, XLXSBJDYZZL_WHSJ)");
|
||||||
|
sql.Add(" values(:pJGBID,:pXLBZID,:pBJSLS,:pBJSLZ,:pYZID,:pYZZ,:pWHR,:pWHRID,:pWHSJ)");
|
||||||
|
sql.ParamByName("pJGBID").Value = sJGBID;
|
||||||
|
sql.ParamByName("pXLBZID").Value = sXLBZID;
|
||||||
|
sql.ParamByName("pBJSLS").Value = sBJSLS;
|
||||||
|
sql.ParamByName("pBJSLZ").Value = sBJSLZ;
|
||||||
|
sql.ParamByName("pWHR").Value = tSession.UserName;
|
||||||
|
sql.ParamByName("pWHRID").Value = tSession.UserId;
|
||||||
|
sql.ParamByName("pWHSJ").Value = tNow;
|
||||||
|
|
||||||
|
for (int j = 1; j <= 20; j++)
|
||||||
|
{
|
||||||
|
string sTZYZID = "BJ" + j.ToString().PadLeft(2, '0') + "|";
|
||||||
|
gtNumTextBox txtTJYZ = (gtNumTextBox)Master.ContentFormControl.FindControl("txt" + "TJYZ" + j.ToString().Trim());
|
||||||
|
if (sTJYZList[i].StartsWith(sTZYZID))
|
||||||
|
{
|
||||||
|
sql.ParamByName("pYZID").Value = sTZYZID.TrimEnd('|');
|
||||||
|
sql.ParamByName("pYZZ").Value = txtTJYZ.Value;
|
||||||
|
dberp.ExecSQL(sql);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endregion
|
||||||
|
return base.Master_AfterSaveAction(sender, e);
|
||||||
|
}
|
||||||
|
|
||||||
|
protected override void SetComboxItems()
|
||||||
|
{
|
||||||
|
TComboBox.SetComboBox("DBERP", cbxXLBZID, "select XLBZ_XLBZID,XLBZ_XLBZLXMC from XLBZ where 1=1 and len(XLBZ_XLBZID) < 10 order by XLBZ_PX,XLBZ_XLBZID ", false);
|
||||||
|
base.SetComboxItems();
|
||||||
|
}
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
#region 自定义函数
|
||||||
|
|
||||||
|
private void InitControls()
|
||||||
|
{
|
||||||
|
txtYZID.Value = PageParam.GetRTrimString("FirstYZID");
|
||||||
|
}
|
||||||
|
|
||||||
|
private void SetOldValues()
|
||||||
|
{
|
||||||
|
txtOLD_XLBZID.Value = cbxXLBZID.SelectedValue.Trim();
|
||||||
|
txtOLD_BJSLS.Value = txtBJSLS.Value.ToString().Trim();
|
||||||
|
txtOLD_BJSLZ.Value = txtBJSLZ.Value.ToString().Trim();
|
||||||
|
}
|
||||||
|
|
||||||
|
private bool HasOverlappedRange()
|
||||||
|
{
|
||||||
|
string sYZIDlist = TZYZBJAInfo.GetYZIDList(PageParam.GetRTrimString("TJYZList"));
|
||||||
|
TDatabase dberp = TContextDatabases.GetDatabase("DBERP");
|
||||||
|
TSQL sql = new TSQL(dberp);
|
||||||
|
sql.Add(" select XLXSBJDYZZL_XLBZID, XLXSBJDYZZL_BJSLS, XLXSBJDYZZL_BJSLZ from XLXSBJDYZZL ");
|
||||||
|
sql.Add(" where XLXSBJDYZZL_JGBID=:pJGBID and XLXSBJDYZZL_XLBZID=:pXLBZID ");
|
||||||
|
sql.Add(" and " + CMISproDataBase.GetWhereEqual("XLXSBJDYZZL_YZID", sYZIDlist));
|
||||||
|
sql.Add(" and (XLXSBJDYZZL_BJSLZ=0 or XLXSBJDYZZL_BJSLZ>:pBJSLS) ");
|
||||||
|
sql.Add(" and (:pBJSLZ=0 or XLXSBJDYZZL_BJSLS<:pBJSLZ) ");
|
||||||
|
if (ControlState == TControlState.ctsEdit)
|
||||||
|
{
|
||||||
|
sql.Add(" and (XLXSBJDYZZL_XLBZID<>:pOLDXLBZID or XLXSBJDYZZL_BJSLS<>:pOLDBJSLS or XLXSBJDYZZL_BJSLZ<>:pOLDBJSLZ) ");
|
||||||
|
sql.ParamByName("pOLDXLBZID").Value = txtOLD_XLBZID.Value.Trim();
|
||||||
|
sql.ParamByName("pOLDBJSLS").Value = txtOLD_BJSLS.Value.Trim();
|
||||||
|
sql.ParamByName("pOLDBJSLZ").Value = txtOLD_BJSLZ.Value.Trim();
|
||||||
|
}
|
||||||
|
sql.ParamByName("pJGBID").Value = txtJGBID.Value.Trim();
|
||||||
|
sql.ParamByName("pXLBZID").Value = cbxXLBZID.SelectedValue.Trim();
|
||||||
|
sql.ParamByName("pBJSLS").Value = txtBJSLS.Value;
|
||||||
|
sql.ParamByName("pBJSLZ").Value = txtBJSLZ.Value;
|
||||||
|
DataSet ds = dberp.OpenDataSet(sql);
|
||||||
|
return ds.Tables[0].Rows.Count > 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
private void SetTJYZLable()
|
||||||
|
{
|
||||||
|
string[] sTJYZList = PageParam.GetRTrimString("TJYZList").Split(',');
|
||||||
|
for (int i = 0; i < sTJYZList.Length; i++)
|
||||||
|
{
|
||||||
|
for (int j = 1; j <= 20; j++)
|
||||||
|
{
|
||||||
|
string sTZYZID = "BJ" + j.ToString().PadLeft(2, '0') + "|";
|
||||||
|
gtNumTextBox txtTJYZ = (gtNumTextBox)Master.ContentFormControl.FindControl("txt" + "TJYZ" + j.ToString().Trim());
|
||||||
|
gtLabel lblTJYZ = (gtLabel)Master.ContentFormControl.FindControl("lbl" + "TJYZ" + j.ToString().Trim());
|
||||||
|
if (sTJYZList[i].StartsWith(sTZYZID))
|
||||||
|
{
|
||||||
|
string s = sTJYZList[i].Replace(sTZYZID, "").Replace("(X)", "") + ":";
|
||||||
|
lblTJYZ.Text = s;
|
||||||
|
if (sTJYZList[i].EndsWith("(%)") || sTJYZList[i].EndsWith("(元)"))
|
||||||
|
{
|
||||||
|
txtTJYZ.DecimalPlaces = 2;
|
||||||
|
}
|
||||||
|
else if (sTJYZList[i].EndsWith("(X)"))
|
||||||
|
{
|
||||||
|
txtTJYZ.DecimalPlaces = 4;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endregion
|
||||||
|
}
|
||||||
|
}
|
||||||
Generated
+547
@@ -0,0 +1,547 @@
|
|||||||
|
//------------------------------------------------------------------------------
|
||||||
|
// <auto-generated>
|
||||||
|
// 此代码由工具生成。
|
||||||
|
// 运行时版本:2.0.50727.9179
|
||||||
|
//
|
||||||
|
// 对此文件的更改可能会导致不正确的行为,并且如果
|
||||||
|
// 重新生成代码,这些更改将会丢失。
|
||||||
|
// </auto-generated>
|
||||||
|
//------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
namespace GThinking.N_XLXSBJ {
|
||||||
|
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// TZYZBJLInfo 类。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的类。
|
||||||
|
/// </remarks>
|
||||||
|
public partial class TZYZBJLInfo {
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// GtLabel7 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtLabel GtLabel7;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// cbxXLBZID 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtComboBox cbxXLBZID;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// lblBJSLS 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtLabel lblBJSLS;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtBJSLS 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtNumTextBox txtBJSLS;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// lblBJSLZ 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtLabel lblBJSLZ;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtBJSLZ 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtNumTextBox txtBJSLZ;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// lblTJYZ1 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtLabel lblTJYZ1;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtTJYZ1 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtNumTextBox txtTJYZ1;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// lblTJYZ11 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtLabel lblTJYZ11;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtTJYZ11 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtNumTextBox txtTJYZ11;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// lblTJYZ2 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtLabel lblTJYZ2;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtTJYZ2 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtNumTextBox txtTJYZ2;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// lblTJYZ12 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtLabel lblTJYZ12;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtTJYZ12 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtNumTextBox txtTJYZ12;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// lblTJYZ3 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtLabel lblTJYZ3;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtTJYZ3 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtNumTextBox txtTJYZ3;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// lblTJYZ13 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtLabel lblTJYZ13;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtTJYZ13 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtNumTextBox txtTJYZ13;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// lblTJYZ4 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtLabel lblTJYZ4;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtTJYZ4 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtNumTextBox txtTJYZ4;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// lblTJYZ14 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtLabel lblTJYZ14;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtTJYZ14 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtNumTextBox txtTJYZ14;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// lblTJYZ5 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtLabel lblTJYZ5;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtTJYZ5 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtNumTextBox txtTJYZ5;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// lblTJYZ15 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtLabel lblTJYZ15;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtTJYZ15 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtNumTextBox txtTJYZ15;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// lblTJYZ6 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtLabel lblTJYZ6;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtTJYZ6 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtNumTextBox txtTJYZ6;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// lblTJYZ16 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtLabel lblTJYZ16;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtTJYZ16 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtNumTextBox txtTJYZ16;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// lblTJYZ7 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtLabel lblTJYZ7;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtTJYZ7 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtNumTextBox txtTJYZ7;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// lblTJYZ17 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtLabel lblTJYZ17;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtTJYZ17 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtNumTextBox txtTJYZ17;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// lblTJYZ8 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtLabel lblTJYZ8;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtTJYZ8 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtNumTextBox txtTJYZ8;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// lblTJYZ18 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtLabel lblTJYZ18;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtTJYZ18 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtNumTextBox txtTJYZ18;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// lblTJYZ9 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtLabel lblTJYZ9;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtTJYZ9 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtNumTextBox txtTJYZ9;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// lblTJYZ19 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtLabel lblTJYZ19;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtTJYZ19 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtNumTextBox txtTJYZ19;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// lblTJYZ10 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtLabel lblTJYZ10;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtTJYZ10 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtNumTextBox txtTJYZ10;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// lblTJYZ20 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtLabel lblTJYZ20;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtTJYZ20 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtNumTextBox txtTJYZ20;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// GtLabel5 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtLabel GtLabel5;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtWHR 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtTextBox txtWHR;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// GtLabel6 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtLabel GtLabel6;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// datWHSJ 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtDateTime datWHSJ;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtWHRID 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::System.Web.UI.WebControls.HiddenField txtWHRID;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtJGBID 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::System.Web.UI.WebControls.HiddenField txtJGBID;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtYZID 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::System.Web.UI.WebControls.HiddenField txtYZID;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtOLD_YZID 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::System.Web.UI.WebControls.HiddenField txtOLD_YZID;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtOLD_XLBZID 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::System.Web.UI.WebControls.HiddenField txtOLD_XLBZID;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtOLD_BJSLS 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::System.Web.UI.WebControls.HiddenField txtOLD_BJSLS;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtOLD_BJSLZ 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::System.Web.UI.WebControls.HiddenField txtOLD_BJSLZ;
|
||||||
|
|
||||||
|
/// <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,58 @@
|
|||||||
|
<%@ Page Language="C#" MasterPageFile="~/N_MODEL/Page/MasterSingleGrid.Master" AutoEventWireup="true"
|
||||||
|
Codebehind="TZYZBJLList.aspx.cs" Inherits="GThinking.N_XLXSBJ.TZYZBJLList" 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="grdContentGrid" runat="server" AutoGenerateColumns="False" CellPadding="2"
|
||||||
|
CellSpacing="2" AllowSorting="True" EnableViewState="False">
|
||||||
|
<Columns>
|
||||||
|
<asp:BoundField DataField="XLXSBJDYZZL_JGBID" HeaderText="调价表编码">
|
||||||
|
<itemstyle width="80px" />
|
||||||
|
<headerstyle width="80px" />
|
||||||
|
</asp:BoundField>
|
||||||
|
<asp:BoundField DataField="XLBZID" HeaderText="标准">
|
||||||
|
<itemstyle width="160px" />
|
||||||
|
<headerstyle width="160px" />
|
||||||
|
</asp:BoundField>
|
||||||
|
<asp:BoundField DataField="XLXSBJDYZZL_BJSLS" HeaderText="报价数量始">
|
||||||
|
<itemstyle width="90px" horizontalalign="Right" />
|
||||||
|
<headerstyle width="90px" />
|
||||||
|
</asp:BoundField>
|
||||||
|
<asp:BoundField DataField="XLXSBJDYZZL_BJSLZ" HeaderText="报价数量止">
|
||||||
|
<itemstyle width="90px" horizontalalign="Right" />
|
||||||
|
<headerstyle width="90px" />
|
||||||
|
</asp:BoundField>
|
||||||
|
<asp:BoundField DataField="XLXSBJDYZZL_WHR" HeaderText="维护人">
|
||||||
|
<itemstyle width="80px" />
|
||||||
|
<headerstyle width="80px" />
|
||||||
|
</asp:BoundField>
|
||||||
|
<asp:BoundField DataField="XLXSBJDYZZL_WHSJ" HeaderText="维护时间">
|
||||||
|
<itemstyle width="125px" />
|
||||||
|
<headerstyle width="125px" />
|
||||||
|
</asp:BoundField>
|
||||||
|
</Columns>
|
||||||
|
<FixRowCol TableHeight="100%" TableWidth="100%" />
|
||||||
|
<ColumnsEx>
|
||||||
|
<gtc:gtGridView_Column DataField="XLXSBJDYZZL_JGBID" ShowHint="True">
|
||||||
|
</gtc:gtGridView_Column>
|
||||||
|
<gtc:gtGridView_Column DataField="XLBZID" ShowHint="True">
|
||||||
|
</gtc:gtGridView_Column>
|
||||||
|
<gtc:gtGridView_Column DataField="XLXSBJDYZZL_BJSLS" ShowHint="True" EditType="etNumber"
|
||||||
|
NumberDecimalPlace="3" NumberIsQuantity="true" ShowZero="true">
|
||||||
|
</gtc:gtGridView_Column>
|
||||||
|
<gtc:gtGridView_Column DataField="XLXSBJDYZZL_BJSLZ" ShowHint="True" EditType="etNumber"
|
||||||
|
NumberDecimalPlace="3" NumberIsQuantity="true">
|
||||||
|
</gtc:gtGridView_Column>
|
||||||
|
<gtc:gtGridView_Column DataField="XLXSBJDYZZL_WHR" ShowHint="True">
|
||||||
|
</gtc:gtGridView_Column>
|
||||||
|
<gtc:gtGridView_Column DataField="XLXSBJDYZZL_WHSJ" EditType="etDateTime" DateTimeEditKins="dtDateTime">
|
||||||
|
</gtc:gtGridView_Column>
|
||||||
|
</ColumnsEx>
|
||||||
|
</gtc:gtGridView>
|
||||||
|
<asp:HiddenField ID="txtFirstYZID" runat="server" />
|
||||||
|
<asp:HiddenField ID="txtTJYZList" runat="server" />
|
||||||
|
</asp:Content>
|
||||||
|
<asp:Content ID="ContentSync" ContentPlaceHolderID="CPHSync" runat="server">
|
||||||
|
</asp:Content>
|
||||||
@@ -0,0 +1,258 @@
|
|||||||
|
using System;
|
||||||
|
using System.Data;
|
||||||
|
using System.Configuration;
|
||||||
|
using System.Collections;
|
||||||
|
using System.Web;
|
||||||
|
using System.Web.Security;
|
||||||
|
using System.Web.UI;
|
||||||
|
using System.Web.UI.WebControls;
|
||||||
|
using System.Web.UI.WebControls.WebParts;
|
||||||
|
using System.Web.UI.HtmlControls;
|
||||||
|
using GThinking.N_MISPRO;
|
||||||
|
using GThinking.N_MODEL.Page;
|
||||||
|
using GThinking.N_MISPRO.Data;
|
||||||
|
using GThinking.N_PUBLIC;
|
||||||
|
using GThinking.N_MISPRO.Utility;
|
||||||
|
using GThinking.N_CONTROL;
|
||||||
|
using System.Text;
|
||||||
|
|
||||||
|
namespace GThinking.N_XLXSBJ
|
||||||
|
{
|
||||||
|
public partial class TZYZBJLList : SingleGridBase
|
||||||
|
{
|
||||||
|
TZYZBJL entity = new TZYZBJL();
|
||||||
|
TZYZBJL_M queryentity = new TZYZBJL_M();
|
||||||
|
DataSet dsTJYS1 = new DataSet();
|
||||||
|
|
||||||
|
protected void Page_Load(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
this.UMID = 100860169;
|
||||||
|
this.UMName = "按标准加报价数量区间调报价";
|
||||||
|
this.CurMaster = Master;
|
||||||
|
this.ModuleGV = grdContentGrid;
|
||||||
|
this.CurEntity = entity;
|
||||||
|
this.CurQueryEntity = queryentity;
|
||||||
|
this.sURLTarget = "TZYZBJLInfo.aspx";
|
||||||
|
this.sQueryURLTarget = "TZYZBJLQuery.aspx";
|
||||||
|
this.PageHeight = 600;
|
||||||
|
this.PageWidth = 750;
|
||||||
|
|
||||||
|
base.DataKeyNames = new string[] { "XLXSBJDYZZL_JGBID", "minYZID", "XLXSBJDYZZL_XLBZID", "XLXSBJDYZZL_BJSLS", "XLXSBJDYZZL_BJSLZ" };
|
||||||
|
grdContentGrid.FindColumnByFieldName("XLXSBJDYZZL_JGBID").Visible = false;
|
||||||
|
|
||||||
|
if (!IsPostBack)
|
||||||
|
{
|
||||||
|
if (!PageParam.GetRTrimString("JGBID").Equals(""))
|
||||||
|
CurQueryEntity.FieldByName("JGBID").Value = PageParam.GetRTrimString("JGBID");
|
||||||
|
else
|
||||||
|
CurQueryEntity.FieldByName("JGBID").Value = GetDefaultJGBID();
|
||||||
|
}
|
||||||
|
|
||||||
|
base.InitPage();
|
||||||
|
|
||||||
|
if (!IsPostBack)
|
||||||
|
{
|
||||||
|
if (!PageParam.GetRTrimString("JGBID").Equals(""))
|
||||||
|
Master_OnStandardQuery(null, null);
|
||||||
|
else if (IsDefaultExecute)
|
||||||
|
Master_OnStandardQuery(null, null);
|
||||||
|
else
|
||||||
|
{
|
||||||
|
this.Master.StandardNewButton.OnClientClick = "alert('请先查询调价表!');";
|
||||||
|
this.Master.StandardCopyButton.OnClientClick = "alert('请先查询调价表!');";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
protected override void Master_OnStandardQuery(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
base.InitEntityByCondition();
|
||||||
|
entity.EntityTable.QuerySelSql = GetSQL();
|
||||||
|
base.Master_OnStandardQuery(sender, e);
|
||||||
|
entity.GridDataBind(grdContentGrid, tSession);
|
||||||
|
|
||||||
|
if (CurQueryEntity.FieldByName("JGBID").Value.Trim().Equals(""))
|
||||||
|
{
|
||||||
|
this.Master.StandardNewButton.OnClientClick = "alert('请先查询调价表!');";
|
||||||
|
this.Master.StandardCopyButton.OnClientClick = "alert('请先查询调价表!');";
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
this.Master.StandardNewButton.OnClientClick = "OpenCardForm('INSERT');return false;";
|
||||||
|
this.Master.StandardCopyButton.OnClientClick = "OpenCardForm('COPY');return false;";
|
||||||
|
}
|
||||||
|
|
||||||
|
TPageParams pageParams = new TPageParams();
|
||||||
|
pageParams.AddString("XLXSBJDYZZL_JGBID", CurQueryEntity.FieldByName("JGBID").Value.Trim());
|
||||||
|
pageParams.AddString("TJYZList", txtTJYZList.Value.Trim());
|
||||||
|
pageParams.AddString("FirstYZID", txtFirstYZID.Value.Trim());
|
||||||
|
SetNewFormParam(pageParams);
|
||||||
|
}
|
||||||
|
|
||||||
|
protected override void BeforeDelete(TDatabase db, ref bool ActionIsDone)
|
||||||
|
{
|
||||||
|
string sYZIDlist = TZYZBJAInfo.GetYZIDList(txtTJYZList.Value.Trim());
|
||||||
|
entity.EntityTable.DeleteSql = " delete from XLXSBJDYZZL where XLXSBJDYZZL_JGBID=:XLXSBJDYZZL_JGBID and XLXSBJDYZZL_XLBZID=:XLXSBJDYZZL_XLBZID and XLXSBJDYZZL_BJSLS=:XLXSBJDYZZL_BJSLS and XLXSBJDYZZL_BJSLZ=:XLXSBJDYZZL_BJSLZ and "
|
||||||
|
+ CMISproDataBase.GetWhereEqual("XLXSBJDYZZL_YZID", sYZIDlist);
|
||||||
|
entity.Param.Add("XLXSBJDYZZL_JGBID", this.grdContentGrid.SelectedDataKey["XLXSBJDYZZL_JGBID"].ToString().Trim());
|
||||||
|
entity.Param.Add("XLXSBJDYZZL_XLBZID", this.grdContentGrid.SelectedDataKey["XLXSBJDYZZL_XLBZID"].ToString().Trim());
|
||||||
|
entity.Param.Add("XLXSBJDYZZL_BJSLS", this.grdContentGrid.SelectedDataKey["XLXSBJDYZZL_BJSLS"].ToString().Trim());
|
||||||
|
entity.Param.Add("XLXSBJDYZZL_BJSLZ", this.grdContentGrid.SelectedDataKey["XLXSBJDYZZL_BJSLZ"].ToString().Trim());
|
||||||
|
base.BeforeDelete(db, ref ActionIsDone);
|
||||||
|
}
|
||||||
|
|
||||||
|
protected override bool Master_AfterDeleteAction(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
if (!base.Master_AfterDeleteAction(sender, e)) { return false; }
|
||||||
|
base.InitEntityByCondition();
|
||||||
|
entity.EntityTable.QuerySelSql = GetSQL();
|
||||||
|
entity.GridDataBind(grdContentGrid, tSession);
|
||||||
|
grdContentGrid.SelectedIndex = -1;
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
protected override void moduleGV_RowDataBound(object sender, GridViewRowEventArgs e)
|
||||||
|
{
|
||||||
|
if (e.Row.RowType == DataControlRowType.DataRow)
|
||||||
|
{
|
||||||
|
LinkPageParam.AddString("XLXSBJDYZZL_JGBID", grdContentGrid.DataKeys[e.Row.RowIndex]["XLXSBJDYZZL_JGBID"].ToString().Trim());
|
||||||
|
LinkPageParam.AddString("XLXSBJDYZZL_YZID", grdContentGrid.DataKeys[e.Row.RowIndex]["minYZID"].ToString().Trim());
|
||||||
|
LinkPageParam.AddString("XLXSBJDYZZL_XLBZID", grdContentGrid.DataKeys[e.Row.RowIndex]["XLXSBJDYZZL_XLBZID"].ToString().Trim());
|
||||||
|
LinkPageParam.AddString("XLXSBJDYZZL_BJSLS", grdContentGrid.DataKeys[e.Row.RowIndex]["XLXSBJDYZZL_BJSLS"].ToString().Trim());
|
||||||
|
LinkPageParam.AddString("XLXSBJDYZZL_BJSLZ", grdContentGrid.DataKeys[e.Row.RowIndex]["XLXSBJDYZZL_BJSLZ"].ToString().Trim());
|
||||||
|
LinkPageParam.AddString("TJYZList", txtTJYZList.Value.Trim());
|
||||||
|
LinkPageParam.AddString("FirstYZID", txtFirstYZID.Value.Trim());
|
||||||
|
}
|
||||||
|
base.moduleGV_RowDataBound(sender, e);
|
||||||
|
}
|
||||||
|
|
||||||
|
protected override void moduleGV_PageIndexChanging(object sender, GridViewPageEventArgs e)
|
||||||
|
{
|
||||||
|
base.InitEntityByCondition();
|
||||||
|
entity.EntityTable.QuerySelSql = GetSQL();
|
||||||
|
grdContentGrid.SelectedIndex = -1;
|
||||||
|
base.moduleGV_PageIndexChanging(sender, e);
|
||||||
|
}
|
||||||
|
|
||||||
|
private string GetSQL()
|
||||||
|
{
|
||||||
|
base.InitEntityByCondition();
|
||||||
|
InitGridView();
|
||||||
|
string sYZIDlist = TZYZBJAInfo.GetYZIDList(txtTJYZList.Value.Trim());
|
||||||
|
StringBuilder sSQL = new StringBuilder();
|
||||||
|
sSQL.AppendLine(" select :pJGBID as XLXSBJDYZZL_JGBID, XLXSBJDYZZL_XLBZID, ");
|
||||||
|
sSQL.AppendLine(" rtrim(XLXSBJDYZZL_XLBZID)||'|'||isnull(XLBZ_XLBZLXMC,' ') as XLBZID, ");
|
||||||
|
sSQL.AppendLine(" XLXSBJDYZZL_BJSLS, XLXSBJDYZZL_BJSLZ, min(XLXSBJDYZZL_YZID) as minYZID, ");
|
||||||
|
sSQL.AppendLine(" max(XLXSBJDYZZL_WHR) as XLXSBJDYZZL_WHR, max(XLXSBJDYZZL_WHRID) as XLXSBJDYZZL_WHRID, max(XLXSBJDYZZL_WHSJ) as XLXSBJDYZZL_WHSJ ");
|
||||||
|
for (int i = 0; i < dsTJYS1.Tables[0].Rows.Count; i++)
|
||||||
|
{
|
||||||
|
sSQL.AppendLine(string.Format(",sum(CASE XLXSBJDYZZL_YZID WHEN '{0}' THEN XLXSBJDYZZL_YZZ ELSE 0 END) as TZYZ_{0}", dsTJYS1.Tables[0].Rows[i][0].ToString().Trim()));
|
||||||
|
}
|
||||||
|
sSQL.AppendLine(" from XLXSBJDYZZL ");
|
||||||
|
sSQL.AppendLine(" left join XLBZ on XLBZ_XLBZID=XLXSBJDYZZL_XLBZID ");
|
||||||
|
if (string.IsNullOrEmpty(CurQueryEntity.FieldByName("JGBID").Value.Trim()))
|
||||||
|
sSQL.AppendLine(" where 1<>1 ");
|
||||||
|
else
|
||||||
|
sSQL.AppendLine(" where XLXSBJDYZZL_JGBID=:pJGBID ");
|
||||||
|
if (!string.IsNullOrEmpty(sYZIDlist))
|
||||||
|
sSQL.AppendLine(" and " + CMISproDataBase.GetWhereEqual("XLXSBJDYZZL_YZID", sYZIDlist));
|
||||||
|
if (!string.IsNullOrEmpty(CurQueryEntity.FieldByName("XLBZID").Value.Trim()))
|
||||||
|
{
|
||||||
|
sSQL.AppendLine(" and XLXSBJDYZZL_XLBZID=:pXLBZID ");
|
||||||
|
entity.Param.Add("pXLBZID", CurQueryEntity.FieldByName("XLBZID").Value.Trim());
|
||||||
|
}
|
||||||
|
AddNumberQueryCondition(sSQL, "BJSLSDY", "XLXSBJDYZZL_BJSLS", ">=", "pBJSLSDY");
|
||||||
|
AddNumberQueryCondition(sSQL, "BJSLSXY", "XLXSBJDYZZL_BJSLS", "<=", "pBJSLSXY");
|
||||||
|
AddNumberQueryCondition(sSQL, "BJSLZDY", "XLXSBJDYZZL_BJSLZ", ">=", "pBJSLZDY");
|
||||||
|
AddNumberQueryCondition(sSQL, "BJSLZXY", "XLXSBJDYZZL_BJSLZ", "<=", "pBJSLZXY");
|
||||||
|
sSQL.AppendLine(" group by XLXSBJDYZZL_XLBZID, XLBZ_XLBZLXMC, XLXSBJDYZZL_BJSLS, XLXSBJDYZZL_BJSLZ ");
|
||||||
|
sSQL.AppendLine(" order by XLXSBJDYZZL_XLBZID, XLXSBJDYZZL_BJSLS, XLXSBJDYZZL_BJSLZ ");
|
||||||
|
entity.Param.Add("pJGBID", CurQueryEntity.FieldByName("JGBID").Value.Trim());
|
||||||
|
return sSQL.ToString();
|
||||||
|
}
|
||||||
|
|
||||||
|
private void AddNumberQueryCondition(StringBuilder sSQL, string sField, string sDbField, string sOperator, string sParam)
|
||||||
|
{
|
||||||
|
if (CurQueryEntity.FieldByName(sField).Value.ToString().Trim() != "0" && CurQueryEntity.FieldByName(sField).Value.ToString().Trim() != "")
|
||||||
|
{
|
||||||
|
sSQL.AppendLine(" and " + sDbField + " " + sOperator + " :" + sParam + " ");
|
||||||
|
entity.Param.Add(sParam, CurQueryEntity.FieldByName(sField).Value.Trim());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void InitGridView()
|
||||||
|
{
|
||||||
|
TDatabase dberp = TContextDatabases.GetDatabase("DBERP");
|
||||||
|
TSQL SQL = new TSQL(dberp);
|
||||||
|
SQL.Clear();
|
||||||
|
SQL.Add("select XLXSTZYZ_YZID, XLXSTZYZ_YZMC, XLXSTZYZ_JJFS ");
|
||||||
|
SQL.Add(" from XLXSTZYZ");
|
||||||
|
SQL.Add(" where XLXSTZYZ_MXBH = 'BJD' and XLXSTZYZ_TJYS='L' ");
|
||||||
|
SQL.Add(" and XLXSTZYZ_JGBID = :pJGBID");
|
||||||
|
if (!string.IsNullOrEmpty(PageParam.GetRTrimString("TJYZID")))
|
||||||
|
SQL.Add(" and " + CMISproDataBase.GetWhereEqual("XLXSTZYZ_YZID", PageParam.GetRTrimString("TJYZID").Trim()));
|
||||||
|
SQL.Add("order by XLXSTZYZ_YZID,XLXSTZYZ_XSXH");
|
||||||
|
SQL.ParamByName("pJGBID").Value = CurQueryEntity.FieldByName("JGBID").Value.Trim();
|
||||||
|
DataSet ds = dberp.OpenDataSet(SQL);
|
||||||
|
dsTJYS1 = ds;
|
||||||
|
txtFirstYZID.Value = "";
|
||||||
|
txtTJYZList.Value = "";
|
||||||
|
for (int i = 0; i < ds.Tables[0].Rows.Count; i++)
|
||||||
|
{
|
||||||
|
if (i == 0)
|
||||||
|
txtFirstYZID.Value = ds.Tables[0].Rows[i]["XLXSTZYZ_YZID"].ToString().Trim();
|
||||||
|
|
||||||
|
string sJJFSMC = "";
|
||||||
|
int iXSWS = 2;
|
||||||
|
if (ds.Tables[0].Rows[i]["XLXSTZYZ_JJFS"].ToString().Trim().Equals("JJ"))
|
||||||
|
{
|
||||||
|
sJJFSMC = "(元)";
|
||||||
|
iXSWS = 2;
|
||||||
|
}
|
||||||
|
else if (ds.Tables[0].Rows[i]["XLXSTZYZ_JJFS"].ToString().Trim().Equals("MX") || ds.Tables[0].Rows[i]["XLXSTZYZ_JJFS"].ToString().Trim().Equals("DX"))
|
||||||
|
{
|
||||||
|
sJJFSMC = "(X)";
|
||||||
|
iXSWS = 4;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
sJJFSMC = "(%)";
|
||||||
|
iXSWS = 2;
|
||||||
|
}
|
||||||
|
AddColumn("TZYZ_" + ds.Tables[0].Rows[i]["XLXSTZYZ_YZID"].ToString().Trim(), ds.Tables[0].Rows[i]["XLXSTZYZ_YZMC"].ToString().Trim() + sJJFSMC.Replace("(X)", ""), iXSWS, 80);
|
||||||
|
txtTJYZList.Value += ds.Tables[0].Rows[i]["XLXSTZYZ_YZID"].ToString().Trim() + "|" + ds.Tables[0].Rows[i]["XLXSTZYZ_YZMC"].ToString().Trim() + sJJFSMC + ",";
|
||||||
|
}
|
||||||
|
txtTJYZList.Value = txtTJYZList.Value.TrimEnd(',');
|
||||||
|
}
|
||||||
|
|
||||||
|
private string GetDefaultJGBID()
|
||||||
|
{
|
||||||
|
TDatabase dberp = TContextDatabases.GetDatabase("DBERP");
|
||||||
|
TSQL SQL = new TSQL(dberp);
|
||||||
|
SQL.Add("SELECT XLXSJGB_JGBID from XLXSJGB where XLXSJGB_MXBH='BJD' and XLXSJGB_TJYS='L' order by XLXSJGB_JGBID");
|
||||||
|
DataSet ds = dberp.OpenDataSet(SQL);
|
||||||
|
if (ds.Tables[0].Rows.Count > 0)
|
||||||
|
return ds.Tables[0].Rows[0][0].ToString().Trim();
|
||||||
|
else
|
||||||
|
return "";
|
||||||
|
}
|
||||||
|
|
||||||
|
private void AddColumn(string sDataField, string HeadText, int NumberDecimalPlace, int Width)
|
||||||
|
{
|
||||||
|
BoundField Column = new BoundField();
|
||||||
|
Column.DataField = sDataField;
|
||||||
|
Column.HeaderText = HeadText;
|
||||||
|
Column.ItemStyle.Width = (Unit)Width;
|
||||||
|
Column.HeaderStyle.Width = (Unit)Width;
|
||||||
|
Column.ItemStyle.HorizontalAlign = HorizontalAlign.Right;
|
||||||
|
grdContentGrid.Columns.Add(Column);
|
||||||
|
|
||||||
|
gtGridView_Column ColumnEx = new gtGridView_Column();
|
||||||
|
ColumnEx.DataField = sDataField;
|
||||||
|
ColumnEx.EditType = TEditType.etNumber;
|
||||||
|
ColumnEx.ShowHint = true;
|
||||||
|
ColumnEx.NumberDecimalPlace = NumberDecimalPlace;
|
||||||
|
grdContentGrid.ColumnsEx.Insert(0, ColumnEx);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
Generated
+61
@@ -0,0 +1,61 @@
|
|||||||
|
//------------------------------------------------------------------------------
|
||||||
|
// <auto-generated>
|
||||||
|
// 此代码由工具生成。
|
||||||
|
// 运行时版本:2.0.50727.9179
|
||||||
|
//
|
||||||
|
// 对此文件的更改可能会导致不正确的行为,并且如果
|
||||||
|
// 重新生成代码,这些更改将会丢失。
|
||||||
|
// </auto-generated>
|
||||||
|
//------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
namespace GThinking.N_XLXSBJ {
|
||||||
|
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// TZYZBJLList 类。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的类。
|
||||||
|
/// </remarks>
|
||||||
|
public partial class TZYZBJLList {
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// grdContentGrid 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtGridView grdContentGrid;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtFirstYZID 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::System.Web.UI.WebControls.HiddenField txtFirstYZID;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtTJYZList 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::System.Web.UI.WebControls.HiddenField txtTJYZList;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Master 属性。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的属性。
|
||||||
|
/// </remarks>
|
||||||
|
public new GThinking.N_MODEL.Page.MasterSingleGrid Master {
|
||||||
|
get {
|
||||||
|
return ((GThinking.N_MODEL.Page.MasterSingleGrid)(base.Master));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,65 @@
|
|||||||
|
<%@ Page Language="C#" MasterPageFile="~/N_MODEL/Page/MasterSingleQuery.Master" AutoEventWireup="true"
|
||||||
|
Codebehind="TZYZBJLQuery.aspx.cs" Inherits="GThinking.N_XLXSBJ.TZYZBJLQuery" Title="查询" %>
|
||||||
|
|
||||||
|
<%@ MasterType VirtualPath="~/N_MODEL/Page/MasterSingleQuery.Master" %>
|
||||||
|
<asp:Content ID="ContentQuery" ContentPlaceHolderID="CPHQuery" runat="server">
|
||||||
|
<br />
|
||||||
|
<asp:Table ID="QueryTalbe" runat="server">
|
||||||
|
<asp:TableRow>
|
||||||
|
<asp:TableCell></asp:TableCell>
|
||||||
|
<asp:TableCell HorizontalAlign="Right" Height="21px">
|
||||||
|
<gtc:gtLabel ID="GtLabel4" runat="server">调价表:</gtc:gtLabel>
|
||||||
|
</asp:TableCell>
|
||||||
|
<asp:TableCell Height="21px">
|
||||||
|
<gtc:gtComboBox ID="cbxJGBID" runat="server" Width="250px" DataField="JGBID" ShowValue="false" Tag="Star">
|
||||||
|
</gtc:gtComboBox>
|
||||||
|
</asp:TableCell>
|
||||||
|
</asp:TableRow>
|
||||||
|
<asp:TableRow>
|
||||||
|
<asp:TableCell></asp:TableCell>
|
||||||
|
<asp:TableCell HorizontalAlign="Right" Height="21px">
|
||||||
|
<gtc:gtLabel ID="lblXLBZID" runat="server">标准:</gtc:gtLabel>
|
||||||
|
</asp:TableCell>
|
||||||
|
<asp:TableCell Height="21px">
|
||||||
|
<gtc:gtComboBox ID="cbxXLBZID" runat="server" Width="150px" DataField="XLBZID" ShowValue="false">
|
||||||
|
</gtc:gtComboBox>
|
||||||
|
</asp:TableCell>
|
||||||
|
</asp:TableRow>
|
||||||
|
<asp:TableRow>
|
||||||
|
<asp:TableCell></asp:TableCell>
|
||||||
|
<asp:TableCell HorizontalAlign="Right" Height="21px">
|
||||||
|
<gtc:gtLabel ID="lblBJSLSDY" runat="server">报价数量始>=:</gtc:gtLabel>
|
||||||
|
</asp:TableCell>
|
||||||
|
<asp:TableCell Height="21px">
|
||||||
|
<gtc:gtNumTextBox ID="txtBJSLSDY" runat="server" Width="72px" DataField="BJSLSDY" IsQuantity="true"></gtc:gtNumTextBox>
|
||||||
|
</asp:TableCell>
|
||||||
|
</asp:TableRow>
|
||||||
|
<asp:TableRow>
|
||||||
|
<asp:TableCell></asp:TableCell>
|
||||||
|
<asp:TableCell HorizontalAlign="Right" Height="21px">
|
||||||
|
<gtc:gtLabel ID="lblBJSLSXY" runat="server">报价数量始<=:</gtc:gtLabel>
|
||||||
|
</asp:TableCell>
|
||||||
|
<asp:TableCell Height="21px">
|
||||||
|
<gtc:gtNumTextBox ID="txtBJSLSXY" runat="server" Width="72px" DataField="BJSLSXY" IsQuantity="true"></gtc:gtNumTextBox>
|
||||||
|
</asp:TableCell>
|
||||||
|
</asp:TableRow>
|
||||||
|
<asp:TableRow>
|
||||||
|
<asp:TableCell></asp:TableCell>
|
||||||
|
<asp:TableCell HorizontalAlign="Right" Height="21px">
|
||||||
|
<gtc:gtLabel ID="lblBJSLZDY" runat="server">报价数量止>=:</gtc:gtLabel>
|
||||||
|
</asp:TableCell>
|
||||||
|
<asp:TableCell Height="21px">
|
||||||
|
<gtc:gtNumTextBox ID="txtBJSLZDY" runat="server" Width="72px" DataField="BJSLZDY" IsQuantity="true"></gtc:gtNumTextBox>
|
||||||
|
</asp:TableCell>
|
||||||
|
</asp:TableRow>
|
||||||
|
<asp:TableRow>
|
||||||
|
<asp:TableCell></asp:TableCell>
|
||||||
|
<asp:TableCell HorizontalAlign="Right" Height="21px">
|
||||||
|
<gtc:gtLabel ID="lblBJSLZXY" runat="server">报价数量止<=:</gtc:gtLabel>
|
||||||
|
</asp:TableCell>
|
||||||
|
<asp:TableCell Height="21px">
|
||||||
|
<gtc:gtNumTextBox ID="txtBJSLZXY" runat="server" Width="72px" DataField="BJSLZXY" IsQuantity="true"></gtc:gtNumTextBox>
|
||||||
|
</asp:TableCell>
|
||||||
|
</asp:TableRow>
|
||||||
|
</asp:Table>
|
||||||
|
</asp:Content>
|
||||||
@@ -0,0 +1,85 @@
|
|||||||
|
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_PUBLIC;
|
||||||
|
|
||||||
|
namespace GThinking.N_XLXSBJ
|
||||||
|
{
|
||||||
|
public partial class TZYZBJLQuery : SingleQueryBase
|
||||||
|
{
|
||||||
|
TZYZBJL_M queryentity = new TZYZBJL_M();
|
||||||
|
|
||||||
|
protected void Page_Load(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
this.UMID = 100860169;
|
||||||
|
this.UMName = "按标准加报价数量区间调报价";
|
||||||
|
this.CurMaster = Master;
|
||||||
|
this.CurQueryTable = QueryTalbe;
|
||||||
|
this.CurQueryEntity = queryentity;
|
||||||
|
|
||||||
|
if (!IsPostBack)
|
||||||
|
{
|
||||||
|
InitControl();
|
||||||
|
}
|
||||||
|
|
||||||
|
base.InitPage();
|
||||||
|
}
|
||||||
|
|
||||||
|
protected override bool QueryLogicValid()
|
||||||
|
{
|
||||||
|
if (cbxJGBID.SelectedValue.Trim().Equals(""))
|
||||||
|
{
|
||||||
|
ShowMessage("调价表--不允许为空!");
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (txtBJSLSDY.Value < 0 || txtBJSLSXY.Value < 0 || txtBJSLZDY.Value < 0 || txtBJSLZXY.Value < 0)
|
||||||
|
{
|
||||||
|
ShowMessage("报价数量查询不允许小于0!");
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
return base.QueryLogicValid();
|
||||||
|
}
|
||||||
|
|
||||||
|
private void InitControl()
|
||||||
|
{
|
||||||
|
TDatabase dberp = TContextDatabases.GetDatabase("DBERP");
|
||||||
|
TSQL sql = new TSQL(dberp);
|
||||||
|
sql.Add("SELECT XLXSJGB_JGBID,XLXSJGB_YXQS,XLXSJGB_YXQZ,XLXSJGB_JGBMC from XLXSJGB where XLXSJGB_MXBH='BJD' and XLXSJGB_TJYS='L' order by XLXSJGB_JGBID");
|
||||||
|
DataSet ds = dberp.OpenDataSet(sql);
|
||||||
|
cbxJGBID.ClearItems();
|
||||||
|
for (int i = 0; i < ds.Tables[0].Rows.Count; i++)
|
||||||
|
{
|
||||||
|
string sJGBID = ds.Tables[0].Rows[i]["XLXSJGB_JGBID"].ToString().Trim();
|
||||||
|
string sYXQS = ds.Tables[0].Rows[i]["XLXSJGB_YXQS"].ToString().Trim();
|
||||||
|
string sYXQZ = ds.Tables[0].Rows[i]["XLXSJGB_YXQZ"].ToString().Trim();
|
||||||
|
string sJGBMC = ds.Tables[0].Rows[i]["XLXSJGB_JGBMC"].ToString().Trim();
|
||||||
|
if (sYXQS.Equals(""))
|
||||||
|
sYXQS = "--";
|
||||||
|
else
|
||||||
|
sYXQS = CMISproConvert.ConvertDate(sYXQS);
|
||||||
|
if (sYXQZ.Equals(""))
|
||||||
|
sYXQZ = "--";
|
||||||
|
else
|
||||||
|
sYXQZ = CMISproConvert.ConvertDate(sYXQZ);
|
||||||
|
if (sJGBMC.Equals(""))
|
||||||
|
cbxJGBID.Items.Add(new ListItem(sJGBID + "|" + sYXQS + "至" + sYXQZ, sJGBID));
|
||||||
|
else
|
||||||
|
cbxJGBID.Items.Add(new ListItem(sJGBID + "|" + sYXQS + "至" + sYXQZ + "|" + sJGBMC, sJGBID));
|
||||||
|
}
|
||||||
|
|
||||||
|
TComboBox.SetComboBox("DBERP", cbxXLBZID, "select XLBZ_XLBZID,XLBZ_XLBZLXMC from XLBZ where 1=1 and len(XLBZ_XLBZID) < 10 order by XLBZ_PX,XLBZ_XLBZID ", true);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
Generated
+151
@@ -0,0 +1,151 @@
|
|||||||
|
//------------------------------------------------------------------------------
|
||||||
|
// <auto-generated>
|
||||||
|
// 此代码由工具生成。
|
||||||
|
// 运行时版本:2.0.50727.9179
|
||||||
|
//
|
||||||
|
// 对此文件的更改可能会导致不正确的行为,并且如果
|
||||||
|
// 重新生成代码,这些更改将会丢失。
|
||||||
|
// </auto-generated>
|
||||||
|
//------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
namespace GThinking.N_XLXSBJ {
|
||||||
|
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// TZYZBJLQuery 类。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的类。
|
||||||
|
/// </remarks>
|
||||||
|
public partial class TZYZBJLQuery {
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// QueryTalbe 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::System.Web.UI.WebControls.Table QueryTalbe;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// GtLabel4 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtLabel GtLabel4;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// cbxJGBID 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtComboBox cbxJGBID;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// lblXLBZID 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtLabel lblXLBZID;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// cbxXLBZID 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtComboBox cbxXLBZID;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// lblBJSLSDY 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtLabel lblBJSLSDY;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtBJSLSDY 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtNumTextBox txtBJSLSDY;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// lblBJSLSXY 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtLabel lblBJSLSXY;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtBJSLSXY 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtNumTextBox txtBJSLSXY;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// lblBJSLZDY 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtLabel lblBJSLZDY;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtBJSLZDY 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtNumTextBox txtBJSLZDY;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// lblBJSLZXY 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtLabel lblBJSLZXY;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtBJSLZXY 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtNumTextBox txtBJSLZXY;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Master 属性。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的属性。
|
||||||
|
/// </remarks>
|
||||||
|
public new GThinking.N_MODEL.Page.MasterSingleQuery Master {
|
||||||
|
get {
|
||||||
|
return ((GThinking.N_MODEL.Page.MasterSingleQuery)(base.Master));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,26 @@
|
|||||||
|
using System;
|
||||||
|
using System.Data;
|
||||||
|
using System.Configuration;
|
||||||
|
using System.Web;
|
||||||
|
using System.Web.Security;
|
||||||
|
using System.Web.UI;
|
||||||
|
using System.Web.UI.WebControls;
|
||||||
|
using System.Web.UI.WebControls.WebParts;
|
||||||
|
using System.Web.UI.HtmlControls;
|
||||||
|
using GThinking.N_MODEL.Page;
|
||||||
|
|
||||||
|
namespace GThinking.N_XLXSBJ
|
||||||
|
{
|
||||||
|
public class TZYZBJL_M : TBaseNamedQuery
|
||||||
|
{
|
||||||
|
public TZYZBJL_M()
|
||||||
|
{
|
||||||
|
AddFieldDefs("JGBID", "JGBID", false);
|
||||||
|
AddFieldDefs("XLBZID", "XLBZID");
|
||||||
|
AddFieldDefs("BJSLSDY", "BJSLS>=");
|
||||||
|
AddFieldDefs("BJSLSXY", "BJSLS<=");
|
||||||
|
AddFieldDefs("BJSLZDY", "BJSLZ>=");
|
||||||
|
AddFieldDefs("BJSLZXY", "BJSLZ<=");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
+25
-6
@@ -12,28 +12,28 @@ using GThinking.N_MODEL.Page;
|
|||||||
namespace GThinking.N_XLXSBJ
|
namespace GThinking.N_XLXSBJ
|
||||||
{
|
{
|
||||||
[TableMap(DB = "DBERP", DbTableName = "XLXSJGBYZZC", Umid = 100860166, IsWorkFlow = false, IsAttach = false, UseWhr = false,
|
[TableMap(DB = "DBERP", DbTableName = "XLXSJGBYZZC", Umid = 100860166, IsWorkFlow = false, IsAttach = false, UseWhr = false,
|
||||||
QuerySelSql = "select XLXSJGBYZZC_JGBID, XLXSJGBYZZC_CPTX, " + "\r\n"
|
QuerySelSql = "select XLXSJGBYZZC_JGBID, XLXSJGBYZZC_CPTX,XLXSJGBYZZC_ZXJM, " + "\r\n"
|
||||||
+ " XLXSJGBYZZC_YZID, XLXSJGBYZZC_YZZ, XLXSJGBYZZC_WHR, XLXSJGBYZZC_WHRID, XLXSJGBYZZC_WHSJ " + "\r\n"
|
+ " XLXSJGBYZZC_YZID, XLXSJGBYZZC_YZZ, XLXSJGBYZZC_WHR, XLXSJGBYZZC_WHRID, XLXSJGBYZZC_WHSJ " + "\r\n"
|
||||||
+ " from XLXSJGBYZZC " + "\r\n"
|
+ " from XLXSJGBYZZC " + "\r\n"
|
||||||
+ " where 1=1 ",
|
+ " where 1=1 ",
|
||||||
|
|
||||||
EntitySelSql = " select XLXSJGBYZZC_JGBID,XLXSJGBYZZC_CPTX,XLXSJGBYZZC_YZID, " + "\r\n"
|
EntitySelSql = " select XLXSJGBYZZC_JGBID,XLXSJGBYZZC_CPTX,XLXSJGBYZZC_ZXJM,XLXSJGBYZZC_YZID, " + "\r\n"
|
||||||
+ " XLXSJGBYZZC_WHR,XLXSJGBYZZC_WHRID,XLXSJGBYZZC_WHSJ " + "\r\n"
|
+ " XLXSJGBYZZC_WHR,XLXSJGBYZZC_WHRID,XLXSJGBYZZC_WHSJ " + "\r\n"
|
||||||
+ " from XLXSJGBYZZC " + "\r\n"
|
+ " from XLXSJGBYZZC " + "\r\n"
|
||||||
+ " where XLXSJGBYZZC_JGBID=:XLXSJGBYZZC_JGBID and XLXSJGBYZZC_CPTX =:XLXSJGBYZZC_CPTX "
|
+ " where XLXSJGBYZZC_JGBID=:XLXSJGBYZZC_JGBID and XLXSJGBYZZC_CPTX =:XLXSJGBYZZC_CPTX and XLXSJGBYZZC_ZXJM=:XLXSJGBYZZC_ZXJM "
|
||||||
+ " and XLXSJGBYZZC_YZID=:XLXSJGBYZZC_YZID",
|
+ " and XLXSJGBYZZC_YZID=:XLXSJGBYZZC_YZID",
|
||||||
|
|
||||||
UpdateSql = " update XLXSJGBYZZC "
|
UpdateSql = " update XLXSJGBYZZC "
|
||||||
+ " set XLXSJGBYZZC_JGBID = :XLXSJGBYZZC_JGBID, "
|
+ " set XLXSJGBYZZC_JGBID = :XLXSJGBYZZC_JGBID, "
|
||||||
+ " XLXSJGBYZZC_CPTX=:XLXSJGBYZZC_CPTX, "
|
+ " XLXSJGBYZZC_CPTX=:XLXSJGBYZZC_CPTX, XLXSJGBYZZC_ZXJM=:XLXSJGBYZZC_ZXJM, "
|
||||||
+ " XLXSJGBYZZC_WHR=:XLXSJGBYZZC_WHR, XLXSJGBYZZC_WHRID=:XLXSJGBYZZC_WHRID, XLXSJGBYZZC_WHSJ=:XLXSJGBYZZC_WHSJ "
|
+ " XLXSJGBYZZC_WHR=:XLXSJGBYZZC_WHR, XLXSJGBYZZC_WHRID=:XLXSJGBYZZC_WHRID, XLXSJGBYZZC_WHSJ=:XLXSJGBYZZC_WHSJ "
|
||||||
+ " where XLXSJGBYZZC_JGBID =:XLXSJGBYZZC_JGBID "
|
+ " where XLXSJGBYZZC_JGBID =:XLXSJGBYZZC_JGBID "
|
||||||
+ " and XLXSJGBYZZC_CPTX =:OLD_XLXSJGBYZZC_CPTX ",
|
+ " and XLXSJGBYZZC_CPTX =:OLD_XLXSJGBYZZC_CPTX and XLXSJGBYZZC_ZXJM=:OLD_XLXSJGBYZZC_ZXJM ",
|
||||||
|
|
||||||
|
|
||||||
InsertSql = " select XLXSJGBYZZC_JGBID from XLXSJGBYZZC where 1 <> 1 ",
|
InsertSql = " select XLXSJGBYZZC_JGBID from XLXSJGBYZZC where 1 <> 1 ",
|
||||||
DeleteSql = " delete from XLXSJGBYZZC where XLXSJGBYZZC_JGBID =:XLXSJGBYZZC_JGBID "
|
DeleteSql = " delete from XLXSJGBYZZC where XLXSJGBYZZC_JGBID =:XLXSJGBYZZC_JGBID "
|
||||||
+ " and XLXSJGBYZZC_CPTX=:XLXSJGBYZZC_CPTX ")]
|
+ " and XLXSJGBYZZC_CPTX=:XLXSJGBYZZC_CPTX and XLXSJGBYZZC_ZXJM=:XLXSJGBYZZC_ZXJM ")]
|
||||||
|
|
||||||
public class TZYZJJC : EntityManager
|
public class TZYZJJC : EntityManager
|
||||||
{
|
{
|
||||||
@@ -64,6 +64,25 @@ DeleteSql = " delete from XLXSJGBYZZC where XLXSJGBYZZC_JGBID =:XLXSJGBYZZC_JGBI
|
|||||||
set { _OLD_XLXSJGBYZZC_CPTX = value; }
|
set { _OLD_XLXSJGBYZZC_CPTX = value; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
private string _XLXSJGBYZZC_ZXJM;
|
||||||
|
[ColumnMap(DbField = "XLXSJGBYZZC_ZXJM", CtrlName = "txtZXJM", Type = FieldType.F, DbTitle = "主芯截面", DefaultValue = "0",
|
||||||
|
IsAllowNull = true, IsKey = true, Length = 8)]
|
||||||
|
public string XLXSJGBYZZC_ZXJM
|
||||||
|
{
|
||||||
|
get { return _XLXSJGBYZZC_ZXJM; }
|
||||||
|
set { _XLXSJGBYZZC_ZXJM = value; }
|
||||||
|
}
|
||||||
|
|
||||||
|
private string _OLD_XLXSJGBYZZC_ZXJM;
|
||||||
|
[ColumnMap(DbField = "OLD_XLXSJGBYZZC_ZXJM", CtrlName = "txtOLD_ZXJM", DbTitle = "原主芯截面", Type = FieldType.HiddenField, DefaultValue = "0",
|
||||||
|
IsAllowNull = true, IsKey = false, Length = 0)]
|
||||||
|
public string OLD_XLXSJGBYZZC_ZXJM
|
||||||
|
{
|
||||||
|
get { return _OLD_XLXSJGBYZZC_ZXJM; }
|
||||||
|
set { _OLD_XLXSJGBYZZC_ZXJM = value; }
|
||||||
|
}
|
||||||
|
|
||||||
private string _XLXSJGBYZZC_YZID;
|
private string _XLXSJGBYZZC_YZID;
|
||||||
[ColumnMap(DbField = "XLXSJGBYZZC_YZID", CtrlName = "txtYZID", DbTitle = "调价因子编码", Type = FieldType.HiddenField, DefaultValue = "",
|
[ColumnMap(DbField = "XLXSJGBYZZC_YZID", CtrlName = "txtYZID", DbTitle = "调价因子编码", Type = FieldType.HiddenField, DefaultValue = "",
|
||||||
IsAllowNull = true, IsKey = true, Length = 10)]
|
IsAllowNull = true, IsKey = true, Length = 10)]
|
||||||
|
|||||||
@@ -21,6 +21,15 @@ AutoEventWireup="true" CodeBehind="TZYZJJCInfo.aspx.cs" Inherits="GThinking.N_XL
|
|||||||
<gtc:gtComboBox ID="cbxCPTX" runat="Server" Width="130px" Tag="Star" ShowValue="false" >
|
<gtc:gtComboBox ID="cbxCPTX" runat="Server" Width="130px" Tag="Star" ShowValue="false" >
|
||||||
</gtc:gtComboBox>
|
</gtc:gtComboBox>
|
||||||
</td>
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr style="height: 1px;" />
|
||||||
|
<tr>
|
||||||
|
<td align="right">
|
||||||
|
<gtc:gtLabel ID="GtLabel1" runat="server">主芯截面:</gtc:gtLabel>
|
||||||
|
</td>
|
||||||
|
<td align="left">
|
||||||
|
<gtc:gtNumTextBox ID="txtZXJM" runat="server" Width="80px" ShowZero="false"></gtc:gtNumTextBox>
|
||||||
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr style="height: 1px;" />
|
<tr style="height: 1px;" />
|
||||||
<tr>
|
<tr>
|
||||||
@@ -136,4 +145,5 @@ AutoEventWireup="true" CodeBehind="TZYZJJCInfo.aspx.cs" Inherits="GThinking.N_XL
|
|||||||
<asp:HiddenField ID="txtJGBID" runat="server" />
|
<asp:HiddenField ID="txtJGBID" runat="server" />
|
||||||
<asp:HiddenField ID="txtYZID" runat="server" />
|
<asp:HiddenField ID="txtYZID" runat="server" />
|
||||||
<asp:HiddenField ID="txtOLD_CPTX" runat="server" />
|
<asp:HiddenField ID="txtOLD_CPTX" runat="server" />
|
||||||
|
<asp:HiddenField ID="txtOLD_ZXJM" runat="server" />
|
||||||
</asp:Content>
|
</asp:Content>
|
||||||
|
|||||||
+28
-16
@@ -76,7 +76,7 @@ namespace GThinking.N_XLXSBJ
|
|||||||
{
|
{
|
||||||
sSQL.Add(string.Format(",sum(decode(XLXSJGBYZZC_YZID, '{0}', XLXSJGBYZZC_YZZ, 0)) as TZYZ_{0}", ds.Tables[0].Rows[i][0].ToString().Trim()));
|
sSQL.Add(string.Format(",sum(decode(XLXSJGBYZZC_YZID, '{0}', XLXSJGBYZZC_YZZ, 0)) as TZYZ_{0}", ds.Tables[0].Rows[i][0].ToString().Trim()));
|
||||||
}
|
}
|
||||||
sSQL.Text = "select 1" + sSQL.Text + " from XLXSJGBYZZC where XLXSJGBYZZC_JGBID='" + txtJGBID.Value.Trim() + "' and XLXSJGBYZZC_CPTX='" + cbxCPTX.SelectedValue.Trim() + "' ";
|
sSQL.Text = "select 1" + sSQL.Text + " from XLXSJGBYZZC where XLXSJGBYZZC_JGBID='" + txtJGBID.Value.Trim() + "' and XLXSJGBYZZC_CPTX='" + cbxCPTX.SelectedValue.Trim() + "' and XLXSJGBYZZC_ZXJM="+txtZXJM.Value.ToString();
|
||||||
AddUserReportSQL("XLXSJGBYZZC", sSQL);
|
AddUserReportSQL("XLXSJGBYZZC", sSQL);
|
||||||
base.ReportRecordSetAdd();
|
base.ReportRecordSetAdd();
|
||||||
}
|
}
|
||||||
@@ -161,6 +161,7 @@ namespace GThinking.N_XLXSBJ
|
|||||||
{
|
{
|
||||||
entity.Param.Add("XLXSJGBYZZC_JGBID", PageParam.GetRTrimString("XLXSJGBYZZC_JGBID"));
|
entity.Param.Add("XLXSJGBYZZC_JGBID", PageParam.GetRTrimString("XLXSJGBYZZC_JGBID"));
|
||||||
entity.Param.Add("XLXSJGBYZZC_CPTX", PageParam.GetRTrimString("XLXSJGBYZZC_CPTX"));
|
entity.Param.Add("XLXSJGBYZZC_CPTX", PageParam.GetRTrimString("XLXSJGBYZZC_CPTX"));
|
||||||
|
entity.Param.Add("XLXSJGBYZZC_ZXJM", PageParam.GetRTrimString("XLXSJGBYZZC_ZXJM"));
|
||||||
|
|
||||||
entity.Param.Add("XLXSJGBYZZC_YZID", PageParam.GetRTrimString("XLXSJGBYZZC_YZID"));
|
entity.Param.Add("XLXSJGBYZZC_YZID", PageParam.GetRTrimString("XLXSJGBYZZC_YZID"));
|
||||||
}
|
}
|
||||||
@@ -168,6 +169,7 @@ namespace GThinking.N_XLXSBJ
|
|||||||
{
|
{
|
||||||
entity.Param.Add("XLXSJGBYZZC_JGBID", txtJGBID.Value.Trim());
|
entity.Param.Add("XLXSJGBYZZC_JGBID", txtJGBID.Value.Trim());
|
||||||
entity.Param.Add("XLXSJGBYZZC_CPTX", txtOLD_CPTX.Value.Trim());
|
entity.Param.Add("XLXSJGBYZZC_CPTX", txtOLD_CPTX.Value.Trim());
|
||||||
|
entity.Param.Add("XLXSJGBYZZC_ZXJM", txtOLD_ZXJM.Value.Trim());
|
||||||
|
|
||||||
entity.Param.Add("XLXSJGBYZZC_YZID", txtYZID.Value.Trim());
|
entity.Param.Add("XLXSJGBYZZC_YZID", txtYZID.Value.Trim());
|
||||||
}
|
}
|
||||||
@@ -175,13 +177,16 @@ namespace GThinking.N_XLXSBJ
|
|||||||
|
|
||||||
txtOLD_CPTX.Value = cbxCPTX.SelectedValue.Trim();
|
txtOLD_CPTX.Value = cbxCPTX.SelectedValue.Trim();
|
||||||
|
|
||||||
|
txtOLD_ZXJM.Value = txtZXJM.Value.ToString();
|
||||||
|
|
||||||
# region 给调价因子控件赋值
|
# region 给调价因子控件赋值
|
||||||
TDatabase dberp = TContextDatabases.GetDatabase("DBERP");
|
TDatabase dberp = TContextDatabases.GetDatabase("DBERP");
|
||||||
TSQL sql = new TSQL(dberp);
|
TSQL sql = new TSQL(dberp);
|
||||||
sql.Add("select XLXSJGBYZZC_YZID, XLXSJGBYZZC_YZZ, XLXSJGBYZZC_WHR, XLXSJGBYZZC_WHRID, XLXSJGBYZZC_WHSJ from XLXSJGBYZZC ");
|
sql.Add("select XLXSJGBYZZC_YZID, XLXSJGBYZZC_YZZ, XLXSJGBYZZC_WHR, XLXSJGBYZZC_WHRID, XLXSJGBYZZC_WHSJ from XLXSJGBYZZC ");
|
||||||
sql.Add("where XLXSJGBYZZC_JGBID=:pJGBID and XLXSJGBYZZC_CPTX=:pCPTX order by XLXSJGBYZZC_YZID");
|
sql.Add("where XLXSJGBYZZC_JGBID=:pJGBID and XLXSJGBYZZC_CPTX=:pCPTX and XLXSJGBYZZC_ZXJM=:pZXJM order by XLXSJGBYZZC_YZID");
|
||||||
sql.ParamByName("pJGBID").Value = txtJGBID.Value.Trim();
|
sql.ParamByName("pJGBID").Value = txtJGBID.Value.Trim();
|
||||||
sql.ParamByName("pCPTX").Value = cbxCPTX.SelectedValue.Trim();
|
sql.ParamByName("pCPTX").Value = cbxCPTX.SelectedValue.Trim();
|
||||||
|
sql.ParamByName("pZXJM").Value = txtZXJM.Value;
|
||||||
|
|
||||||
DataSet ds = dberp.OpenDataSet(sql);
|
DataSet ds = dberp.OpenDataSet(sql);
|
||||||
for (int i = 0; i < ds.Tables[0].Rows.Count; i++)
|
for (int i = 0; i < ds.Tables[0].Rows.Count; i++)
|
||||||
@@ -256,6 +261,10 @@ namespace GThinking.N_XLXSBJ
|
|||||||
{
|
{
|
||||||
cbxCPTX.SelectedValue = PageParam.GetRTrimString("XLXSJGBYZZC_CPTX");
|
cbxCPTX.SelectedValue = PageParam.GetRTrimString("XLXSJGBYZZC_CPTX");
|
||||||
}
|
}
|
||||||
|
if (!PageParam.GetRTrimString("XLXSJGBYZZC_ZXJM").Equals(""))
|
||||||
|
{
|
||||||
|
txtZXJM.Value = CMISproConvert.StrToFloat(PageParam.GetRTrimString("XLXSJGBYZZC_ZXJM"));
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -278,8 +287,8 @@ namespace GThinking.N_XLXSBJ
|
|||||||
|
|
||||||
if (ControlState == TControlState.ctsInsert || ControlState == TControlState.ctsCopy)
|
if (ControlState == TControlState.ctsInsert || ControlState == TControlState.ctsCopy)
|
||||||
{
|
{
|
||||||
if (CMISproDataBase.ExistsRecord("DBERP", string.Format("select 1 from XLXSJGBYZZC where XLXSJGBYZZC_JGBID='{0}' and XLXSJGBYZZC_CPTX='{1}' and XLXSJGBYZZC_YZID='{2}'",
|
if (CMISproDataBase.ExistsRecord("DBERP", string.Format("select 1 from XLXSJGBYZZC where XLXSJGBYZZC_JGBID='{0}' and XLXSJGBYZZC_CPTX='{1}' and XLXSJGBYZZC_ZXJM={2} and XLXSJGBYZZC_YZID='{3}'",
|
||||||
txtJGBID.Value.Trim(), cbxCPTX.SelectedValue.Trim(), sTJYZList[i].Split('|')[0])))
|
txtJGBID.Value.Trim(), cbxCPTX.SelectedValue.Trim(),txtZXJM.Value.ToString(), sTJYZList[i].Split('|')[0])))
|
||||||
{
|
{
|
||||||
ShowMessage("已存在编号相同的记录,不允许保存!");
|
ShowMessage("已存在编号相同的记录,不允许保存!");
|
||||||
return false;
|
return false;
|
||||||
@@ -287,10 +296,10 @@ namespace GThinking.N_XLXSBJ
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (CMISproDataBase.ExistsRecord("DBERP", string.Format(@"select 1 from XLXSJGBYZZC where XLXSJGBYZZC_JGBID='{0}' and XLXSJGBYZZC_CPTX='{1}' and XLXSJGBYZZC_YZID='{3}'
|
if (CMISproDataBase.ExistsRecord("DBERP", string.Format(@"select 1 from XLXSJGBYZZC where XLXSJGBYZZC_JGBID='{0}' and XLXSJGBYZZC_CPTX='{1}' and XLXSJGBYZZC_ZXJM={2} and XLXSJGBYZZC_YZID='{3}'
|
||||||
and XLXSJGBYZZC_CPTX<>'{2}' ",
|
and XLXSJGBYZZC_CPTX<>'{4}' and XLXSJGBYZZC_ZXJM<>{5} ",
|
||||||
txtJGBID.Value.Trim(), cbxCPTX.SelectedValue.Trim(),
|
txtJGBID.Value.Trim(), cbxCPTX.SelectedValue.Trim(),txtZXJM.Value.ToString(),
|
||||||
txtOLD_CPTX.Value.Trim(), sTJYZList[i].Split('|')[0])))
|
sTJYZList[i].Split('|')[0],txtOLD_CPTX.Value.Trim(),txtOLD_ZXJM.Value.Trim())))
|
||||||
{
|
{
|
||||||
ShowMessage("已存在编号相同的记录,不允许保存!");
|
ShowMessage("已存在编号相同的记录,不允许保存!");
|
||||||
return false;
|
return false;
|
||||||
@@ -308,7 +317,7 @@ namespace GThinking.N_XLXSBJ
|
|||||||
protected override bool Master_BeforeDeleteAction(object sender, EventArgs e)
|
protected override bool Master_BeforeDeleteAction(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
string sYZIDlist = TZYZBJAInfo.GetYZIDList(PageParam.GetRTrimString("TJYZList"));
|
string sYZIDlist = TZYZBJAInfo.GetYZIDList(PageParam.GetRTrimString("TJYZList"));
|
||||||
entity.EntityTable.DeleteSql = " delete from XLXSJGBYZZC where XLXSJGBYZZC_JGBID=:XLXSJGBYZZC_JGBID and XLXSJGBYZZC_CPTX =:XLXSJGBYZZC_CPTX and "
|
entity.EntityTable.DeleteSql = " delete from XLXSJGBYZZC where XLXSJGBYZZC_JGBID=:XLXSJGBYZZC_JGBID and XLXSJGBYZZC_CPTX =:XLXSJGBYZZC_CPTX and XLXSJGBYZZC_ZXJM =:XLXSJGBYZZC_ZXJM and "
|
||||||
+ CMISproDataBase.GetWhereEqual("XLXSJGBYZZC_YZID", sYZIDlist);
|
+ CMISproDataBase.GetWhereEqual("XLXSJGBYZZC_YZID", sYZIDlist);
|
||||||
return base.Master_BeforeDeleteAction(sender, e);
|
return base.Master_BeforeDeleteAction(sender, e);
|
||||||
}
|
}
|
||||||
@@ -319,9 +328,9 @@ namespace GThinking.N_XLXSBJ
|
|||||||
|
|
||||||
string sYZIDlist = TZYZBJAInfo.GetYZIDList(PageParam.GetRTrimString("TJYZList"));
|
string sYZIDlist = TZYZBJAInfo.GetYZIDList(PageParam.GetRTrimString("TJYZList"));
|
||||||
entity.EntityTable.UpdateSql = " update XLXSJGBYZZC "
|
entity.EntityTable.UpdateSql = " update XLXSJGBYZZC "
|
||||||
+ " set XLXSJGBYZZC_CPTX= :XLXSJGBYZZC_CPTX "
|
+ " set XLXSJGBYZZC_CPTX= :XLXSJGBYZZC_CPTX,XLXSJGBYZZC_ZXJM=:XLXSJGBYZZC_ZXJM "
|
||||||
|
|
||||||
+ " where XLXSJGBYZZC_JGBID=:XLXSJGBYZZC_JGBID and XLXSJGBYZZC_CPTX =:OLD_XLXSJGBYZZC_CPTX "
|
+ " where XLXSJGBYZZC_JGBID=:XLXSJGBYZZC_JGBID and XLXSJGBYZZC_CPTX =:OLD_XLXSJGBYZZC_CPTX and XLXSJGBYZZC_ZXJM=:OLD_XLXSJGBYZZC_ZXJM"
|
||||||
+ " and " + CMISproDataBase.GetWhereEqual("XLXSJGBYZZC_YZID", sYZIDlist);
|
+ " and " + CMISproDataBase.GetWhereEqual("XLXSJGBYZZC_YZID", sYZIDlist);
|
||||||
|
|
||||||
txtWHR.Text = tSession.UserName;
|
txtWHR.Text = tSession.UserName;
|
||||||
@@ -334,27 +343,30 @@ namespace GThinking.N_XLXSBJ
|
|||||||
protected override bool Master_AfterSaveAction(object sender, EventArgs e)
|
protected override bool Master_AfterSaveAction(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
txtOLD_CPTX.Value = cbxCPTX.SelectedValue.Trim();
|
txtOLD_CPTX.Value = cbxCPTX.SelectedValue.Trim();
|
||||||
|
txtOLD_ZXJM.Value = txtZXJM.Value.ToString();
|
||||||
txtYZID.Value = PageParam.GetRTrimString("FirstYZID");
|
txtYZID.Value = PageParam.GetRTrimString("FirstYZID");
|
||||||
|
|
||||||
string sJGBID = txtJGBID.Value.Trim();
|
string sJGBID = txtJGBID.Value.Trim();
|
||||||
string sCPTX = cbxCPTX.SelectedValue.Trim();
|
string sCPTX = cbxCPTX.SelectedValue.Trim();
|
||||||
|
|
||||||
# region 将调价因子控件值更新至数据库中
|
# region 将调价因子控件值更新至数据库中
|
||||||
TDatabase dberp = TContextDatabases.GetDatabase("DBERP");
|
TDatabase dberp = TContextDatabases.GetDatabase("DBERP");
|
||||||
TSQL sql = new TSQL(dberp);
|
TSQL sql = new TSQL(dberp);
|
||||||
sql.Clear();
|
sql.Clear();
|
||||||
string sYZIDlist = TZYZBJAInfo.GetYZIDList(PageParam.GetRTrimString("TJYZList"));
|
string sYZIDlist = TZYZBJAInfo.GetYZIDList(PageParam.GetRTrimString("TJYZList"));
|
||||||
dberp.ExecSQL(string.Format("delete from XLXSJGBYZZC where XLXSJGBYZZC_JGBID='{0}' and XLXSJGBYZZC_CPTX='{1}' and " + CMISproDataBase.GetWhereEqual("XLXSJGBYZZC_YZID", sYZIDlist)
|
dberp.ExecSQL(string.Format("delete from XLXSJGBYZZC where XLXSJGBYZZC_JGBID='{0}' and XLXSJGBYZZC_CPTX='{1}' and XLXSJGBYZZC_ZXJM={2} and " + CMISproDataBase.GetWhereEqual("XLXSJGBYZZC_YZID", sYZIDlist)
|
||||||
, sJGBID, sCPTX));
|
, sJGBID, sCPTX,txtZXJM.Value.ToString()));
|
||||||
|
|
||||||
string[] sTJYZList = PageParam.GetRTrimString("TJYZList").Split(',');
|
string[] sTJYZList = PageParam.GetRTrimString("TJYZList").Split(',');
|
||||||
DateTime tNow = DateTime.Now;
|
DateTime tNow = DateTime.Now;
|
||||||
for (int i = 0; i < sTJYZList.Length; i++)
|
for (int i = 0; i < sTJYZList.Length; i++)
|
||||||
{
|
{
|
||||||
sql.Clear();
|
sql.Clear();
|
||||||
sql.Add("insert into XLXSJGBYZZC(XLXSJGBYZZC_JGBID,XLXSJGBYZZC_CPTX,XLXSJGBYZZC_YZID,XLXSJGBYZZC_YZZ,XLXSJGBYZZC_WHR,XLXSJGBYZZC_WHRID,XLXSJGBYZZC_WHSJ)");
|
sql.Add("insert into XLXSJGBYZZC(XLXSJGBYZZC_JGBID,XLXSJGBYZZC_CPTX,XLXSJGBYZZC_ZXJM,XLXSJGBYZZC_YZID,XLXSJGBYZZC_YZZ,XLXSJGBYZZC_WHR,XLXSJGBYZZC_WHRID,XLXSJGBYZZC_WHSJ)");
|
||||||
sql.Add(" values(:pJGBID,:pCPTX,:pYZID,:pYZZ,:pWHR,:pWHRID,:pWHSJ)");
|
sql.Add(" values(:pJGBID,:pCPTX,:pZXJM,:pYZID,:pYZZ,:pWHR,:pWHRID,:pWHSJ)");
|
||||||
sql.ParamByName("pJGBID").Value = sJGBID;
|
sql.ParamByName("pJGBID").Value = sJGBID;
|
||||||
sql.ParamByName("pCPTX").Value = sCPTX;
|
sql.ParamByName("pCPTX").Value = sCPTX;
|
||||||
|
sql.ParamByName("pZXJM").Value = txtZXJM.Value;
|
||||||
sql.ParamByName("pWHR").Value = tSession.UserName;
|
sql.ParamByName("pWHR").Value = tSession.UserName;
|
||||||
sql.ParamByName("pWHRID").Value = tSession.UserId;
|
sql.ParamByName("pWHRID").Value = tSession.UserId;
|
||||||
sql.ParamByName("pWHSJ").Value = tNow;
|
sql.ParamByName("pWHSJ").Value = tNow;
|
||||||
@@ -426,7 +438,7 @@ namespace GThinking.N_XLXSBJ
|
|||||||
|
|
||||||
protected override void SetComboxItems()
|
protected override void SetComboxItems()
|
||||||
{
|
{
|
||||||
TComboBox.SetComboBox("DBERP", cbxCPTX, "select distinct XLXSBJCPYS_XXJGID as ID, XLXSBJCPYS_XXJGID as Name from XLXSBJCPYS where 1=1 order by XLXSBJCPYS_XXJGID ", false);
|
TComboBox.SetComboBox("DBERP", cbxCPTX, "select distinct XLXHB_XLTXID as ID, XLXHB_XLTXID as Name from XLXHB where 1=1 and isnull(XLXHB_XLTXID,' ')<>' ' order by XLXHB_XLTXID ", false);
|
||||||
|
|
||||||
base.SetComboxItems();
|
base.SetComboxItems();
|
||||||
}
|
}
|
||||||
|
|||||||
Generated
+27
@@ -37,6 +37,24 @@ namespace GThinking.N_XLXSBJ {
|
|||||||
/// </remarks>
|
/// </remarks>
|
||||||
protected global::GThinking.N_CONTROL.gtComboBox cbxCPTX;
|
protected global::GThinking.N_CONTROL.gtComboBox cbxCPTX;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// GtLabel1 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtLabel GtLabel1;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtZXJM 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::GThinking.N_CONTROL.gtNumTextBox txtZXJM;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// lblTJYZ1 控件。
|
/// lblTJYZ1 控件。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@@ -289,6 +307,15 @@ namespace GThinking.N_XLXSBJ {
|
|||||||
/// </remarks>
|
/// </remarks>
|
||||||
protected global::System.Web.UI.WebControls.HiddenField txtOLD_CPTX;
|
protected global::System.Web.UI.WebControls.HiddenField txtOLD_CPTX;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtOLD_ZXJM 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::System.Web.UI.WebControls.HiddenField txtOLD_ZXJM;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Master 属性。
|
/// Master 属性。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|||||||
@@ -23,12 +23,18 @@
|
|||||||
<itemstyle width="160px"></itemstyle>
|
<itemstyle width="160px"></itemstyle>
|
||||||
<headerstyle width="160px"></headerstyle>
|
<headerstyle width="160px"></headerstyle>
|
||||||
</asp:BoundField>
|
</asp:BoundField>
|
||||||
|
<asp:BoundField HeaderText="主芯截面" DataField="XLXSJGBYZZC_ZXJM">
|
||||||
|
<itemstyle width="120px"></itemstyle>
|
||||||
|
<headerstyle width="120px"></headerstyle>
|
||||||
|
</asp:BoundField>
|
||||||
</Columns>
|
</Columns>
|
||||||
<ColumnsEx>
|
<ColumnsEx>
|
||||||
<gtc:gtGridView_Column DataField="XLXSJGBYZZC_JGBID" ShowHint="True">
|
<gtc:gtGridView_Column DataField="XLXSJGBYZZC_JGBID" ShowHint="True">
|
||||||
</gtc:gtGridView_Column>
|
</gtc:gtGridView_Column>
|
||||||
<gtc:gtGridView_Column DataField="XLXSJGBYZZC_CPTX" ShowHint="true">
|
<gtc:gtGridView_Column DataField="XLXSJGBYZZC_CPTX" ShowHint="true">
|
||||||
</gtc:gtGridView_Column>
|
</gtc:gtGridView_Column>
|
||||||
|
<gtc:gtGridView_Column DataField="XLXSJGBYZZC_ZXJM" EditType="etNumber" NumberDecimalPlace="2" ShowHint="true">
|
||||||
|
</gtc:gtGridView_Column>
|
||||||
</ColumnsEx>
|
</ColumnsEx>
|
||||||
</gtc:gtGridView>
|
</gtc:gtGridView>
|
||||||
<asp:HiddenField ID="txtFirstYZID" runat="server" />
|
<asp:HiddenField ID="txtFirstYZID" runat="server" />
|
||||||
|
|||||||
+10
-7
@@ -40,7 +40,7 @@ namespace GThinking.N_XLXSBJ
|
|||||||
this.PageHeight = 600;
|
this.PageHeight = 600;
|
||||||
this.PageWidth = 750;
|
this.PageWidth = 750;
|
||||||
|
|
||||||
base.DataKeyNames = new string[] { "XLXSJGBYZZC_JGBID", "XLXSJGBYZZC_CPTX", "minYZID" };
|
base.DataKeyNames = new string[] { "XLXSJGBYZZC_JGBID", "XLXSJGBYZZC_CPTX", "XLXSJGBYZZC_ZXJM", "minYZID" };
|
||||||
|
|
||||||
ContentGrid.FindColumnByFieldName("XLXSJGBYZZC_JGBID").Visible = false;
|
ContentGrid.FindColumnByFieldName("XLXSJGBYZZC_JGBID").Visible = false;
|
||||||
|
|
||||||
@@ -103,10 +103,11 @@ namespace GThinking.N_XLXSBJ
|
|||||||
protected override void BeforeDelete(TDatabase db, ref bool ActionIsDone)
|
protected override void BeforeDelete(TDatabase db, ref bool ActionIsDone)
|
||||||
{
|
{
|
||||||
string sYZIDlist = TZYZBJAInfo.GetYZIDList(txtTJYZList.Value.Trim());
|
string sYZIDlist = TZYZBJAInfo.GetYZIDList(txtTJYZList.Value.Trim());
|
||||||
entity.EntityTable.DeleteSql = " delete from XLXSJGBYZZC where XLXSJGBYZZC_JGBID=:XLXSJGBYZZC_JGBID and XLXSJGBYZZC_CPTX =:XLXSJGBYZZC_CPTX and "
|
entity.EntityTable.DeleteSql = " delete from XLXSJGBYZZC where XLXSJGBYZZC_JGBID=:XLXSJGBYZZC_JGBID and XLXSJGBYZZC_CPTX =:XLXSJGBYZZC_CPTX and XLXSJGBYZZC_ZXJM =:XLXSJGBYZZC_ZXJM and "
|
||||||
+ CMISproDataBase.GetWhereEqual("XLXSJGBYZZC_YZID", sYZIDlist);
|
+ CMISproDataBase.GetWhereEqual("XLXSJGBYZZC_YZID", sYZIDlist);
|
||||||
entity.Param.Add("XLXSJGBYZZC_JGBID", this.ContentGrid.SelectedDataKey["XLXSJGBYZZC_JGBID"].ToString().Trim());
|
entity.Param.Add("XLXSJGBYZZC_JGBID", this.ContentGrid.SelectedDataKey["XLXSJGBYZZC_JGBID"].ToString().Trim());
|
||||||
entity.Param.Add("XLXSJGBYZZC_CPTX", this.ContentGrid.SelectedDataKey["XLXSJGBYZZC_CPTX"].ToString().Trim());
|
entity.Param.Add("XLXSJGBYZZC_CPTX", this.ContentGrid.SelectedDataKey["XLXSJGBYZZC_CPTX"].ToString().Trim());
|
||||||
|
entity.Param.Add("XLXSJGBYZZC_ZXJM", this.ContentGrid.SelectedDataKey["XLXSJGBYZZC_ZXJM"].ToString().Trim());
|
||||||
base.BeforeDelete(db, ref ActionIsDone);
|
base.BeforeDelete(db, ref ActionIsDone);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -133,6 +134,7 @@ namespace GThinking.N_XLXSBJ
|
|||||||
{
|
{
|
||||||
LinkPageParam.AddString("XLXSJGBYZZC_JGBID", ContentGrid.DataKeys[e.Row.RowIndex]["XLXSJGBYZZC_JGBID"].ToString().Trim());
|
LinkPageParam.AddString("XLXSJGBYZZC_JGBID", ContentGrid.DataKeys[e.Row.RowIndex]["XLXSJGBYZZC_JGBID"].ToString().Trim());
|
||||||
LinkPageParam.AddString("XLXSJGBYZZC_CPTX", ContentGrid.DataKeys[e.Row.RowIndex]["XLXSJGBYZZC_CPTX"].ToString().Trim());
|
LinkPageParam.AddString("XLXSJGBYZZC_CPTX", ContentGrid.DataKeys[e.Row.RowIndex]["XLXSJGBYZZC_CPTX"].ToString().Trim());
|
||||||
|
LinkPageParam.AddString("XLXSJGBYZZC_ZXJM", ContentGrid.DataKeys[e.Row.RowIndex]["XLXSJGBYZZC_ZXJM"].ToString().Trim());
|
||||||
LinkPageParam.AddString("XLXSJGBYZZC_YZID", ContentGrid.DataKeys[e.Row.RowIndex]["minYZID"].ToString().Trim());
|
LinkPageParam.AddString("XLXSJGBYZZC_YZID", ContentGrid.DataKeys[e.Row.RowIndex]["minYZID"].ToString().Trim());
|
||||||
LinkPageParam.AddString("TJYZList", txtTJYZList.Value.Trim());
|
LinkPageParam.AddString("TJYZList", txtTJYZList.Value.Trim());
|
||||||
}
|
}
|
||||||
@@ -171,7 +173,7 @@ namespace GThinking.N_XLXSBJ
|
|||||||
InitGridView();
|
InitGridView();
|
||||||
string sYZIDlist = TZYZBJAInfo.GetYZIDList(txtTJYZList.Value.Trim());
|
string sYZIDlist = TZYZBJAInfo.GetYZIDList(txtTJYZList.Value.Trim());
|
||||||
StringBuilder sSQL = new StringBuilder();
|
StringBuilder sSQL = new StringBuilder();
|
||||||
sSQL.AppendLine("select :pJGBID as XLXSJGBYZZC_JGBID,XLXSJGBYZZC_CPTX ");
|
sSQL.AppendLine("select :pJGBID as XLXSJGBYZZC_JGBID,XLXSJGBYZZC_CPTX,XLXSJGBYZZC_ZXJM ");
|
||||||
sSQL.AppendLine(" ,minYZID");
|
sSQL.AppendLine(" ,minYZID");
|
||||||
if (XSWHR())
|
if (XSWHR())
|
||||||
{
|
{
|
||||||
@@ -187,7 +189,7 @@ namespace GThinking.N_XLXSBJ
|
|||||||
}
|
}
|
||||||
sSQL.AppendLine(" from ");
|
sSQL.AppendLine(" from ");
|
||||||
sSQL.AppendLine(" ( ");
|
sSQL.AppendLine(" ( ");
|
||||||
sSQL.AppendLine(" select XLXSJGBYZZC_CPTX,min(XLXSJGBYZZC_YZID) as minYZID ");
|
sSQL.AppendLine(" select XLXSJGBYZZC_CPTX,XLXSJGBYZZC_ZXJM,min(XLXSJGBYZZC_YZID) as minYZID ");
|
||||||
if (XSWHR())
|
if (XSWHR())
|
||||||
{
|
{
|
||||||
sSQL.AppendLine(" ,WHR,WHSJ ");
|
sSQL.AppendLine(" ,WHR,WHSJ ");
|
||||||
@@ -198,7 +200,7 @@ namespace GThinking.N_XLXSBJ
|
|||||||
}
|
}
|
||||||
sSQL.AppendLine(" from ");
|
sSQL.AppendLine(" from ");
|
||||||
sSQL.AppendLine(" (");
|
sSQL.AppendLine(" (");
|
||||||
sSQL.AppendLine(" select distinct XLXSJGBYZZC_CPTX,XLXSJGBYZZC_YZID,XLXSJGBYZZC_YZZ");
|
sSQL.AppendLine(" select distinct XLXSJGBYZZC_CPTX,XLXSJGBYZZC_ZXJM,XLXSJGBYZZC_YZID,XLXSJGBYZZC_YZZ");
|
||||||
if (XSWHR())
|
if (XSWHR())
|
||||||
{
|
{
|
||||||
sSQL.AppendLine(" ,XLXSJGBYZZC_WHR as WHR,XLXSJGBYZZC_WHSJ as WHSJ ");
|
sSQL.AppendLine(" ,XLXSJGBYZZC_WHR as WHR,XLXSJGBYZZC_WHSJ as WHSJ ");
|
||||||
@@ -225,14 +227,14 @@ namespace GThinking.N_XLXSBJ
|
|||||||
sSQL.AppendLine(" and " + CMISproDataBase.GetWhereEqual("YZZ1.XLXSJGBYZZC_YZID", sYZIDlist));
|
sSQL.AppendLine(" and " + CMISproDataBase.GetWhereEqual("YZZ1.XLXSJGBYZZC_YZID", sYZIDlist));
|
||||||
}
|
}
|
||||||
sSQL.AppendLine(" ) tmp");
|
sSQL.AppendLine(" ) tmp");
|
||||||
sSQL.AppendLine(" group by XLXSJGBYZZC_CPTX ");
|
sSQL.AppendLine(" group by XLXSJGBYZZC_CPTX,XLXSJGBYZZC_ZXJM ");
|
||||||
if (XSWHR())
|
if (XSWHR())
|
||||||
{
|
{
|
||||||
sSQL.AppendLine(" , WHR, WHSJ ");
|
sSQL.AppendLine(" , WHR, WHSJ ");
|
||||||
}
|
}
|
||||||
sSQL.AppendLine(" ) a ");
|
sSQL.AppendLine(" ) a ");
|
||||||
sSQL.AppendLine(" where 1=1 ");
|
sSQL.AppendLine(" where 1=1 ");
|
||||||
sSQL.AppendLine(" order by XLXSJGBYZZC_CPTX ");
|
sSQL.AppendLine(" order by XLXSJGBYZZC_CPTX,XLXSJGBYZZC_ZXJM ");
|
||||||
entity.Param.Add("pJGBID", CurQueryEntity.FieldByName("JGBID").Value.Trim());
|
entity.Param.Add("pJGBID", CurQueryEntity.FieldByName("JGBID").Value.Trim());
|
||||||
return sSQL.ToString();
|
return sSQL.ToString();
|
||||||
}
|
}
|
||||||
@@ -324,6 +326,7 @@ namespace GThinking.N_XLXSBJ
|
|||||||
LinkPageParam.UrlPath = "TZYZJJCInfo.aspx";
|
LinkPageParam.UrlPath = "TZYZJJCInfo.aspx";
|
||||||
LinkPageParam.AddString("XLXSJGBYZZC_JGBID", ContentGrid.DataKeys[ContentGrid.SelectedIndex]["XLXSJGBYZZC_JGBID"].ToString().Trim());
|
LinkPageParam.AddString("XLXSJGBYZZC_JGBID", ContentGrid.DataKeys[ContentGrid.SelectedIndex]["XLXSJGBYZZC_JGBID"].ToString().Trim());
|
||||||
LinkPageParam.AddString("XLXSJGBYZZC_CPTX", ContentGrid.DataKeys[ContentGrid.SelectedIndex]["XLXSJGBYZZC_CPTX"].ToString().Trim());
|
LinkPageParam.AddString("XLXSJGBYZZC_CPTX", ContentGrid.DataKeys[ContentGrid.SelectedIndex]["XLXSJGBYZZC_CPTX"].ToString().Trim());
|
||||||
|
LinkPageParam.AddString("XLXSJGBYZZC_ZXJM", ContentGrid.DataKeys[ContentGrid.SelectedIndex]["XLXSJGBYZZC_ZXJM"].ToString().Trim());
|
||||||
LinkPageParam.AddString("XLXSJGBYZZC_YZID", ContentGrid.DataKeys[ContentGrid.SelectedIndex]["minYZID"].ToString().Trim());
|
LinkPageParam.AddString("XLXSJGBYZZC_YZID", ContentGrid.DataKeys[ContentGrid.SelectedIndex]["minYZID"].ToString().Trim());
|
||||||
LinkPageParam.AddString("TJYZList", txtTJYZList.Value.Trim());
|
LinkPageParam.AddString("TJYZList", txtTJYZList.Value.Trim());
|
||||||
LinkPageParam.CallAction = tpCallAction;
|
LinkPageParam.CallAction = tpCallAction;
|
||||||
|
|||||||
@@ -0,0 +1,339 @@
|
|||||||
|
<?xml version="1.0" encoding="gb2312"?>
|
||||||
|
<TVGDiagramHolder type="object">
|
||||||
|
<Left type="shortint">5</Left>
|
||||||
|
<Top type="shortint">5</Top>
|
||||||
|
<Width type="smallint">710</Width>
|
||||||
|
<Height type="smallint">440</Height>
|
||||||
|
<TVGDiagram type="object" name="Diagram1">
|
||||||
|
<Left type="shortint">0</Left>
|
||||||
|
<Top type="shortint">0</Top>
|
||||||
|
<Width type="smallint">710</Width>
|
||||||
|
<Height type="smallint">440</Height>
|
||||||
|
<Angle type="shortint">0</Angle>
|
||||||
|
<Caption type="string">Diagram1</Caption>
|
||||||
|
<Font.Charset type="identifier">DEFAULT_CHARSET</Font.Charset>
|
||||||
|
<Font.Color type="identifier">clWindowText</Font.Color>
|
||||||
|
<Font.Height type="shortint">-11</Font.Height>
|
||||||
|
<Font.Name type="string">MS Sans Serif</Font.Name>
|
||||||
|
<Font.Style type="set">[]</Font.Style>
|
||||||
|
<ShowCaption type="boolean">False</ShowCaption>
|
||||||
|
</TVGDiagram>
|
||||||
|
<TVGBEGINWFRectangle name="XSBJ_TBYS0000" type="object">
|
||||||
|
<Left type="smallint">100</Left>
|
||||||
|
<Top type="smallint">100</Top>
|
||||||
|
<Width type="shortint">55</Width>
|
||||||
|
<Height type="shortint">35</Height>
|
||||||
|
<Angle type="shortint">0</Angle>
|
||||||
|
<Caption type="widestring">开始</Caption>
|
||||||
|
<Font.Charset type="identifier">DEFAULT_CHARSET</Font.Charset>
|
||||||
|
<Font.Color type="identifier">clWindowText</Font.Color>
|
||||||
|
<Font.Height type="shortint">-11</Font.Height>
|
||||||
|
<Font.Name type="string">MS Sans Serif</Font.Name>
|
||||||
|
<Font.Style type="set">[]</Font.Style>
|
||||||
|
<Background.Color type="identifier">clGreen</Background.Color>
|
||||||
|
<ShowCaption type="boolean">True</ShowCaption>
|
||||||
|
<WFID.Strings type="list">
|
||||||
|
<WFID.Strings.item type="string">事务定义=</WFID.Strings.item>
|
||||||
|
<WFID.Strings.item type="string">WFPWFID=XSBJ_TBYS</WFID.Strings.item>
|
||||||
|
<WFID.Strings.item type="string">WFPWPID=0000</WFID.Strings.item>
|
||||||
|
<WFID.Strings.item type="string">WFPNAME=开始</WFID.Strings.item>
|
||||||
|
<WFID.Strings.item type="string">WFPTYPE=开始</WFID.Strings.item>
|
||||||
|
<WFID.Strings.item type="string">WFPDESC=</WFID.Strings.item>
|
||||||
|
<WFID.Strings.item type="string">WFPNOTIFY=</WFID.Strings.item>
|
||||||
|
<WFID.Strings.item type="string">WFPINTERVAL=0</WFID.Strings.item>
|
||||||
|
<WFID.Strings.item type="string">WFPDTFIELD=24</WFID.Strings.item>
|
||||||
|
<WFID.Strings.item type="string">WFPDELAY=</WFID.Strings.item>
|
||||||
|
<WFID.Strings.item type="string">WFPSIGN=</WFID.Strings.item>
|
||||||
|
<WFID.Strings.item type="string">WFPMODIFY=</WFID.Strings.item>
|
||||||
|
<WFID.Strings.item type="string">WFPUSERSLCT=</WFID.Strings.item>
|
||||||
|
<WFID.Strings.item type="string">WFPMDID=0</WFID.Strings.item>
|
||||||
|
<WFID.Strings.item type="string">WFPNMDID=0</WFID.Strings.item>
|
||||||
|
<WFID.Strings.item type="string">WFPAMDID=0</WFID.Strings.item>
|
||||||
|
<WFID.Strings.item type="string">WFPIMDID=0</WFID.Strings.item>
|
||||||
|
<WFID.Strings.item type="string">WFPWMDID=0</WFID.Strings.item>
|
||||||
|
<WFID.Strings.item type="string">WFPCMDID=0</WFID.Strings.item>
|
||||||
|
<WFID.Strings.item type="string">WFPUINAME=</WFID.Strings.item>
|
||||||
|
<WFID.Strings.item type="string">WFPWEIGHT=0</WFID.Strings.item>
|
||||||
|
<WFID.Strings.item type="string">WFPSCORE=0</WFID.Strings.item>
|
||||||
|
<WFID.Strings.item type="string">WFPALLUSER=1</WFID.Strings.item>
|
||||||
|
<WFID.Strings.item type="string">WFPSETS=100000110000000000000100000000</WFID.Strings.item>
|
||||||
|
<WFID.Strings.item type="string">WFPCOLOR=0</WFID.Strings.item>
|
||||||
|
<WFID.Strings.item type="string">WFP_TYBZ=N</WFID.Strings.item>
|
||||||
|
<WFID.Strings.item type="string">WFP_WHRID=</WFID.Strings.item>
|
||||||
|
<WFID.Strings.item type="string">WFP_WHR=金思维</WFID.Strings.item>
|
||||||
|
<WFID.Strings.item type="string">WFP_WHSJ=2026-07-29 14:07:09</WFID.Strings.item>
|
||||||
|
<WFID.Strings.item type="string">WFPOPTIONS=</WFID.Strings.item>
|
||||||
|
<WFID.Strings.item type="string">WFPPIC=</WFID.Strings.item>
|
||||||
|
<WFID.Strings.item type="string">执行人员=</WFID.Strings.item>
|
||||||
|
<WFID.Strings.item type="string">域同步=</WFID.Strings.item>
|
||||||
|
<WFID.Strings.item type="string">域权限=</WFID.Strings.item>
|
||||||
|
<WFID.Strings.item type="string">邮件设置=</WFID.Strings.item>
|
||||||
|
</WFID.Strings>
|
||||||
|
</TVGBEGINWFRectangle>
|
||||||
|
<TVGCOMMWFRectangle name="XSBJ_TBYS0010" type="object">
|
||||||
|
<Left type="smallint">253</Left>
|
||||||
|
<Top type="smallint">102</Top>
|
||||||
|
<Width type="shortint">55</Width>
|
||||||
|
<Height type="shortint">35</Height>
|
||||||
|
<Angle type="shortint">0</Angle>
|
||||||
|
<Caption type="widestring">登记</Caption>
|
||||||
|
<Font.Charset type="identifier">DEFAULT_CHARSET</Font.Charset>
|
||||||
|
<Font.Color type="identifier">clWindowText</Font.Color>
|
||||||
|
<Font.Height type="shortint">-11</Font.Height>
|
||||||
|
<Font.Name type="string">MS Sans Serif</Font.Name>
|
||||||
|
<Font.Style type="set">[]</Font.Style>
|
||||||
|
<Background.Color type="identifier">clYellow</Background.Color>
|
||||||
|
<ShowCaption type="boolean">True</ShowCaption>
|
||||||
|
<WFID.Strings type="list">
|
||||||
|
<WFID.Strings.item type="string">事务定义=</WFID.Strings.item>
|
||||||
|
<WFID.Strings.item type="string">WFPWFID=XSBJ_TBYS</WFID.Strings.item>
|
||||||
|
<WFID.Strings.item type="string">WFPWPID=0010</WFID.Strings.item>
|
||||||
|
<WFID.Strings.item type="string">WFPNAME=登记</WFID.Strings.item>
|
||||||
|
<WFID.Strings.item type="string">WFPTYPE=一般</WFID.Strings.item>
|
||||||
|
<WFID.Strings.item type="string">WFPDESC=</WFID.Strings.item>
|
||||||
|
<WFID.Strings.item type="string">WFPNOTIFY=</WFID.Strings.item>
|
||||||
|
<WFID.Strings.item type="string">WFPINTERVAL=0</WFID.Strings.item>
|
||||||
|
<WFID.Strings.item type="string">WFPDTFIELD=24</WFID.Strings.item>
|
||||||
|
<WFID.Strings.item type="string">WFPDELAY=</WFID.Strings.item>
|
||||||
|
<WFID.Strings.item type="string">WFPSIGN=</WFID.Strings.item>
|
||||||
|
<WFID.Strings.item type="string">WFPMODIFY=</WFID.Strings.item>
|
||||||
|
<WFID.Strings.item type="string">WFPUSERSLCT=</WFID.Strings.item>
|
||||||
|
<WFID.Strings.item type="string">WFPMDID=0</WFID.Strings.item>
|
||||||
|
<WFID.Strings.item type="string">WFPNMDID=100860168</WFID.Strings.item>
|
||||||
|
<WFID.Strings.item type="string">WFPAMDID=0</WFID.Strings.item>
|
||||||
|
<WFID.Strings.item type="string">WFPIMDID=0</WFID.Strings.item>
|
||||||
|
<WFID.Strings.item type="string">WFPWMDID=0</WFID.Strings.item>
|
||||||
|
<WFID.Strings.item type="string">WFPCMDID=0</WFID.Strings.item>
|
||||||
|
<WFID.Strings.item type="string">WFPUINAME=</WFID.Strings.item>
|
||||||
|
<WFID.Strings.item type="string">WFPWEIGHT=0</WFID.Strings.item>
|
||||||
|
<WFID.Strings.item type="string">WFPSCORE=</WFID.Strings.item>
|
||||||
|
<WFID.Strings.item type="string">WFPALLUSER=1</WFID.Strings.item>
|
||||||
|
<WFID.Strings.item type="string">WFPSETS=000000110001110000000100000000</WFID.Strings.item>
|
||||||
|
<WFID.Strings.item type="string">WFPCOLOR=0</WFID.Strings.item>
|
||||||
|
<WFID.Strings.item type="string">WFP_TYBZ=N</WFID.Strings.item>
|
||||||
|
<WFID.Strings.item type="string">WFP_WHRID=</WFID.Strings.item>
|
||||||
|
<WFID.Strings.item type="string">WFP_WHR=金思维</WFID.Strings.item>
|
||||||
|
<WFID.Strings.item type="string">WFP_WHSJ=2026-7-29 14:21:10</WFID.Strings.item>
|
||||||
|
<WFID.Strings.item type="string">WFPOPTIONS=</WFID.Strings.item>
|
||||||
|
<WFID.Strings.item type="string">WFPPIC=</WFID.Strings.item>
|
||||||
|
<WFID.Strings.item type="string">执行人员=</WFID.Strings.item>
|
||||||
|
<WFID.Strings.item type="string">域同步=</WFID.Strings.item>
|
||||||
|
<WFID.Strings.item type="string">域权限=</WFID.Strings.item>
|
||||||
|
<WFID.Strings.item type="string">邮件设置=</WFID.Strings.item>
|
||||||
|
</WFID.Strings>
|
||||||
|
</TVGCOMMWFRectangle>
|
||||||
|
<TVGCOMMWFRectangle name="XSBJ_TBYS0020" type="object">
|
||||||
|
<Left type="smallint">400</Left>
|
||||||
|
<Top type="smallint">101</Top>
|
||||||
|
<Width type="shortint">55</Width>
|
||||||
|
<Height type="shortint">35</Height>
|
||||||
|
<Angle type="shortint">0</Angle>
|
||||||
|
<Caption type="widestring">审核</Caption>
|
||||||
|
<Font.Charset type="identifier">DEFAULT_CHARSET</Font.Charset>
|
||||||
|
<Font.Color type="identifier">clWindowText</Font.Color>
|
||||||
|
<Font.Height type="shortint">-11</Font.Height>
|
||||||
|
<Font.Name type="string">MS Sans Serif</Font.Name>
|
||||||
|
<Font.Style type="set">[]</Font.Style>
|
||||||
|
<Background.Color type="identifier">clYellow</Background.Color>
|
||||||
|
<ShowCaption type="boolean">True</ShowCaption>
|
||||||
|
<WFID.Strings type="list">
|
||||||
|
<WFID.Strings.item type="string">事务定义=</WFID.Strings.item>
|
||||||
|
<WFID.Strings.item type="string">WFPWFID=XSBJ_TBYS</WFID.Strings.item>
|
||||||
|
<WFID.Strings.item type="string">WFPWPID=0020</WFID.Strings.item>
|
||||||
|
<WFID.Strings.item type="string">WFPNAME=审核</WFID.Strings.item>
|
||||||
|
<WFID.Strings.item type="string">WFPTYPE=一般</WFID.Strings.item>
|
||||||
|
<WFID.Strings.item type="string">WFPDESC=</WFID.Strings.item>
|
||||||
|
<WFID.Strings.item type="string">WFPNOTIFY=</WFID.Strings.item>
|
||||||
|
<WFID.Strings.item type="string">WFPINTERVAL=0</WFID.Strings.item>
|
||||||
|
<WFID.Strings.item type="string">WFPDTFIELD=24</WFID.Strings.item>
|
||||||
|
<WFID.Strings.item type="string">WFPDELAY=</WFID.Strings.item>
|
||||||
|
<WFID.Strings.item type="string">WFPSIGN=</WFID.Strings.item>
|
||||||
|
<WFID.Strings.item type="string">WFPMODIFY=</WFID.Strings.item>
|
||||||
|
<WFID.Strings.item type="string">WFPUSERSLCT=</WFID.Strings.item>
|
||||||
|
<WFID.Strings.item type="string">WFPMDID=0</WFID.Strings.item>
|
||||||
|
<WFID.Strings.item type="string">WFPNMDID=100860168</WFID.Strings.item>
|
||||||
|
<WFID.Strings.item type="string">WFPAMDID=0</WFID.Strings.item>
|
||||||
|
<WFID.Strings.item type="string">WFPIMDID=0</WFID.Strings.item>
|
||||||
|
<WFID.Strings.item type="string">WFPWMDID=0</WFID.Strings.item>
|
||||||
|
<WFID.Strings.item type="string">WFPCMDID=0</WFID.Strings.item>
|
||||||
|
<WFID.Strings.item type="string">WFPUINAME=</WFID.Strings.item>
|
||||||
|
<WFID.Strings.item type="string">WFPWEIGHT=0</WFID.Strings.item>
|
||||||
|
<WFID.Strings.item type="string">WFPSCORE=</WFID.Strings.item>
|
||||||
|
<WFID.Strings.item type="string">WFPALLUSER=1</WFID.Strings.item>
|
||||||
|
<WFID.Strings.item type="string">WFPSETS=000000110001110000000100000000</WFID.Strings.item>
|
||||||
|
<WFID.Strings.item type="string">WFPCOLOR=0</WFID.Strings.item>
|
||||||
|
<WFID.Strings.item type="string">WFP_TYBZ=N</WFID.Strings.item>
|
||||||
|
<WFID.Strings.item type="string">WFP_WHRID=</WFID.Strings.item>
|
||||||
|
<WFID.Strings.item type="string">WFP_WHR=金思维</WFID.Strings.item>
|
||||||
|
<WFID.Strings.item type="string">WFP_WHSJ=2026-7-29 14:21:47</WFID.Strings.item>
|
||||||
|
<WFID.Strings.item type="string">WFPOPTIONS=</WFID.Strings.item>
|
||||||
|
<WFID.Strings.item type="string">WFPPIC=</WFID.Strings.item>
|
||||||
|
<WFID.Strings.item type="string">执行人员=</WFID.Strings.item>
|
||||||
|
<WFID.Strings.item type="string">域同步=</WFID.Strings.item>
|
||||||
|
<WFID.Strings.item type="string">域权限=</WFID.Strings.item>
|
||||||
|
<WFID.Strings.item type="string">邮件设置=</WFID.Strings.item>
|
||||||
|
</WFID.Strings>
|
||||||
|
</TVGCOMMWFRectangle>
|
||||||
|
<TVGENDWFRectangle name="XSBJ_TBYSZZZZ" type="object">
|
||||||
|
<Left type="smallint">535</Left>
|
||||||
|
<Top type="smallint">98</Top>
|
||||||
|
<Width type="shortint">55</Width>
|
||||||
|
<Height type="shortint">35</Height>
|
||||||
|
<Angle type="shortint">0</Angle>
|
||||||
|
<Caption type="widestring">结束</Caption>
|
||||||
|
<Font.Charset type="identifier">DEFAULT_CHARSET</Font.Charset>
|
||||||
|
<Font.Color type="identifier">clWindowText</Font.Color>
|
||||||
|
<Font.Height type="shortint">-11</Font.Height>
|
||||||
|
<Font.Name type="string">MS Sans Serif</Font.Name>
|
||||||
|
<Font.Style type="set">[]</Font.Style>
|
||||||
|
<Background.Color type="identifier">clRed</Background.Color>
|
||||||
|
<ShowCaption type="boolean">True</ShowCaption>
|
||||||
|
<WFID.Strings type="list">
|
||||||
|
<WFID.Strings.item type="string">事务定义=</WFID.Strings.item>
|
||||||
|
<WFID.Strings.item type="string">WFPWFID=XSBJ_TBYS</WFID.Strings.item>
|
||||||
|
<WFID.Strings.item type="string">WFPWPID=ZZZZ</WFID.Strings.item>
|
||||||
|
<WFID.Strings.item type="string">WFPNAME=结束</WFID.Strings.item>
|
||||||
|
<WFID.Strings.item type="string">WFPTYPE=结束</WFID.Strings.item>
|
||||||
|
<WFID.Strings.item type="string">WFPDESC=</WFID.Strings.item>
|
||||||
|
<WFID.Strings.item type="string">WFPNOTIFY=</WFID.Strings.item>
|
||||||
|
<WFID.Strings.item type="string">WFPINTERVAL=0</WFID.Strings.item>
|
||||||
|
<WFID.Strings.item type="string">WFPDTFIELD=24</WFID.Strings.item>
|
||||||
|
<WFID.Strings.item type="string">WFPDELAY=</WFID.Strings.item>
|
||||||
|
<WFID.Strings.item type="string">WFPSIGN=</WFID.Strings.item>
|
||||||
|
<WFID.Strings.item type="string">WFPMODIFY=</WFID.Strings.item>
|
||||||
|
<WFID.Strings.item type="string">WFPUSERSLCT=</WFID.Strings.item>
|
||||||
|
<WFID.Strings.item type="string">WFPMDID=0</WFID.Strings.item>
|
||||||
|
<WFID.Strings.item type="string">WFPNMDID=100860168</WFID.Strings.item>
|
||||||
|
<WFID.Strings.item type="string">WFPAMDID=0</WFID.Strings.item>
|
||||||
|
<WFID.Strings.item type="string">WFPIMDID=0</WFID.Strings.item>
|
||||||
|
<WFID.Strings.item type="string">WFPWMDID=0</WFID.Strings.item>
|
||||||
|
<WFID.Strings.item type="string">WFPCMDID=0</WFID.Strings.item>
|
||||||
|
<WFID.Strings.item type="string">WFPUINAME=</WFID.Strings.item>
|
||||||
|
<WFID.Strings.item type="string">WFPWEIGHT=0</WFID.Strings.item>
|
||||||
|
<WFID.Strings.item type="string">WFPSCORE=</WFID.Strings.item>
|
||||||
|
<WFID.Strings.item type="string">WFPALLUSER=1</WFID.Strings.item>
|
||||||
|
<WFID.Strings.item type="string">WFPSETS=100000110000000000000100000000</WFID.Strings.item>
|
||||||
|
<WFID.Strings.item type="string">WFPCOLOR=0</WFID.Strings.item>
|
||||||
|
<WFID.Strings.item type="string">WFP_TYBZ=N</WFID.Strings.item>
|
||||||
|
<WFID.Strings.item type="string">WFP_WHRID=</WFID.Strings.item>
|
||||||
|
<WFID.Strings.item type="string">WFP_WHR=金思维</WFID.Strings.item>
|
||||||
|
<WFID.Strings.item type="string">WFP_WHSJ=2026-7-29 14:49:35</WFID.Strings.item>
|
||||||
|
<WFID.Strings.item type="string">WFPOPTIONS=</WFID.Strings.item>
|
||||||
|
<WFID.Strings.item type="string">WFPPIC=</WFID.Strings.item>
|
||||||
|
<WFID.Strings.item type="string">执行人员=</WFID.Strings.item>
|
||||||
|
<WFID.Strings.item type="string">域同步=</WFID.Strings.item>
|
||||||
|
<WFID.Strings.item type="string">域权限=</WFID.Strings.item>
|
||||||
|
<WFID.Strings.item type="string">邮件设置=</WFID.Strings.item>
|
||||||
|
</WFID.Strings>
|
||||||
|
</TVGENDWFRectangle>
|
||||||
|
<TVGWFLine name="XSBJ_TBYS0000_0010" type="object">
|
||||||
|
<Left type="smallint">0</Left>
|
||||||
|
<Top type="smallint">0</Top>
|
||||||
|
<Width type="smallint">0</Width>
|
||||||
|
<Height type="smallint">0</Height>
|
||||||
|
<Angle type="smallint">0</Angle>
|
||||||
|
<Font.Charset type="identifier">DEFAULT_CHARSET</Font.Charset>
|
||||||
|
<Font.Color type="identifier">clWindowText</Font.Color>
|
||||||
|
<Font.Height type="shortint">-11</Font.Height>
|
||||||
|
<Font.Name type="string">MS Sans Serif</Font.Name>
|
||||||
|
<Font.Style type="set">[]</Font.Style>
|
||||||
|
<ShowCaption type="boolean">False</ShowCaption>
|
||||||
|
<LineStyle type="shortint">1</LineStyle>
|
||||||
|
<Caption type="string">0000_0010</Caption>
|
||||||
|
<SourceName type="string">XSBJ_TBYS0000</SourceName>
|
||||||
|
<TargetName type="string">XSBJ_TBYS0010</TargetName>
|
||||||
|
<BreakPoints type="string">2:127,117;253,117;</BreakPoints>
|
||||||
|
<WFID.Strings type="list">
|
||||||
|
<WFID.Strings.item type="string">WFRWFID=XSBJ_TBYS</WFID.Strings.item>
|
||||||
|
<WFID.Strings.item type="string">WFRWPID=0000</WFID.Strings.item>
|
||||||
|
<WFID.Strings.item type="string">WFRNWFID=XSBJ_TBYS</WFID.Strings.item>
|
||||||
|
<WFID.Strings.item type="string">WFRNWPID=0010</WFID.Strings.item>
|
||||||
|
<WFID.Strings.item type="string">WFRTYPE=S</WFID.Strings.item>
|
||||||
|
<WFID.Strings.item type="string">WFRCONDITION=</WFID.Strings.item>
|
||||||
|
<WFID.Strings.item type="string">WFRNORDER=0</WFID.Strings.item>
|
||||||
|
<WFID.Strings.item type="string">WFR_WHR=金思维</WFID.Strings.item>
|
||||||
|
<WFID.Strings.item type="string">WFR_WHRID=</WFID.Strings.item>
|
||||||
|
<WFID.Strings.item type="string">WFR_WHSJ=2026-07-29 14:07:09</WFID.Strings.item>
|
||||||
|
</WFID.Strings>
|
||||||
|
</TVGWFLine>
|
||||||
|
<TVGWFLine name="XSBJ_TBYS0010_0020" type="object">
|
||||||
|
<Left type="smallint">0</Left>
|
||||||
|
<Top type="smallint">0</Top>
|
||||||
|
<Width type="smallint">0</Width>
|
||||||
|
<Height type="smallint">0</Height>
|
||||||
|
<Angle type="smallint">0</Angle>
|
||||||
|
<Font.Charset type="identifier">DEFAULT_CHARSET</Font.Charset>
|
||||||
|
<Font.Color type="identifier">clWindowText</Font.Color>
|
||||||
|
<Font.Height type="shortint">-11</Font.Height>
|
||||||
|
<Font.Name type="string">MS Sans Serif</Font.Name>
|
||||||
|
<Font.Style type="set">[]</Font.Style>
|
||||||
|
<ShowCaption type="boolean">False</ShowCaption>
|
||||||
|
<LineStyle type="shortint">1</LineStyle>
|
||||||
|
<Caption type="string">0010_0020</Caption>
|
||||||
|
<SourceName type="string">XSBJ_TBYS0010</SourceName>
|
||||||
|
<TargetName type="string">XSBJ_TBYS0020</TargetName>
|
||||||
|
<BreakPoints type="string">2:280,119;400,119;</BreakPoints>
|
||||||
|
<WFID.Strings type="list">
|
||||||
|
<WFID.Strings.item type="string">WFRWFID=XSBJ_TBYS</WFID.Strings.item>
|
||||||
|
<WFID.Strings.item type="string">WFRWPID=0010</WFID.Strings.item>
|
||||||
|
<WFID.Strings.item type="string">WFRNWFID=XSBJ_TBYS</WFID.Strings.item>
|
||||||
|
<WFID.Strings.item type="string">WFRNWPID=0020</WFID.Strings.item>
|
||||||
|
<WFID.Strings.item type="string">WFRTYPE=S</WFID.Strings.item>
|
||||||
|
<WFID.Strings.item type="string">WFRCONDITION=</WFID.Strings.item>
|
||||||
|
<WFID.Strings.item type="string">WFRNORDER=0</WFID.Strings.item>
|
||||||
|
<WFID.Strings.item type="string">WFR_WHR=金思维</WFID.Strings.item>
|
||||||
|
<WFID.Strings.item type="string">WFR_WHRID=</WFID.Strings.item>
|
||||||
|
<WFID.Strings.item type="string">WFR_WHSJ=2026-07-29 14:07:09</WFID.Strings.item>
|
||||||
|
</WFID.Strings>
|
||||||
|
</TVGWFLine>
|
||||||
|
<TVGWFLine name="XSBJ_TBYS0020_ZZZZ" type="object">
|
||||||
|
<Left type="smallint">0</Left>
|
||||||
|
<Top type="smallint">0</Top>
|
||||||
|
<Width type="smallint">0</Width>
|
||||||
|
<Height type="smallint">0</Height>
|
||||||
|
<Angle type="smallint">0</Angle>
|
||||||
|
<Font.Charset type="identifier">DEFAULT_CHARSET</Font.Charset>
|
||||||
|
<Font.Color type="identifier">clWindowText</Font.Color>
|
||||||
|
<Font.Height type="shortint">-11</Font.Height>
|
||||||
|
<Font.Name type="string">MS Sans Serif</Font.Name>
|
||||||
|
<Font.Style type="set">[]</Font.Style>
|
||||||
|
<ShowCaption type="boolean">False</ShowCaption>
|
||||||
|
<LineStyle type="shortint">1</LineStyle>
|
||||||
|
<Caption type="string">0020_ZZZZ</Caption>
|
||||||
|
<SourceName type="string">XSBJ_TBYS0020</SourceName>
|
||||||
|
<TargetName type="string">XSBJ_TBYSZZZZ</TargetName>
|
||||||
|
<BreakPoints type="string">2:427,118;535,118;</BreakPoints>
|
||||||
|
<WFID.Strings type="list">
|
||||||
|
<WFID.Strings.item type="string">WFRWFID=XSBJ_TBYS</WFID.Strings.item>
|
||||||
|
<WFID.Strings.item type="string">WFRWPID=0020</WFID.Strings.item>
|
||||||
|
<WFID.Strings.item type="string">WFRNWFID=XSBJ_TBYS</WFID.Strings.item>
|
||||||
|
<WFID.Strings.item type="string">WFRNWPID=ZZZZ</WFID.Strings.item>
|
||||||
|
<WFID.Strings.item type="string">WFRTYPE=S</WFID.Strings.item>
|
||||||
|
<WFID.Strings.item type="string">WFRCONDITION=</WFID.Strings.item>
|
||||||
|
<WFID.Strings.item type="string">WFRNORDER=0</WFID.Strings.item>
|
||||||
|
<WFID.Strings.item type="string">WFR_WHR=金思维</WFID.Strings.item>
|
||||||
|
<WFID.Strings.item type="string">WFR_WHRID=</WFID.Strings.item>
|
||||||
|
<WFID.Strings.item type="string">WFR_WHSJ=2026-07-29 14:07:09</WFID.Strings.item>
|
||||||
|
</WFID.Strings>
|
||||||
|
</TVGWFLine>
|
||||||
|
<WFDEF type="WFD" WFVID="XSBJ_TBYS" NVERSION="1">
|
||||||
|
<WFID>XSBJ_TBYS</WFID>
|
||||||
|
<WFNAME>线缆销售报价投标预审</WFNAME>
|
||||||
|
<WFDESC>用于投标预审流程审批。</WFDESC>
|
||||||
|
<WFTITLE>用于投标预审流程审批。</WFTITLE>
|
||||||
|
<WFVID>XSBJ_TBYS</WFVID>
|
||||||
|
<WFOPTIONS>
|
||||||
|
</WFOPTIONS>
|
||||||
|
<WFCONDITION>
|
||||||
|
</WFCONDITION>
|
||||||
|
<WFMANAGER>
|
||||||
|
</WFMANAGER>
|
||||||
|
<WFBDATE>2026-07-29 00:00:00</WFBDATE>
|
||||||
|
<WFEDATE>
|
||||||
|
</WFEDATE>
|
||||||
|
<WF_TYBZ>N</WF_TYBZ>
|
||||||
|
<WF_WHRID> </WF_WHRID>
|
||||||
|
<WF_WHR>金思维</WF_WHR>
|
||||||
|
<WF_WHSJ>2026-07-29 14:50:40</WF_WHSJ>
|
||||||
|
</WFDEF>
|
||||||
|
</TVGDiagramHolder>
|
||||||
@@ -0,0 +1,25 @@
|
|||||||
|
<?xml version="1.0" encoding="gb2312"?>
|
||||||
|
<WFSERVICE type="WFS" NVERSION="1">
|
||||||
|
<WFVID>XSBJ_TBYS</WFVID>
|
||||||
|
<WFVNAME>线缆销售报价投标预审</WFVNAME>
|
||||||
|
<WFVWFNUM>
|
||||||
|
</WFVWFNUM>
|
||||||
|
<WFVTABLE>TBYSB</WFVTABLE>
|
||||||
|
<WFVWFID>TBYSB_WFID</WFVWFID>
|
||||||
|
<WFVWFINST>TBYSB_WFINST</WFVWFINST>
|
||||||
|
<WFVSTATE>TBYSB_WPID</WFVSTATE>
|
||||||
|
<WFVWFVER>3</WFVWFVER>
|
||||||
|
<WFVCLASS>
|
||||||
|
</WFVCLASS>
|
||||||
|
<WFV_TY>N</WFV_TY>
|
||||||
|
<WFV_WHRID> </WFV_WHRID>
|
||||||
|
<WFV_WHR>金思维</WFV_WHR>
|
||||||
|
<WFV_WHSJ>2026-07-29 13:42:52</WFV_WHSJ>
|
||||||
|
<WFVYXFJ>Y</WFVYXFJ>
|
||||||
|
<WFVDDSW>Y</WFVDDSW>
|
||||||
|
<WFDEF>
|
||||||
|
<WFID>XSBJ_TBYS</WFID>
|
||||||
|
<WFNAME>线缆销售报价投标预审</WFNAME>
|
||||||
|
<WFVID>XSBJ_TBYS</WFVID>
|
||||||
|
</WFDEF>
|
||||||
|
</WFSERVICE>
|
||||||
+4
-4
@@ -5637,13 +5637,13 @@ namespace GThinking.N_XLXSBJ
|
|||||||
SQL.Add(" left join XLXHB on XLXHB_XLXHID=V_XSBJJSJGB_XLXHID ");
|
SQL.Add(" left join XLXHB on XLXHB_XLXHID=V_XSBJJSJGB_XLXHID ");
|
||||||
SQL.Add(" left join XLGGB on XLGGB_XLGGID = REPLACE(V_XSBJJSJGB_XLGGID , '*','¡Á') and XLGGB_XLGGJDGZ = isnull(XLXHB_XLGGJDGZ,'0') ");
|
SQL.Add(" left join XLGGB on XLGGB_XLGGID = REPLACE(V_XSBJJSJGB_XLGGID , '*','¡Á') and XLGGB_XLGGJDGZ = isnull(XLXHB_XLGGJDGZ,'0') ");
|
||||||
SQL.Add(" left join XLDTJMZHB on XLDTJMZHB_DTJMZHID=XLGGB_DTJMZHID ");
|
SQL.Add(" left join XLDTJMZHB on XLDTJMZHB_DTJMZHID=XLGGB_DTJMZHID ");
|
||||||
SQL.Add(" LEFT JOIN XLXSBJCPYS ON XLXSBJCPYS_XLJBXHID=V_XSBJJSJGB_XLXHID and XLXSBJCPYS_DYDJID=V_XSBJJSJGB_DYDJID and XLDTJMZHB_DTJM1=CONVERT(float,XLXSBJCPYS_XLYSID) ");
|
SQL.Add(" LEFT JOIN XLXSBJCPYS ON XLXSBJCPYS_XLJBXHID=V_XSBJJSJGB_XLXHID and XLXSBJCPYS_DYDJID=V_XSBJJSJGB_DYDJID ");
|
||||||
SQL.Add(" ,XLXSTZYZ,XLXSJGBYZZC ");
|
SQL.Add(" ,XLXSTZYZ,XLXSJGBYZZC ");
|
||||||
SQL.Add(" where V_XSBJJSJGB_ID=:pID ");
|
SQL.Add(" where V_XSBJJSJGB_ID=:pID ");
|
||||||
SQL.Add(" and V_XSBJJSJGB_BJDID=:pBJDID");
|
SQL.Add(" and V_XSBJJSJGB_BJDID=:pBJDID");
|
||||||
SQL.Add(" and V_XSBJJSJGB_WGCPBZ<>'Y' and V_XSBJJSJGB_JGFBZ<>'Y' ");
|
SQL.Add(" and V_XSBJJSJGB_WGCPBZ<>'Y' and V_XSBJJSJGB_JGFBZ<>'Y' ");
|
||||||
SQL.Add(" and XLXSTZYZ_MXBH='JZJ' and XLXSTZYZ_YZID=:pYZID");
|
SQL.Add(" and XLXSTZYZ_MXBH='JZJ' and XLXSTZYZ_YZID=:pYZID");
|
||||||
SQL.Add(" and XLXSTZYZ_TJYS='C' and XLXSJGBYZZC_JGBID=XLXSTZYZ_JGBID and XLXSJGBYZZC_YZID=XLXSTZYZ_YZID ");
|
SQL.Add(" and XLXSTZYZ_TJYS='C' and XLXSJGBYZZC_JGBID=XLXSTZYZ_JGBID and XLXSJGBYZZC_YZID=XLXSTZYZ_YZID and XLDTJMZHB_DTJM1=XLXSJGBYZZC_ZXJM");
|
||||||
SQL.Add(" and XLXSBJCPYS_XXJGID =XLXSJGBYZZC_CPTX ");
|
SQL.Add(" and XLXSBJCPYS_XXJGID =XLXSJGBYZZC_CPTX ");
|
||||||
SQL.Add(" GROUP BY V_XSBJJSJGB_BJDID,V_XSBJJSJGB_BJDXH ");
|
SQL.Add(" GROUP BY V_XSBJJSJGB_BJDID,V_XSBJJSJGB_BJDXH ");
|
||||||
SQL.Add(" ) sor ");
|
SQL.Add(" ) sor ");
|
||||||
@@ -5916,12 +5916,12 @@ namespace GThinking.N_XLXSBJ
|
|||||||
SQL.Add(" and isnull(XLJGCZBLM_CLQDL,' ')<>' '");
|
SQL.Add(" and isnull(XLJGCZBLM_CLQDL,' ')<>' '");
|
||||||
if (sLX == "QTCLSH")
|
if (sLX == "QTCLSH")
|
||||||
{
|
{
|
||||||
SQL.Add(" and XLJGCZBLM_XLCLZLID <> 'DTCL' and XLJGCZBLM_CZBLMMC not like '%Í%' and XLJGCZBLM_CZBLMMC not like '%ÂÁ%' ");
|
SQL.Add(" and isnull(XLJGCZBLM_XLCLZLID,' ') <> 'DTCL' and XLJGCZBLM_CZBLMMC not like '%Í%' and XLJGCZBLM_CZBLMMC not like '%ÂÁ%' ");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (sLX == "DTCLSH")
|
if (sLX == "DTCLSH")
|
||||||
{
|
{
|
||||||
SQL.Add(" and XLJGCZBLM_XLCLZLID = 'DTCL' and (XLJGCZBLM_CZBLMMC like '%Í%' or XLJGCZBLM_CZBLMMC like '%ÂÁ%') ");
|
SQL.Add(" and isnull(XLJGCZBLM_XLCLZLID,' ') = 'DTCL' and (XLJGCZBLM_CZBLMMC like '%Í%' or XLJGCZBLM_CZBLMMC like '%ÂÁ%') ");
|
||||||
}
|
}
|
||||||
SQL.Add(" order by XLJGCZBLM_CLQDL");
|
SQL.Add(" order by XLJGCZBLM_CLQDL");
|
||||||
SQL.ParamByName("pJGCZBID").Value = tmpJGCZBID;
|
SQL.ParamByName("pJGCZBID").Value = tmpJGCZBID;
|
||||||
|
|||||||
+232
-13
@@ -3057,15 +3057,15 @@ namespace GThinking.N_XLXSBJ
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
//启用运费因子,校验项目所在地不为空
|
//启用运费因子,校验项目所在地不为空
|
||||||
if (cbxKHSZDPRO.SelectedValue.Trim().Equals("") || cbxKHSZDCITY.SelectedValue.Trim().Equals(""))
|
// if (cbxKHSZDPRO.SelectedValue.Trim().Equals("") || cbxKHSZDCITY.SelectedValue.Trim().Equals(""))
|
||||||
{
|
// {
|
||||||
if(CMISproDataBase.ExistsRecord("DBERP",string.Format(@"select 1 from XLXSTZYZ where XLXSTZYZ_TJMDID = 100860071 and XLXSTZYZ_MXBH='BJD'
|
// if(CMISproDataBase.ExistsRecord("DBERP",string.Format(@"select 1 from XLXSTZYZ where XLXSTZYZ_TJMDID = 100860071 and XLXSTZYZ_MXBH='BJD'
|
||||||
and exists(select 1 from XLXSBJFLYZ where XLXSBJFLYZ_YZID=XLXSTZYZ_YZID and XLXSBJFLYZ_BJFLID='{0}' )", cbxBJFLID.SelectedValue.Trim())))
|
// and exists(select 1 from XLXSBJFLYZ where XLXSBJFLYZ_YZID=XLXSTZYZ_YZID and XLXSBJFLYZ_BJFLID='{0}' )", cbxBJFLID.SelectedValue.Trim())))
|
||||||
{
|
// {
|
||||||
ShowMessage("项目所在地--不允许为空!");
|
// ShowMessage("项目所在地--不允许为空!");
|
||||||
return false;
|
// return false;
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
|
|
||||||
if (GetOption("BJU062").Equals("Y"))
|
if (GetOption("BJU062").Equals("Y"))
|
||||||
{
|
{
|
||||||
@@ -10257,6 +10257,17 @@ namespace GThinking.N_XLXSBJ
|
|||||||
dicTJYZList.Add("sTJYSListPFCPWJ", yzxxNew.XLXSTZYZ_YZID.Trim());
|
dicTJYZList.Add("sTJYSListPFCPWJ", yzxxNew.XLXSTZYZ_YZID.Trim());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else if (yzxxNew.XLXSTZYZ_TJMDID.Trim().Equals("100860071"))
|
||||||
|
{
|
||||||
|
if (dicTJYZList.ContainsKey("sTJYSListYF"))
|
||||||
|
{
|
||||||
|
dicTJYZList["sTJYSListYF"] = dicTJYZList["sTJYSListYF"] + "," + yzxxNew.XLXSTZYZ_YZID.Trim();
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
dicTJYZList.Add("sTJYSListPFCPWJ", yzxxNew.XLXSTZYZ_YZID.Trim());
|
||||||
|
}
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (dicTJYZList.ContainsKey("sTJYSList_"))
|
if (dicTJYZList.ContainsKey("sTJYSList_"))
|
||||||
@@ -12834,6 +12845,24 @@ namespace GThinking.N_XLXSBJ
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Dictionary<string, double> dicYZZYF = new Dictionary<string, double>();
|
||||||
|
//运费
|
||||||
|
string sYFYZID = XLBJDUtils.GetBJFLSYYFYZID(cbxBJFLID.SelectedValue.Trim());
|
||||||
|
if (!sYFYZID.Equals(""))
|
||||||
|
{
|
||||||
|
sYFYZID = sYFYZID.Split('|')[0];
|
||||||
|
|
||||||
|
dicYZZYF = XLBJDUtils.GetYFYZZ(sYFYZID,txtXZQHID.Value,sXLXHID,txtTJ.Value,txtLJ.Value);
|
||||||
|
foreach (string sYZID in dicYZZYF.Keys)
|
||||||
|
{
|
||||||
|
grdXLBJDMX.EditNewRow(row.RowIndex, "TZYZ_" + sYZID, dicYZZYF[sYZID].ToString());
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
Dictionary<string, double> dicYZZB = new Dictionary<string, double>();
|
Dictionary<string, double> dicYZZB = new Dictionary<string, double>();
|
||||||
if (txtTJYSList.Text.Trim().Contains(",B,"))
|
if (txtTJYSList.Text.Trim().Contains(",B,"))
|
||||||
{
|
{
|
||||||
@@ -13794,6 +13823,24 @@ namespace GThinking.N_XLXSBJ
|
|||||||
{
|
{
|
||||||
cbxKHSZDCITY.SelectedValue = "";
|
cbxKHSZDCITY.SelectedValue = "";
|
||||||
}
|
}
|
||||||
|
if (!cbxKHSZDCOUNTY.SelectedValue.Trim().Equals(""))
|
||||||
|
{
|
||||||
|
txtXZQHID.Value = cbxKHSZDCOUNTY.SelectedValue.Trim();
|
||||||
|
}
|
||||||
|
else if (!cbxKHSZDCITY.SelectedValue.Trim().Equals(""))
|
||||||
|
{
|
||||||
|
txtXZQHID.Value = cbxKHSZDCITY.SelectedValue.Trim();
|
||||||
|
}
|
||||||
|
else if (!cbxKHSZDPRO.SelectedValue.Trim().Equals(""))
|
||||||
|
{
|
||||||
|
txtXZQHID.Value = cbxKHSZDPRO.SelectedValue.Trim();
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
txtXZQHID.Value = "";
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void cbxKHSZDCITY_OnSelectedIndexChanged(object sender, EventArgs e)
|
protected void cbxKHSZDCITY_OnSelectedIndexChanged(object sender, EventArgs e)
|
||||||
@@ -13831,6 +13878,24 @@ namespace GThinking.N_XLXSBJ
|
|||||||
{
|
{
|
||||||
cbxKHSZDCOUNTY.SelectedValue = "";
|
cbxKHSZDCOUNTY.SelectedValue = "";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!cbxKHSZDCOUNTY.SelectedValue.Trim().Equals(""))
|
||||||
|
{
|
||||||
|
txtXZQHID.Value = cbxKHSZDCOUNTY.SelectedValue.Trim();
|
||||||
|
}
|
||||||
|
else if (!cbxKHSZDCITY.SelectedValue.Trim().Equals(""))
|
||||||
|
{
|
||||||
|
txtXZQHID.Value = cbxKHSZDCITY.SelectedValue.Trim();
|
||||||
|
}
|
||||||
|
else if (!cbxKHSZDPRO.SelectedValue.Trim().Equals(""))
|
||||||
|
{
|
||||||
|
txtXZQHID.Value = cbxKHSZDPRO.SelectedValue.Trim();
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
txtXZQHID.Value = "";
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void chkJZBJHS_CheckedChanged(object sender, EventArgs e)
|
protected void chkJZBJHS_CheckedChanged(object sender, EventArgs e)
|
||||||
@@ -17644,6 +17709,44 @@ namespace GThinking.N_XLXSBJ
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Dictionary<string, double> dicYZZYF = new Dictionary<string, double>();
|
||||||
|
//运费
|
||||||
|
string sYFYZID = XLBJDUtils.GetBJFLSYYFYZID(sBJFLID);
|
||||||
|
if (!sYFYZID.Equals(""))
|
||||||
|
{
|
||||||
|
string sXZQH = string.Empty;
|
||||||
|
if (!e.MasterDataSet["cbxKHSZDCITY"].Trim().Equals(""))
|
||||||
|
{
|
||||||
|
sXZQH = e.MasterDataSet["cbxKHSZDCITY"].Trim();
|
||||||
|
}
|
||||||
|
else if (!e.MasterDataSet["cbxKHSZDPRO"].Trim().Equals(""))
|
||||||
|
{
|
||||||
|
sXZQH = e.MasterDataSet["cbxKHSZDPRO"].Trim();
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
sXZQH = "";
|
||||||
|
}
|
||||||
|
Mac.MacLog.TraceFormat("sYFYZID-1");
|
||||||
|
sYFYZID = sYFYZID.Split('|')[0];
|
||||||
|
dicYZZYF = XLBJDUtils.GetYFYZZ(sYFYZID, sXZQH, sXLXHID, CMISproConvert.StrToFloat(e.MasterDataSet["txtTJ"].Trim()), CMISproConvert.StrToFloat(e.MasterDataSet["txtLJ"].Trim()));
|
||||||
|
Mac.MacLog.TraceFormat("sYFYZID-2");
|
||||||
|
foreach (string sYZID in dicYZZYF.Keys)
|
||||||
|
{
|
||||||
|
e.ResultPairs.Add("TZYZ_" + sYZID, dicYZZYF[sYZID].ToString());
|
||||||
|
AddChangedField(dicChangedField, "TZYZ_" + sYZID, dicYZZYF[sYZID].ToString());
|
||||||
|
if (dicValueContained(dicTYZZYZID, sYZID))
|
||||||
|
{
|
||||||
|
if (!dicTYZZYZIDValue.ContainsKey(sYZID))
|
||||||
|
dicTYZZYZIDValue.Add(sYZID, dicYZZYF[sYZID]);
|
||||||
|
else
|
||||||
|
dicTYZZYZIDValue[sYZID] += dicYZZYF[sYZID];
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
Dictionary<string, double> dicYZZB = new Dictionary<string, double>();
|
Dictionary<string, double> dicYZZB = new Dictionary<string, double>();
|
||||||
if (e.MasterDataSet["txtTJYSList"].Contains(",B,"))
|
if (e.MasterDataSet["txtTJYSList"].Contains(",B,"))
|
||||||
{
|
{
|
||||||
@@ -17725,7 +17828,8 @@ namespace GThinking.N_XLXSBJ
|
|||||||
if (!dicYZZ2.ContainsKey(sFieldName.Substring(5)) && !dicYZZ3.ContainsKey(sFieldName.Substring(5)) && !dicYZZ8.ContainsKey(sFieldName.Substring(5))
|
if (!dicYZZ2.ContainsKey(sFieldName.Substring(5)) && !dicYZZ3.ContainsKey(sFieldName.Substring(5)) && !dicYZZ8.ContainsKey(sFieldName.Substring(5))
|
||||||
&& !dicYZZF.ContainsKey(sFieldName.Substring(5)) && !dicYZZ4.ContainsKey(sFieldName.Substring(5)) && !dicYZZ5.ContainsKey(sFieldName.Substring(5))
|
&& !dicYZZF.ContainsKey(sFieldName.Substring(5)) && !dicYZZ4.ContainsKey(sFieldName.Substring(5)) && !dicYZZ5.ContainsKey(sFieldName.Substring(5))
|
||||||
&& !dicYZZ6.ContainsKey(sFieldName.Substring(5)) && !dicYZZ7.ContainsKey(sFieldName.Substring(5)) && !dicYZZD.ContainsKey(sFieldName.Substring(5))
|
&& !dicYZZ6.ContainsKey(sFieldName.Substring(5)) && !dicYZZ7.ContainsKey(sFieldName.Substring(5)) && !dicYZZD.ContainsKey(sFieldName.Substring(5))
|
||||||
&& !dicYZZ9.ContainsKey(sFieldName.Substring(5)) && !dicYZZA.ContainsKey(sFieldName.Substring(5)) && !dicYZZBZPF.ContainsKey(sFieldName.Substring(5)) && !dicYZZCPWJPF.ContainsKey(sFieldName.Substring(5)) && !dicYZZB.ContainsKey(sFieldName.Substring(5))
|
&& !dicYZZ9.ContainsKey(sFieldName.Substring(5)) && !dicYZZA.ContainsKey(sFieldName.Substring(5)) && !dicYZZBZPF.ContainsKey(sFieldName.Substring(5))
|
||||||
|
&& !dicYZZCPWJPF.ContainsKey(sFieldName.Substring(5)) && !dicYZZYF.ContainsKey(sFieldName.Substring(5)) && !dicYZZB.ContainsKey(sFieldName.Substring(5))
|
||||||
&& !dicYZZC.ContainsKey(sFieldName.Substring(5)) && !dicYZZ_.ContainsKey(sFieldName.Substring(5)) && !dicYZZ1.ContainsKey(sFieldName.Substring(5))
|
&& !dicYZZC.ContainsKey(sFieldName.Substring(5)) && !dicYZZ_.ContainsKey(sFieldName.Substring(5)) && !dicYZZ1.ContainsKey(sFieldName.Substring(5))
|
||||||
&& !dicYZZE.ContainsKey(sFieldName.Substring(5)) && !dicYZZG.ContainsKey(sFieldName.Substring(5)) && !dicYZZH.ContainsKey(sFieldName.Substring(5))
|
&& !dicYZZE.ContainsKey(sFieldName.Substring(5)) && !dicYZZG.ContainsKey(sFieldName.Substring(5)) && !dicYZZH.ContainsKey(sFieldName.Substring(5))
|
||||||
&& !dicYZZK.ContainsKey(sFieldName.Substring(5)) )
|
&& !dicYZZK.ContainsKey(sFieldName.Substring(5)) )
|
||||||
@@ -18019,6 +18123,23 @@ namespace GThinking.N_XLXSBJ
|
|||||||
dicTJYZIDValue[tmpTJYZID] += tmpYZZ;
|
dicTJYZIDValue[tmpTJYZID] += tmpYZZ;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
foreach (string sYZID in dicYZZYF.Keys)
|
||||||
|
{
|
||||||
|
string tmpTJYZID = dicTJYZID[sYZID];
|
||||||
|
double tmpYZZ = dicYZZYF[sYZID];
|
||||||
|
string tmpTYZZYZID = dicTYZZYZID[sYZID];
|
||||||
|
if (!tmpTYZZYZID.Equals(""))
|
||||||
|
{
|
||||||
|
tmpYZZ = GetTYZZ(tmpTYZZYZID, tmpYZZ, dicTYZZYZIDValue);
|
||||||
|
}
|
||||||
|
if (!dicValueContained(dicTYZZYZID, tmpTJYZID))
|
||||||
|
{
|
||||||
|
if (!dicTJYZIDValue.ContainsKey(tmpTJYZID))
|
||||||
|
dicTJYZIDValue.Add(tmpTJYZID, tmpYZZ);
|
||||||
|
else
|
||||||
|
dicTJYZIDValue[tmpTJYZID] += tmpYZZ;
|
||||||
|
}
|
||||||
|
}
|
||||||
foreach (string sYZID in dicYZZC.Keys)
|
foreach (string sYZID in dicYZZC.Keys)
|
||||||
{
|
{
|
||||||
string tmpTJYZID = dicTJYZID[sYZID];
|
string tmpTJYZID = dicTJYZID[sYZID];
|
||||||
@@ -18063,7 +18184,8 @@ namespace GThinking.N_XLXSBJ
|
|||||||
if (!dicYZZ2.ContainsKey(sFieldName.Substring(5)) && !dicYZZ3.ContainsKey(sFieldName.Substring(5)) && !dicYZZE.ContainsKey(sFieldName.Substring(5)) && !dicYZZG.ContainsKey(sFieldName.Substring(5))
|
if (!dicYZZ2.ContainsKey(sFieldName.Substring(5)) && !dicYZZ3.ContainsKey(sFieldName.Substring(5)) && !dicYZZE.ContainsKey(sFieldName.Substring(5)) && !dicYZZG.ContainsKey(sFieldName.Substring(5))
|
||||||
&& !dicYZZF.ContainsKey(sFieldName.Substring(5)) && !dicYZZ4.ContainsKey(sFieldName.Substring(5)) && !dicYZZ5.ContainsKey(sFieldName.Substring(5))
|
&& !dicYZZF.ContainsKey(sFieldName.Substring(5)) && !dicYZZ4.ContainsKey(sFieldName.Substring(5)) && !dicYZZ5.ContainsKey(sFieldName.Substring(5))
|
||||||
&& !dicYZZ6.ContainsKey(sFieldName.Substring(5)) && !dicYZZ7.ContainsKey(sFieldName.Substring(5)) && !dicYZZ1.ContainsKey(sFieldName.Substring(5))
|
&& !dicYZZ6.ContainsKey(sFieldName.Substring(5)) && !dicYZZ7.ContainsKey(sFieldName.Substring(5)) && !dicYZZ1.ContainsKey(sFieldName.Substring(5))
|
||||||
&& !dicYZZ9.ContainsKey(sFieldName.Substring(5)) && !dicYZZA.ContainsKey(sFieldName.Substring(5)) && !dicYZZBZPF.ContainsKey(sFieldName.Substring(5)) && !dicYZZCPWJPF.ContainsKey(sFieldName.Substring(5)) && !dicYZZ8.ContainsKey(sFieldName.Substring(5))
|
&& !dicYZZ9.ContainsKey(sFieldName.Substring(5)) && !dicYZZA.ContainsKey(sFieldName.Substring(5)) && !dicYZZBZPF.ContainsKey(sFieldName.Substring(5))
|
||||||
|
&& !dicYZZCPWJPF.ContainsKey(sFieldName.Substring(5)) && !dicYZZYF.ContainsKey(sFieldName.Substring(5)) && !dicYZZ8.ContainsKey(sFieldName.Substring(5))
|
||||||
&& !dicYZZC.ContainsKey(sFieldName.Substring(5)) && !dicYZZ_.ContainsKey(sFieldName.Substring(5)) && !dicYZZB.ContainsKey(sFieldName.Substring(5))
|
&& !dicYZZC.ContainsKey(sFieldName.Substring(5)) && !dicYZZ_.ContainsKey(sFieldName.Substring(5)) && !dicYZZB.ContainsKey(sFieldName.Substring(5))
|
||||||
&& !dicYZZD.ContainsKey(sFieldName.Substring(5)) && !dicYZZH.ContainsKey(sFieldName.Substring(5)) && !dicYZZK.ContainsKey(sFieldName.Substring(5)))
|
&& !dicYZZD.ContainsKey(sFieldName.Substring(5)) && !dicYZZH.ContainsKey(sFieldName.Substring(5)) && !dicYZZK.ContainsKey(sFieldName.Substring(5)))
|
||||||
{
|
{
|
||||||
@@ -18596,6 +18718,45 @@ namespace GThinking.N_XLXSBJ
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Dictionary<string, double> dicYZZYF = new Dictionary<string, double>();
|
||||||
|
//运费
|
||||||
|
string sYFYZID = XLBJDUtils.GetBJFLSYYFYZID(sBJFLID);
|
||||||
|
if (!sYFYZID.Equals(""))
|
||||||
|
{
|
||||||
|
sYFYZID = sYFYZID.Split('|')[0];
|
||||||
|
string sXZQH = string.Empty;
|
||||||
|
if (!e.MasterDataSet["cbxKHSZDCOUNTY"].Trim().Equals(""))
|
||||||
|
{
|
||||||
|
sXZQH = e.MasterDataSet["cbxKHSZDCOUNTY"].Trim();
|
||||||
|
}
|
||||||
|
else if (!e.MasterDataSet["cbxKHSZDCITY"].Trim().Equals(""))
|
||||||
|
{
|
||||||
|
sXZQH = e.MasterDataSet["cbxKHSZDCITY"].Trim();
|
||||||
|
}
|
||||||
|
else if (!e.MasterDataSet["cbxKHSZDPRO"].Trim().Equals(""))
|
||||||
|
{
|
||||||
|
sXZQH = e.MasterDataSet["cbxKHSZDPRO"].Trim();
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
sXZQH = "";
|
||||||
|
}
|
||||||
|
dicYZZYF = XLBJDUtils.GetYFYZZ(sYFYZID, sXZQH, sXLXHID, CMISproConvert.StrToFloat(e.MasterDataSet["txtTJ"].Trim()), CMISproConvert.StrToFloat(e.MasterDataSet["txtLJ"].Trim()));
|
||||||
|
foreach (string sYZID in dicYZZYF.Keys)
|
||||||
|
{
|
||||||
|
e.ResultPairs.Add("TZYZ_" + sYZID, dicYZZYF[sYZID].ToString());
|
||||||
|
AddChangedField(dicChangedField, "TZYZ_" + sYZID, dicYZZYF[sYZID].ToString());
|
||||||
|
if (dicValueContained(dicTYZZYZID, sYZID))
|
||||||
|
{
|
||||||
|
if (!dicTYZZYZIDValue.ContainsKey(sYZID))
|
||||||
|
dicTYZZYZIDValue.Add(sYZID, dicYZZYF[sYZID]);
|
||||||
|
else
|
||||||
|
dicTYZZYZIDValue[sYZID] += dicYZZYF[sYZID];
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
foreach (string sYZID in dicYZZ2.Keys)
|
foreach (string sYZID in dicYZZ2.Keys)
|
||||||
{
|
{
|
||||||
@@ -23261,7 +23422,11 @@ namespace GThinking.N_XLXSBJ
|
|||||||
sText = sText + "(元)";
|
sText = sText + "(元)";
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ds.Tables[0].Rows[i]["SY"].ToString().Trim().Equals("2") && !ds.Tables[0].Rows[i]["XLXSTZYZ_TJYS"].ToString().Trim().Equals("C"))
|
if (sYZMC=="资金比例")
|
||||||
|
{
|
||||||
|
btnBJ.Nodes.Add(new gtTreeNode("ZJBL|" + sYZID, sText));
|
||||||
|
}
|
||||||
|
else if (ds.Tables[0].Rows[i]["SY"].ToString().Trim().Equals("2") && !ds.Tables[0].Rows[i]["XLXSTZYZ_TJYS"].ToString().Trim().Equals("C"))
|
||||||
{
|
{
|
||||||
btnBJ.Nodes.Add(new gtTreeNode("Root|" + sYZID, sText));
|
btnBJ.Nodes.Add(new gtTreeNode("Root|" + sYZID, sText));
|
||||||
|
|
||||||
@@ -23315,7 +23480,21 @@ namespace GThinking.N_XLXSBJ
|
|||||||
protected void btnBJ_MenuItemClick(object sender, string value)
|
protected void btnBJ_MenuItemClick(object sender, string value)
|
||||||
{
|
{
|
||||||
BJFLXX bjflxx = XLBJDUtils.GetBJFLXX(cbxBJFLID.SelectedValue.Trim());
|
BJFLXX bjflxx = XLBJDUtils.GetBJFLXX(cbxBJFLID.SelectedValue.Trim());
|
||||||
if (!value.Equals("BJXF") && !value.Equals("BJSF")
|
if (value.StartsWith("ZJBL"))
|
||||||
|
{
|
||||||
|
TPageParams tpp = new TPageParams();
|
||||||
|
tpp.UrlPath = "../Components/N_XLBJPZ/BJDZQWHInfo.aspx";
|
||||||
|
tpp.AddString("BJDID", txtBJDID.Text.Trim());
|
||||||
|
tpp.AddString("YZID", value.Split('|')[1]);
|
||||||
|
tpp.AddString("txtPLSZYZListCID", txtPLSZYZList.ClientID);
|
||||||
|
tpp.AddString("btnRefreshCID", btnRefreshBJDYZ.ClientID);
|
||||||
|
if (CMISproDataBase.ExistsRecord("DBERP", "select 1 from XLXSBJDZQZB where XLXSBJDZQZB_BJDID='" + txtBJDID.Text.Trim() + "'"))
|
||||||
|
tpp.CallAction = TPageCallAction.pcaBrowse;
|
||||||
|
else
|
||||||
|
tpp.CallAction = TPageCallAction.pcaInsert;
|
||||||
|
OpenDialog(tpp);
|
||||||
|
}
|
||||||
|
else if (!value.Equals("BJXF") && !value.Equals("BJSF")
|
||||||
&& !value.Equals("BJJCLLX") && !value.Equals("LJJCLLX")
|
&& !value.Equals("BJJCLLX") && !value.Equals("LJJCLLX")
|
||||||
&& !value.Equals("BJPLTJ") && !value.Equals("PFJE") && !value.Equals("JMBGS")
|
&& !value.Equals("BJPLTJ") && !value.Equals("PFJE") && !value.Equals("JMBGS")
|
||||||
&& !value.Equals("BJSL") && !value.Equals("BJSD")
|
&& !value.Equals("BJSL") && !value.Equals("BJSD")
|
||||||
@@ -24286,6 +24465,46 @@ namespace GThinking.N_XLXSBJ
|
|||||||
pageParams.AddString("btnRefreshCID", btnRefreshYFYZ1.ClientID);
|
pageParams.AddString("btnRefreshCID", btnRefreshYFYZ1.ClientID);
|
||||||
OpenFuncModuleDialog(100860084, pageParams);
|
OpenFuncModuleDialog(100860084, pageParams);
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
Confirm.Register("IsQD", string.Format(string.Format("将更新{0},是否继续?", XLBJDUtils.GetBJFLSYYFYZID(cbxBJFLID.SelectedValue.Trim()).Split('|')[1].Trim())));
|
||||||
|
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();
|
||||||
|
}
|
||||||
|
TDatabase dberp1 = TContextDatabases.GetDatabase("DBERP");
|
||||||
|
TSQL SQL1 = new TSQL(dberp1);
|
||||||
|
Dictionary<string, string> dicTJYZList = new Dictionary<string, string>();
|
||||||
|
dicTJYZList.Add("sTJYSListYF", XLBJDUtils.GetBJFLSYYFYZID(cbxBJFLID.SelectedValue.Trim()).Split('|')[0].Trim());
|
||||||
|
string sErrorMsg = "";
|
||||||
|
XLBJDUtils.AddXLXSBJDYZZ0(dberp1, txtBJDID.Text.Trim(), cbxBJFLID.SelectedValue.Trim(), "M", dicTJYZList, false, "", 0, false, false, false, ref sErrorMsg);
|
||||||
|
if (!sErrorMsg.Equals(""))
|
||||||
|
{
|
||||||
|
ShowMessage(sErrorMsg);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
XLBJDCalcUtils.CalcAfterBJDYZZChange(dberp1, SQL1, txtBJDID.Text.Trim(), 1, "", false, false, false, "", DateTime.MinValue, GetOption("BJU002"), GetOption("BJU003"), CurSession.UserId, CurSession.UserName, ref sErrorMsg);
|
||||||
|
if (!sErrorMsg.Equals(""))
|
||||||
|
{
|
||||||
|
ShowMessage(sErrorMsg);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
ShowMessage("更新完成!");
|
||||||
|
btnOnlyRefresh_Click(null, null);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
+245
-5
@@ -866,7 +866,7 @@ namespace GThinking.N_XLXSBJ
|
|||||||
{
|
{
|
||||||
TDatabase dberp = TContextDatabases.GetDatabase("DBERP");
|
TDatabase dberp = TContextDatabases.GetDatabase("DBERP");
|
||||||
TSQL sql = new TSQL(dberp);
|
TSQL sql = new TSQL(dberp);
|
||||||
sql.Add("select XLXSBJDYZZ_YZZ,XLXSBJDYZZ_YZID,XLXSTZYZ_MRTJFW,XLXSTZYZ_JJFS from XLXSBJDYZZ,XLXSTZYZ");
|
sql.Add("select XLXSBJDYZZ_YZZ,XLXSBJDYZZ_YZID,XLXSTZYZ_MRTJFW,XLXSTZYZ_JJFS,XLXSTZYZ_YZMC from XLXSBJDYZZ,XLXSTZYZ");
|
||||||
sql.Add(" where XLXSTZYZ_JGBID=XLXSBJDYZZ_JGBID and XLXSTZYZ_YZID=XLXSBJDYZZ_YZID and XLXSTZYZ_MXBH='BJD'");
|
sql.Add(" where XLXSTZYZ_JGBID=XLXSBJDYZZ_JGBID and XLXSTZYZ_YZID=XLXSBJDYZZ_YZID and XLXSTZYZ_MXBH='BJD'");
|
||||||
sql.Add(" and exists(select 1 from XLXSBJFLYZ where XLXSBJFLYZ_BJFLID=:pBJFLID and XLXSBJFLYZ_YZID=XLXSTZYZ_YZID)");
|
sql.Add(" and exists(select 1 from XLXSBJFLYZ where XLXSBJFLYZ_BJFLID=:pBJFLID and XLXSBJFLYZ_YZID=XLXSTZYZ_YZID)");
|
||||||
sql.Add(" order by XLXSBJDYZZ_YZID");
|
sql.Add(" order by XLXSBJDYZZ_YZID");
|
||||||
@@ -877,12 +877,14 @@ namespace GThinking.N_XLXSBJ
|
|||||||
double dSL = string.IsNullOrEmpty((tSession.GetOption(100860000, "BJU055"))) ? 0 : (double.Parse((tSession.GetOption(100860000, "BJU055")))) / 100.0; ;
|
double dSL = string.IsNullOrEmpty((tSession.GetOption(100860000, "BJU055"))) ? 0 : (double.Parse((tSession.GetOption(100860000, "BJU055")))) / 100.0; ;
|
||||||
bool IsHSWL = (dSL == 0);
|
bool IsHSWL = (dSL == 0);
|
||||||
bool IsHS = GetBJDHSBZ(sBJDID);
|
bool IsHS = GetBJDHSBZ(sBJDID);
|
||||||
|
|
||||||
for (int i = 0; i < ds.Tables[0].Rows.Count; i++)
|
for (int i = 0; i < ds.Tables[0].Rows.Count; i++)
|
||||||
{
|
{
|
||||||
//形如(BJ10,2)
|
//形如(BJ10,2)
|
||||||
if (!dicYZZ0.ContainsKey(ds.Tables[0].Rows[i]["XLXSBJDYZZ_YZID"].ToString().Trim()))
|
if (!dicYZZ0.ContainsKey(ds.Tables[0].Rows[i]["XLXSBJDYZZ_YZID"].ToString().Trim()))
|
||||||
{
|
{
|
||||||
double dYZZ = CMISproConvert.StrToFloat(ds.Tables[0].Rows[i]["XLXSBJDYZZ_YZZ"].ToString());
|
double dYZZ = CMISproConvert.StrToFloat(ds.Tables[0].Rows[i]["XLXSBJDYZZ_YZZ"].ToString());
|
||||||
|
|
||||||
if (ds.Tables[0].Rows[i]["XLXSTZYZ_JJFS"].ToString().Trim() == "JJ")
|
if (ds.Tables[0].Rows[i]["XLXSTZYZ_JJFS"].ToString().Trim() == "JJ")
|
||||||
{
|
{
|
||||||
dYZZ *= GetHSBL(sBJDJLDW, sBJU003, sXLXHID, sXLGGID, sXLBZID, sDYDJID);
|
dYZZ *= GetHSBL(sBJDJLDW, sBJU003, sXLXHID, sXLGGID, sXLBZID, sDYDJID);
|
||||||
@@ -891,6 +893,7 @@ namespace GThinking.N_XLXSBJ
|
|||||||
dYZZ = dYZZ / NumberUtils.RoundX((1 + dSL), 6);
|
dYZZ = dYZZ / NumberUtils.RoundX((1 + dSL), 6);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
string sMRTJFW = "," + ds.Tables[0].Rows[i]["XLXSTZYZ_MRTJFW"].ToString().Trim() + ",";
|
string sMRTJFW = "," + ds.Tables[0].Rows[i]["XLXSTZYZ_MRTJFW"].ToString().Trim() + ",";
|
||||||
if (sMRTJFW.Contains(",2,") && !bWGCP)//2|外购产品
|
if (sMRTJFW.Contains(",2,") && !bWGCP)//2|外购产品
|
||||||
{
|
{
|
||||||
@@ -2521,6 +2524,69 @@ namespace GThinking.N_XLXSBJ
|
|||||||
return dicYZZBZPF;
|
return dicYZZBZPF;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
//获取运费因子
|
||||||
|
public static Dictionary<string, double> GetYFYZZ(string sYFYZID,string sXZQHID, string sXLXHID,double dTJ,double dLJ)
|
||||||
|
{
|
||||||
|
string sTcpList = "";
|
||||||
|
string sLcpList = "";
|
||||||
|
XLXSBJPZXX pzxx = XLBJDUtils.GetXLXSBJPZXX(100860063);
|
||||||
|
if (!string.IsNullOrEmpty(pzxx.XLXSBJPZ_TDTGSCLID))
|
||||||
|
sTcpList = pzxx.XLXSBJPZ_TDTGSCLID;
|
||||||
|
if (!string.IsNullOrEmpty(pzxx.XLXSBJPZ_LDTGSCLID))
|
||||||
|
sLcpList = pzxx.XLXSBJPZ_LDTGSCLID;
|
||||||
|
|
||||||
|
bool bTCP = false;
|
||||||
|
bool bLCP = false;
|
||||||
|
if (!string.IsNullOrEmpty(pzxx.XLXSBJPZ_TDTGSCLID) && CMISproDataBase.ExistsRecord("DBERP", "select 1 from XLXHB where 1=1 XLXHB_XLXHID='" + sXLXHID + "' and " + CMISproDataBase.GetWhereEqual("XLXHB_DTCLID", sTcpList)))
|
||||||
|
bTCP = true;
|
||||||
|
if (!string.IsNullOrEmpty(pzxx.XLXSBJPZ_LDTGSCLID) && CMISproDataBase.ExistsRecord("DBERP", "select 1 from XLXHB where 1=1 XLXHB_XLXHID='" + sXLXHID + "' and " + CMISproDataBase.GetWhereEqual("XLXHB_DTCLID", sLcpList)))
|
||||||
|
bLCP = true;
|
||||||
|
Dictionary<string, double> dicYZZBZPF = new Dictionary<string, double>();
|
||||||
|
dicYZZBZPF.Add(sYFYZID, 0);
|
||||||
|
|
||||||
|
TDatabase dberp = TContextDatabases.GetDatabase("DBERP");
|
||||||
|
TSQL sql = new TSQL(dberp);
|
||||||
|
if (bTCP)
|
||||||
|
{
|
||||||
|
sql.Clear();
|
||||||
|
sql.Add(@" select XLXSBJYFJZQJ_YFJZQH
|
||||||
|
from XLXSBJYFJZQJ
|
||||||
|
where XLXSBJYFJZQJ_YFJZQJMC like '%铜%' and XLXSBJYFJZQJ_YFJZXX<=:pTJ and XLXSBJYFJZQJ_YFJZSX>:pTJ ");
|
||||||
|
sql.ParamByName("pTJ").Value = dTJ*1000;
|
||||||
|
|
||||||
|
}
|
||||||
|
if (bLCP)
|
||||||
|
{
|
||||||
|
sql.Clear();
|
||||||
|
sql.Add(@" select XLXSBJYFJZQJ_YFJZQH
|
||||||
|
from XLXSBJYFJZQJ
|
||||||
|
where XLXSBJYFJZQJ_YFJZQJMC like '%铝%' and XLXSBJYFJZQJ_YFJZXX<=:pTJ and XLXSBJYFJZQJ_YFJZSX>:pTJ ");
|
||||||
|
sql.ParamByName("pTJ").Value = dLJ * 1000;
|
||||||
|
|
||||||
|
}
|
||||||
|
DataSet dsQH = dberp.OpenDataSet(sql);
|
||||||
|
if (dsQH.Tables[0].Rows.Count > 0)
|
||||||
|
{
|
||||||
|
string sQH = dsQH.Tables[0].Rows[0][0].ToString().Trim();
|
||||||
|
sql.Clear();
|
||||||
|
sql.Add(" select XLXSBJDQYFB_YSFL from XLXSBJDQYFB where XLXSBJDQYFB_XZQHID=:XLXSBJDQYFB_XZQHID and XLXSBJDQYFB_YFJZQH=:XLXSBJDQYFB_YFJZQH ");
|
||||||
|
sql.ParamByName("XLXSBJDQYFB_XZQHID").Value = sXZQHID;
|
||||||
|
sql.ParamByName("XLXSBJDQYFB_YFJZQH").Value = sQH;
|
||||||
|
DataSet ds = dberp.OpenDataSet(sql);
|
||||||
|
|
||||||
|
for (int i = 0; i < ds.Tables[0].Rows.Count; i++)
|
||||||
|
{
|
||||||
|
double dYZZ = CMISproConvert.StrToFloat(ds.Tables[0].Rows[i]["XLXSBJDQYFB_YSFL"].ToString());
|
||||||
|
dicYZZBZPF[sYFYZID] = dYZZ;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
return dicYZZBZPF;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
//获取报价因子的最小值
|
//获取报价因子的最小值
|
||||||
public static string GetMinYZZ(string sYZID, double dHSBL)
|
public static string GetMinYZZ(string sYZID, double dHSBL)
|
||||||
{
|
{
|
||||||
@@ -2984,9 +3050,9 @@ namespace GThinking.N_XLXSBJ
|
|||||||
TSQL sql = new TSQL(dberp);
|
TSQL sql = new TSQL(dberp);
|
||||||
sql.Add("select XLXSJGBYZZC_YZZ,XLXSJGBYZZC_YZID ");
|
sql.Add("select XLXSJGBYZZC_YZZ,XLXSJGBYZZC_YZID ");
|
||||||
sql.Add(" from XLXSJGBYZZC,XLXSTZYZ ");
|
sql.Add(" from XLXSJGBYZZC,XLXSTZYZ ");
|
||||||
sql.Add(" where XLXSTZYZ_JGBID=XLXSJGBYZZC_JGBID and XLXSTZYZ_YZID=XLXSJGBYZZC_YZID and XLXSTZYZ_MXBH='JZJ'");
|
sql.Add(" where XLXSTZYZ_JGBID=XLXSJGBYZZC_JGBID and XLXSTZYZ_YZID=XLXSJGBYZZC_YZID and XLXSTZYZ_MXBH='JZJ' and XLXSJGBYZZC_ZXJM=:pZXJM ");
|
||||||
sql.Add(" and exists(select 1 from XLXSJGBYZ where XLXSJGBYZ_JGBID =:pJGEJGBID and XLXSJGBYZ_YZID = XLXSTZYZ_YZID)");
|
sql.Add(" and exists(select 1 from XLXSJGBYZ where XLXSJGBYZ_JGBID =:pJGEJGBID and XLXSJGBYZ_YZID = XLXSTZYZ_YZID)");
|
||||||
sql.Add(" and exists(select 1 from XLXSBJCPYS where XLXSBJCPYS_XLJBXHID=:pXLXHID and XLXSBJCPYS_DYDJID=:pDYDJID and XLXSBJCPYS_XLYSID=:pZXJM and XLXSBJCPYS_XXJGID =XLXSJGBYZZC_CPTX )");
|
sql.Add(" and exists(select 1 from XLXSBJCPYS where XLXSBJCPYS_XLJBXHID=:pXLXHID and XLXSBJCPYS_DYDJID=:pDYDJID and XLXSBJCPYS_XXJGID =XLXSJGBYZZC_CPTX )");
|
||||||
sql.ParamByName("pJGEJGBID").Value = sJGEJGBID;
|
sql.ParamByName("pJGEJGBID").Value = sJGEJGBID;
|
||||||
sql.ParamByName("pXLXHID").Value = sXLXHID;
|
sql.ParamByName("pXLXHID").Value = sXLXHID;
|
||||||
sql.ParamByName("pDYDJID").Value = sDYDJID;
|
sql.ParamByName("pDYDJID").Value = sDYDJID;
|
||||||
@@ -9031,12 +9097,12 @@ namespace GThinking.N_XLXSBJ
|
|||||||
sSQL.Add(" and isnull(XLJGCZBLM_CLQDL,' ')<>' '");
|
sSQL.Add(" and isnull(XLJGCZBLM_CLQDL,' ')<>' '");
|
||||||
if (CLLX == "QTCLSH")
|
if (CLLX == "QTCLSH")
|
||||||
{
|
{
|
||||||
sSQL.Add(" and XLJGCZBLM_XLCLZLID <> 'DTCL' and XLJGCZBLM_CZBLMMC not like '%Í%' and XLJGCZBLM_CZBLMMC not like '%ÂÁ%' ");
|
sSQL.Add(" and isnull(XLJGCZBLM_XLCLZLID,' ') <> 'DTCL' and XLJGCZBLM_CZBLMMC not like '%铜%' and XLJGCZBLM_CZBLMMC not like '%铝%' ");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (CLLX == "DTCLSH")
|
if (CLLX == "DTCLSH")
|
||||||
{
|
{
|
||||||
sSQL.Add(" and XLJGCZBLM_XLCLZLID = 'DTCL' and (XLJGCZBLM_CZBLMMC like '%Í%' or XLJGCZBLM_CZBLMMC like '%ÂÁ%') ");
|
sSQL.Add(" and isnull(XLJGCZBLM_XLCLZLID,' ') = 'DTCL' and (XLJGCZBLM_CZBLMMC like '%铜%' or XLJGCZBLM_CZBLMMC like '%铝%') ");
|
||||||
}
|
}
|
||||||
|
|
||||||
sSQL.Add(" order by XLJGCZBLM_CLQDL");
|
sSQL.Add(" order by XLJGCZBLM_CLQDL");
|
||||||
@@ -13136,6 +13202,7 @@ namespace GThinking.N_XLXSBJ
|
|||||||
{
|
{
|
||||||
string sBZPFYZID = XLBJDUtils.GetBJFLSYBZPFYZID(sBJFLID);
|
string sBZPFYZID = XLBJDUtils.GetBJFLSYBZPFYZID(sBJFLID);
|
||||||
string sCPWJPFYZID = XLBJDUtils.GetBJFLSYCPWJPFYZID(sBJFLID);
|
string sCPWJPFYZID = XLBJDUtils.GetBJFLSYCPWJPFYZID(sBJFLID);
|
||||||
|
string sYFYZID = XLBJDUtils.GetBJFLSYYFYZID(sBJFLID);
|
||||||
string chr = "";
|
string chr = "";
|
||||||
for (int i = 0; i < dsBJDYZ.Tables[0].Rows.Count; i++)
|
for (int i = 0; i < dsBJDYZ.Tables[0].Rows.Count; i++)
|
||||||
{
|
{
|
||||||
@@ -13157,6 +13224,11 @@ namespace GThinking.N_XLXSBJ
|
|||||||
if (sCPWJPFYZID.Split('|')[0].Trim().Equals(dsBJDYZ.Tables[0].Rows[i]["XLXSBJFLYZ_YZID"].ToString().Trim()))
|
if (sCPWJPFYZID.Split('|')[0].Trim().Equals(dsBJDYZ.Tables[0].Rows[i]["XLXSBJFLYZ_YZID"].ToString().Trim()))
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
else if (!sYFYZID.Equals(""))
|
||||||
|
{
|
||||||
|
if (sYFYZID.Split('|')[0].Trim().Equals(dsBJDYZ.Tables[0].Rows[i]["XLXSBJFLYZ_YZID"].ToString().Trim()))
|
||||||
|
continue;
|
||||||
|
}
|
||||||
dicTJYZList["sTJYSList_"] = dicTJYZList["sTJYSList_"] + "," + dsBJDYZ.Tables[0].Rows[i]["XLXSBJFLYZ_YZID"].ToString().Trim();
|
dicTJYZList["sTJYSList_"] = dicTJYZList["sTJYSList_"] + "," + dsBJDYZ.Tables[0].Rows[i]["XLXSBJFLYZ_YZID"].ToString().Trim();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@@ -13171,6 +13243,11 @@ namespace GThinking.N_XLXSBJ
|
|||||||
if (sCPWJPFYZID.Split('|')[0].Trim().Equals(dsBJDYZ.Tables[0].Rows[i]["XLXSBJFLYZ_YZID"].ToString().Trim()))
|
if (sCPWJPFYZID.Split('|')[0].Trim().Equals(dsBJDYZ.Tables[0].Rows[i]["XLXSBJFLYZ_YZID"].ToString().Trim()))
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
else if (!sYFYZID.Equals(""))
|
||||||
|
{
|
||||||
|
if (sYFYZID.Split('|')[0].Trim().Equals(dsBJDYZ.Tables[0].Rows[i]["XLXSBJFLYZ_YZID"].ToString().Trim()))
|
||||||
|
continue;
|
||||||
|
}
|
||||||
dicTJYZList.Add("sTJYSList_", dsBJDYZ.Tables[0].Rows[i]["XLXSBJFLYZ_YZID"].ToString().Trim());
|
dicTJYZList.Add("sTJYSList_", dsBJDYZ.Tables[0].Rows[i]["XLXSBJFLYZ_YZID"].ToString().Trim());
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
@@ -13198,6 +13275,10 @@ namespace GThinking.N_XLXSBJ
|
|||||||
{
|
{
|
||||||
dicTJYZList.Add("sTJYSListPFCPWJ", sCPWJPFYZID.Split('|')[0]);
|
dicTJYZList.Add("sTJYSListPFCPWJ", sCPWJPFYZID.Split('|')[0]);
|
||||||
}
|
}
|
||||||
|
if (!sYFYZID.Equals(""))
|
||||||
|
{
|
||||||
|
dicTJYZList.Add("sTJYSListYF", sYFYZID.Split('|')[0]);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -17851,6 +17932,147 @@ namespace GThinking.N_XLXSBJ
|
|||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
sErrorNum = "ErrorYF";
|
||||||
|
//自动插入TJMK=产品外径盘费的调价因子值
|
||||||
|
#region 调价模块产品外径盘费|型号&规格&电压&标准
|
||||||
|
if (dicTJYZList.ContainsKey("sTJYSListYF"))
|
||||||
|
{
|
||||||
|
string sTcpList = "";
|
||||||
|
string sLcpList = "";
|
||||||
|
XLXSBJPZXX pzxx = XLBJDUtils.GetXLXSBJPZXX(100860063);
|
||||||
|
if (!string.IsNullOrEmpty(pzxx.XLXSBJPZ_TDTGSCLID))
|
||||||
|
sTcpList = pzxx.XLXSBJPZ_TDTGSCLID;
|
||||||
|
if (!string.IsNullOrEmpty(pzxx.XLXSBJPZ_LDTGSCLID))
|
||||||
|
sLcpList = pzxx.XLXSBJPZ_LDTGSCLID;
|
||||||
|
string sTQH = string.Empty;
|
||||||
|
string sLQH = string.Empty;
|
||||||
|
|
||||||
|
|
||||||
|
sTJYZ = dicTJYZList["sTJYSListYF"].Trim().Split(new Char[] { ',' }, StringSplitOptions.RemoveEmptyEntries);
|
||||||
|
|
||||||
|
SQL.Clear();
|
||||||
|
SQL.Add(@" select XLXSBJYFJZQJ_YFJZQH
|
||||||
|
from XLXSBJYFJZQJ
|
||||||
|
where XLXSBJYFJZQJ_YFJZQJMC like '%铜%' and exists(select 1 from XLXSBJD where XLXSBJD_BJDID=:pBJDID and XLXSBJYFJZQJ_YFJZXX<=XLXSBJD_TJ*1000 and XLXSBJYFJZQJ_YFJZSX>XLXSBJD_TJ*1000) ");
|
||||||
|
SQL.ParamByName("pBJDID").Value = sBJDID;
|
||||||
|
DataSet dsQH = dberp.OpenDataSet(SQL);
|
||||||
|
if (dsQH.Tables[0].Rows.Count > 0)
|
||||||
|
sTQH = dsQH.Tables[0].Rows[0][0].ToString().Trim();
|
||||||
|
|
||||||
|
SQL.Clear();
|
||||||
|
SQL.Add(@" select XLXSBJYFJZQJ_YFJZQH
|
||||||
|
from XLXSBJYFJZQJ
|
||||||
|
where XLXSBJYFJZQJ_YFJZQJMC like '%铝%' and exists(select 1 from XLXSBJD where XLXSBJD_BJDID=:pBJDID and XLXSBJYFJZQJ_YFJZXX<=XLXSBJD_LJ*1000 and XLXSBJYFJZQJ_YFJZSX>XLXSBJD_LJ*1000) ");
|
||||||
|
SQL.ParamByName("pBJDID").Value = sBJDID;
|
||||||
|
dsQH = dberp.OpenDataSet(SQL);
|
||||||
|
if (dsQH.Tables[0].Rows.Count > 0)
|
||||||
|
sLQH = dsQH.Tables[0].Rows[0][0].ToString().Trim();
|
||||||
|
|
||||||
|
|
||||||
|
for (int i = 0; i < sTJYZ.Length; i++)
|
||||||
|
{
|
||||||
|
if (!sTJYZ[i].Trim().Equals(""))
|
||||||
|
{
|
||||||
|
if (!string.IsNullOrEmpty(sTcpList) && !string.IsNullOrEmpty(sTQH))
|
||||||
|
{
|
||||||
|
SQL.Clear();
|
||||||
|
SQL.Add("merge into XLXSBJDYZZ0 tar ");
|
||||||
|
SQL.Add("using ( ");
|
||||||
|
SQL.Add(@" select isnull(XLXSBJDQYFB_YSFL,0) as YZZ,XLXSBJDMX_BJDID as BJDID ,XLXSBJDMX_XH as XH
|
||||||
|
from XLXSBJDMX
|
||||||
|
left join XLXSBJD on XLXSBJD_BJDID=XLXSBJDMX_BJDID
|
||||||
|
left join XLXHB on XLXHB_XLXHID=XLXSBJDMX_XLXHID
|
||||||
|
left join XLXSBJDQYFB on XLXSBJD_XZQHID=XLXSBJDQYFB_XZQHID and XLXSBJDQYFB_YFJZQH=:XLXSBJDQYFB_YFJZQH
|
||||||
|
where XLXSBJDMX_BJDID=:pBJDID ");
|
||||||
|
|
||||||
|
SQL.Add("and " + CMISproDataBase.GetWhereEqual("XLXHB_DTCLID", sTcpList));
|
||||||
|
if (!sBJDXHList.Equals(""))
|
||||||
|
{
|
||||||
|
SQL.Add("and " + CMISproDataBase.GetWhereEqual("XLXSBJDMX_XH", sBJDXHList));
|
||||||
|
}
|
||||||
|
if (minBJDXH != 0)
|
||||||
|
{
|
||||||
|
SQL.Add("and XLXSBJDMX_XH > :minBJDXH");
|
||||||
|
SQL.ParamByName("minBJDXH").Value = minBJDXH;
|
||||||
|
}
|
||||||
|
if (VnewID > 0)
|
||||||
|
{
|
||||||
|
SQL.Add(" and exists(select 1 from V_BJDXH where V_BJDXH_ID = :pVID and V_BJDXH_BJDID = XLXSBJDMX_BJDID and V_BJDXH_BJDXH = XLXSBJDMX_XH) ");
|
||||||
|
SQL.ParamByName("pVID").Value = VnewID;
|
||||||
|
}
|
||||||
|
if (bYBJ)
|
||||||
|
SQL.Add(" and XLXSBJDMX_JGBBJ<>0.0");
|
||||||
|
if (bWG)
|
||||||
|
SQL.Add(" and XLXSBJDMX_WGCPBZ='Y'");
|
||||||
|
if (bFWG)
|
||||||
|
SQL.Add(" and XLXSBJDMX_WGCPBZ<>'Y'");
|
||||||
|
if (tWHSJCondition != DateTime.MinValue)
|
||||||
|
{
|
||||||
|
SQL.Add(" and XLXSBJDMX_WHSJ=:pWHSJ");
|
||||||
|
SQL.ParamByName("pWHSJ").Value = tWHSJCondition;
|
||||||
|
}
|
||||||
|
SQL.Add(") sor ");
|
||||||
|
SQL.Add("on (tar.XLXSBJDYZZ0_BJDID=sor.BJDID and tar.XLXSBJDYZZ0_XH=sor.XH) ");
|
||||||
|
SQL.Add("when matched then update set ");
|
||||||
|
SQL.Add(string.Format("tar.XLXSBJDYZZ0_YZZ{0}=sor.YZZ", sTJYZ[i].Trim().Replace("BJ", "")));
|
||||||
|
SQL.ParamByName("XLXSBJDQYFB_YFJZQH").Value = sTQH;
|
||||||
|
SQL.ParamByName("pBJDID").Value = sBJDID;
|
||||||
|
dberp.ExecSQL(SQL);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!string.IsNullOrEmpty(sLcpList) && !string.IsNullOrEmpty(sLQH))
|
||||||
|
{
|
||||||
|
SQL.Clear();
|
||||||
|
SQL.Add("merge into XLXSBJDYZZ0 tar ");
|
||||||
|
SQL.Add("using ( ");
|
||||||
|
SQL.Add(@" select isnull(XLXSBJDQYFB_YSFL,0) as YZZ,XLXSBJDMX_BJDID as BJDID ,XLXSBJDMX_XH as XH
|
||||||
|
from XLXSBJDMX
|
||||||
|
left join XLXSBJD on XLXSBJD_BJDID=XLXSBJDMX_BJDID
|
||||||
|
left join XLXHB on XLXHB_XLXHID=XLXSBJDMX_XLXHID
|
||||||
|
left join XLXSBJDQYFB on XLXSBJD_XZQHID=XLXSBJDQYFB_XZQHID and XLXSBJDQYFB_YFJZQH=:XLXSBJDQYFB_YFJZQH
|
||||||
|
where XLXSBJDMX_BJDID=:pBJDID ");
|
||||||
|
|
||||||
|
SQL.Add("and " + CMISproDataBase.GetWhereEqual("XLXHB_DTCLID", sLcpList));
|
||||||
|
if (!sBJDXHList.Equals(""))
|
||||||
|
{
|
||||||
|
SQL.Add("and " + CMISproDataBase.GetWhereEqual("XLXSBJDMX_XH", sBJDXHList));
|
||||||
|
}
|
||||||
|
if (minBJDXH != 0)
|
||||||
|
{
|
||||||
|
SQL.Add("and XLXSBJDMX_XH > :minBJDXH");
|
||||||
|
SQL.ParamByName("minBJDXH").Value = minBJDXH;
|
||||||
|
}
|
||||||
|
if (VnewID > 0)
|
||||||
|
{
|
||||||
|
SQL.Add(" and exists(select 1 from V_BJDXH where V_BJDXH_ID = :pVID and V_BJDXH_BJDID = XLXSBJDMX_BJDID and V_BJDXH_BJDXH = XLXSBJDMX_XH) ");
|
||||||
|
SQL.ParamByName("pVID").Value = VnewID;
|
||||||
|
}
|
||||||
|
if (bYBJ)
|
||||||
|
SQL.Add(" and XLXSBJDMX_JGBBJ<>0.0");
|
||||||
|
if (bWG)
|
||||||
|
SQL.Add(" and XLXSBJDMX_WGCPBZ='Y'");
|
||||||
|
if (bFWG)
|
||||||
|
SQL.Add(" and XLXSBJDMX_WGCPBZ<>'Y'");
|
||||||
|
if (tWHSJCondition != DateTime.MinValue)
|
||||||
|
{
|
||||||
|
SQL.Add(" and XLXSBJDMX_WHSJ=:pWHSJ");
|
||||||
|
SQL.ParamByName("pWHSJ").Value = tWHSJCondition;
|
||||||
|
}
|
||||||
|
SQL.Add(") sor ");
|
||||||
|
SQL.Add("on (tar.XLXSBJDYZZ0_BJDID=sor.BJDID and tar.XLXSBJDYZZ0_XH=sor.XH) ");
|
||||||
|
SQL.Add("when matched then update set ");
|
||||||
|
SQL.Add(string.Format("tar.XLXSBJDYZZ0_YZZ{0}=sor.YZZ", sTJYZ[i].Trim().Replace("BJ", "")));
|
||||||
|
SQL.ParamByName("XLXSBJDQYFB_YFJZQH").Value = sLQH;
|
||||||
|
SQL.ParamByName("pBJDID").Value = sBJDID;
|
||||||
|
dberp.ExecSQL(SQL);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
|
||||||
sErrorNum = "ErrorCPWJPF";
|
sErrorNum = "ErrorCPWJPF";
|
||||||
//自动插入TJMK=产品外径盘费的调价因子值
|
//自动插入TJMK=产品外径盘费的调价因子值
|
||||||
#region 调价模块产品外径盘费|型号&规格&电压&标准
|
#region 调价模块产品外径盘费|型号&规格&电压&标准
|
||||||
@@ -20915,6 +21137,24 @@ namespace GThinking.N_XLXSBJ
|
|||||||
return "";
|
return "";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static string GetBJFLSYYFYZID(string sBJFLID)
|
||||||
|
{
|
||||||
|
List<TZYZXX> BJFLYZXX_List = new List<TZYZXX>();
|
||||||
|
List<XLXSBJFLYZXX> bjflYZ = GetBJFLYZXXByBJFLID(sBJFLID);
|
||||||
|
if (bjflYZ.Count > 0)
|
||||||
|
{
|
||||||
|
foreach (XLXSBJFLYZXX sYZ in bjflYZ)
|
||||||
|
{
|
||||||
|
TZYZXX yzxx = GetYZXXByYZID(sYZ.XLXSBJFLYZ_YZID);
|
||||||
|
//100860071|按产品外径报价数量区间调盘费
|
||||||
|
if (yzxx.XLXSTZYZ_TJMDID.Equals("100860071"))
|
||||||
|
return yzxx.XLXSTZYZ_YZID.Trim() + "|" + yzxx.XLXSTZYZ_YZMC.Trim();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
return "";
|
||||||
|
}
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region 字典记录因子ID、因子名称
|
#region 字典记录因子ID、因子名称
|
||||||
|
|||||||
@@ -4449,8 +4449,8 @@ namespace GThinking.N_XLXSBJ
|
|||||||
if (!string.IsNullOrEmpty(pzxx.XLXSBJPZ_WBPPZXSX))
|
if (!string.IsNullOrEmpty(pzxx.XLXSBJPZ_WBPPZXSX))
|
||||||
sWBPPZXSX = pzxx.XLXSBJPZ_WBPPZXSX;
|
sWBPPZXSX = pzxx.XLXSBJPZ_WBPPZXSX;
|
||||||
|
|
||||||
string sDefXLBZID = "";
|
string sDefXLBZID = "FirstBZ";
|
||||||
string sDefDYDJID = "";
|
string sDefDYDJID = "minDY";
|
||||||
|
|
||||||
pzxx = XLBJDUtils.GetXLXSBJPZXX(100860000);
|
pzxx = XLBJDUtils.GetXLXSBJPZXX(100860000);
|
||||||
if (!string.IsNullOrEmpty(pzxx.XLXSBJPZ_MRXLBZID))
|
if (!string.IsNullOrEmpty(pzxx.XLXSBJPZ_MRXLBZID))
|
||||||
|
|||||||
+17
-11
@@ -5149,7 +5149,7 @@ namespace GThinking.N_XLXSBJ
|
|||||||
SQL.Add("left join XLXSBJXLGGTHB XLXSBJXLGGTHB_JGB10 on XLXSBJXLGGTHB_JGB10.XLXSBJXLGGTHB_XLGGID=XLXSJGBMX_XLGGID ");
|
SQL.Add("left join XLXSBJXLGGTHB XLXSBJXLGGTHB_JGB10 on XLXSBJXLGGTHB_JGB10.XLXSBJXLGGTHB_XLGGID=XLXSJGBMX_XLGGID ");
|
||||||
SQL.Add("left join XLGGB on XLGGB_XLGGID = isnull(XLXSBJXLGGTHB_JGB10.XLXSBJXLGGTHB_XLGGIDCH,' ') and XLGGB_XLGGJDGZ = isnull(XLXHB_XLGGJDGZ,'0') ");
|
SQL.Add("left join XLGGB on XLGGB_XLGGID = isnull(XLXSBJXLGGTHB_JGB10.XLXSBJXLGGTHB_XLGGIDCH,' ') and XLGGB_XLGGJDGZ = isnull(XLXHB_XLGGJDGZ,'0') ");
|
||||||
SQL.Add("left join XLDTJMZHB on XLDTJMZHB_DTJMZHID=XLGGB_DTJMZHID ");
|
SQL.Add("left join XLDTJMZHB on XLDTJMZHB_DTJMZHID=XLGGB_DTJMZHID ");
|
||||||
SQL.Add(" LEFT JOIN XLXSBJCPYS ON XLXSBJCPYS_XLJBXHID=XLXSJGBMX_XLXHID and XLXSBJCPYS_DYDJID=XLXSJGBMX_DYDJID and CONVERT(float,XLXSBJCPYS_XLYSID)=XLDTJMZHB_DTJM1 ");
|
SQL.Add(" LEFT JOIN XLXSBJCPYS ON XLXSBJCPYS_XLJBXHID=XLXSJGBMX_XLXHID and XLXSBJCPYS_DYDJID=XLXSJGBMX_DYDJID ");
|
||||||
if (!sJGCZBID.Trim().Equals(""))
|
if (!sJGCZBID.Trim().Equals(""))
|
||||||
{
|
{
|
||||||
SQL.Add(" left join XLXSCLQD on XLXSCLQD_XLXHID=XLXSJGBMX_XLXHID and XLXSCLQD_XLGGID=XLXSJGBMX_XLGGID and XLXSCLQD_DYDJID=XLXSJGBMX_DYDJID ");
|
SQL.Add(" left join XLXSCLQD on XLXSCLQD_XLXHID=XLXSJGBMX_XLXHID and XLXSCLQD_XLGGID=XLXSJGBMX_XLGGID and XLXSCLQD_DYDJID=XLXSJGBMX_DYDJID ");
|
||||||
@@ -5162,7 +5162,7 @@ namespace GThinking.N_XLXSBJ
|
|||||||
SQL.ParamByName("pmaxXH").Value = maxXH;
|
SQL.ParamByName("pmaxXH").Value = maxXH;
|
||||||
}
|
}
|
||||||
SQL.Add(" and XLXSJGBYZZC_JGBID=:pTJJGBID and XLXSJGBYZZC_YZID=:pYZID ");
|
SQL.Add(" and XLXSJGBYZZC_JGBID=:pTJJGBID and XLXSJGBYZZC_YZID=:pYZID ");
|
||||||
SQL.Add(" and XLXSBJCPYS_XXJGID =XLXSJGBYZZC_CPTX ");
|
SQL.Add(" and XLXSBJCPYS_XXJGID =XLXSJGBYZZC_CPTX and XLDTJMZHB_DTJM1=XLXSJGBYZZC_ZXJM ");
|
||||||
if (!sJGCZBID.Trim().Equals(""))
|
if (!sJGCZBID.Trim().Equals(""))
|
||||||
{
|
{
|
||||||
SQL.Add(" and XLXSCLQD_JGCZBID=:pJGCZBID and XLXSCLQD_JGCZBBBID=:pJGCZBBBID");
|
SQL.Add(" and XLXSCLQD_JGCZBID=:pJGCZBID and XLXSCLQD_JGCZBBBID=:pJGCZBBBID");
|
||||||
@@ -5357,12 +5357,12 @@ namespace GThinking.N_XLXSBJ
|
|||||||
SQL.Add(" and isnull(XLJGCZBLM_CLQDL,' ')<>' '");
|
SQL.Add(" and isnull(XLJGCZBLM_CLQDL,' ')<>' '");
|
||||||
if (sLX == "QTCLSH")
|
if (sLX == "QTCLSH")
|
||||||
{
|
{
|
||||||
SQL.Add(" and XLJGCZBLM_XLCLZLID <> 'DTCL' and XLJGCZBLM_CZBLMMC not like '%Í%' and XLJGCZBLM_CZBLMMC not like '%ÂÁ%' ");
|
SQL.Add(" and isnull(XLJGCZBLM_XLCLZLID,' ') <> 'DTCL' and XLJGCZBLM_CZBLMMC not like '%Í%' and XLJGCZBLM_CZBLMMC not like '%ÂÁ%' ");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (sLX == "DTCLSH")
|
if (sLX == "DTCLSH")
|
||||||
{
|
{
|
||||||
SQL.Add(" and XLJGCZBLM_XLCLZLID = 'DTCL' and (XLJGCZBLM_CZBLMMC like '%Í%' or XLJGCZBLM_CZBLMMC like '%ÂÁ%') ");
|
SQL.Add(" and isnull(XLJGCZBLM_XLCLZLID,' ') = 'DTCL' and (XLJGCZBLM_CZBLMMC like '%Í%' or XLJGCZBLM_CZBLMMC like '%ÂÁ%') ");
|
||||||
}
|
}
|
||||||
SQL.Add(" order by XLJGCZBLM_CLQDL");
|
SQL.Add(" order by XLJGCZBLM_CLQDL");
|
||||||
SQL.ParamByName("pJGCZBID").Value = tmpJGCZBID;
|
SQL.ParamByName("pJGCZBID").Value = tmpJGCZBID;
|
||||||
@@ -6283,7 +6283,7 @@ namespace GThinking.N_XLXSBJ
|
|||||||
string sYZZFields_4 = "";
|
string sYZZFields_4 = "";
|
||||||
for (int i = 1; i <= 20; i++)
|
for (int i = 1; i <= 20; i++)
|
||||||
{
|
{
|
||||||
sYZZFields_4 += "XLXSJGBYZZ0_YZZ" + i.ToString().PadLeft(2, '0') + (i < 20 ? "," : "");
|
sYZZFields_4 += "XLXSJGBYZZ0_YZZ" + i.ToString().PadLeft(2, '0') + ",";
|
||||||
}
|
}
|
||||||
SQL.Add(" select isnull(XLXSCLQD_CLZL,0) as XLXSCLQD_CLZL,XLXSJGBYZZ0_JGBID as JGBID,XLXSJGBYZZ0_XH as XH," + sYZZFields_4 + " ");
|
SQL.Add(" select isnull(XLXSCLQD_CLZL,0) as XLXSCLQD_CLZL,XLXSJGBYZZ0_JGBID as JGBID,XLXSJGBYZZ0_XH as XH," + sYZZFields_4 + " ");
|
||||||
if (dicJGBTJYZ.Count > 0 || dicJGBFGQCPYZ.Count > 0)
|
if (dicJGBTJYZ.Count > 0 || dicJGBFGQCPYZ.Count > 0)
|
||||||
@@ -6740,14 +6740,16 @@ namespace GThinking.N_XLXSBJ
|
|||||||
SQL.Clear();
|
SQL.Clear();
|
||||||
SQL.Add(" merge into XLXSJGBMX tar ");
|
SQL.Add(" merge into XLXSJGBMX tar ");
|
||||||
SQL.Add(" using ( ");
|
SQL.Add(" using ( ");
|
||||||
SQL.Add("select XLXSCLQD_CLZL,JGBID,XH,XLXSJGBYZZ0_YZZ01,XLXSJGBYZZ0_YZZ02,XLXSJGBYZZ0_YZZ03,XLXSJGBYZZ0_YZZ04,XLXSJGBYZZ0_YZZ05,XLXSJGBYZZ0_YZZ06,XLXSJGBYZZ0_YZZ07,XLXSJGBYZZ0_YZZ08,XLXSJGBYZZ0_YZZ09,XLXSJGBYZZ0_YZZ10 ");
|
SQL.Add("select XLXSCLQD_CLZL,JGBID,XH,XLXSJGBYZZ0_YZZ01,XLXSJGBYZZ0_YZZ02,XLXSJGBYZZ0_YZZ03,XLXSJGBYZZ0_YZZ04,XLXSJGBYZZ0_YZZ05,XLXSJGBYZZ0_YZZ06,XLXSJGBYZZ0_YZZ07,XLXSJGBYZZ0_YZZ08,XLXSJGBYZZ0_YZZ09,XLXSJGBYZZ0_YZZ10, ");
|
||||||
|
SQL.Add(" XLXSJGBYZZ0_YZZ11,XLXSJGBYZZ0_YZZ12,XLXSJGBYZZ0_YZZ13,XLXSJGBYZZ0_YZZ14,XLXSJGBYZZ0_YZZ15,XLXSJGBYZZ0_YZZ16,XLXSJGBYZZ0_YZZ17,XLXSJGBYZZ0_YZZ18,XLXSJGBYZZ0_YZZ19,XLXSJGBYZZ0_YZZ20 ");
|
||||||
if (dicJGBTJYZ.Count > 0 || dicJGBFGQCPYZ.Count > 0)
|
if (dicJGBTJYZ.Count > 0 || dicJGBFGQCPYZ.Count > 0)
|
||||||
SQL.Add(",JSYCBZ");
|
SQL.Add(",JSYCBZ");
|
||||||
//if (dicJGBFGQCPYZ.Count > 0)
|
//if (dicJGBFGQCPYZ.Count > 0)
|
||||||
// SQL.Add(",JGBTJYZYCBZ");
|
// SQL.Add(",JGBTJYZYCBZ");
|
||||||
SQL.Add(" from ");
|
SQL.Add(" from ");
|
||||||
SQL.Add("(");
|
SQL.Add("(");
|
||||||
SQL.Add(" select isnull(XLXSCLQD_CLZL,0) as XLXSCLQD_CLZL,XLXSJGBYZZ0_JGBID as JGBID,XLXSJGBYZZ0_XH as XH,XLXSJGBYZZ0_YZZ01,XLXSJGBYZZ0_YZZ02,XLXSJGBYZZ0_YZZ03,XLXSJGBYZZ0_YZZ04,XLXSJGBYZZ0_YZZ05,XLXSJGBYZZ0_YZZ06,XLXSJGBYZZ0_YZZ07,XLXSJGBYZZ0_YZZ08,XLXSJGBYZZ0_YZZ09,XLXSJGBYZZ0_YZZ10 ");
|
SQL.Add(" select isnull(XLXSCLQD_CLZL,0) as XLXSCLQD_CLZL,XLXSJGBYZZ0_JGBID as JGBID,XLXSJGBYZZ0_XH as XH,XLXSJGBYZZ0_YZZ01,XLXSJGBYZZ0_YZZ02,XLXSJGBYZZ0_YZZ03,XLXSJGBYZZ0_YZZ04,XLXSJGBYZZ0_YZZ05,XLXSJGBYZZ0_YZZ06,XLXSJGBYZZ0_YZZ07,XLXSJGBYZZ0_YZZ08,XLXSJGBYZZ0_YZZ09,XLXSJGBYZZ0_YZZ10, ");
|
||||||
|
SQL.Add(" XLXSJGBYZZ0_YZZ11,XLXSJGBYZZ0_YZZ12,XLXSJGBYZZ0_YZZ13,XLXSJGBYZZ0_YZZ14,XLXSJGBYZZ0_YZZ15,XLXSJGBYZZ0_YZZ16,XLXSJGBYZZ0_YZZ17,XLXSJGBYZZ0_YZZ18,XLXSJGBYZZ0_YZZ19,XLXSJGBYZZ0_YZZ20 ");
|
||||||
if (dicJGBTJYZ.Count > 0 || dicJGBFGQCPYZ.Count > 0)
|
if (dicJGBTJYZ.Count > 0 || dicJGBFGQCPYZ.Count > 0)
|
||||||
{
|
{
|
||||||
SQL.Add(" ,case ");
|
SQL.Add(" ,case ");
|
||||||
@@ -8699,7 +8701,7 @@ namespace GThinking.N_XLXSBJ
|
|||||||
SQL.Add("left join XLXSBJXLGGTHB XLXSBJXLGGTHB_JGB10 on XLXSBJXLGGTHB_JGB10.XLXSBJXLGGTHB_XLGGID=XLXSJGBMX_XLGGID ");
|
SQL.Add("left join XLXSBJXLGGTHB XLXSBJXLGGTHB_JGB10 on XLXSBJXLGGTHB_JGB10.XLXSBJXLGGTHB_XLGGID=XLXSJGBMX_XLGGID ");
|
||||||
SQL.Add("left join XLGGB on XLGGB_XLGGID = isnull(XLXSBJXLGGTHB_JGB10.XLXSBJXLGGTHB_XLGGIDCH,' ') and XLGGB_XLGGJDGZ = isnull(XLXHB_XLGGJDGZ,'0') ");
|
SQL.Add("left join XLGGB on XLGGB_XLGGID = isnull(XLXSBJXLGGTHB_JGB10.XLXSBJXLGGTHB_XLGGIDCH,' ') and XLGGB_XLGGJDGZ = isnull(XLXHB_XLGGJDGZ,'0') ");
|
||||||
SQL.Add("left join XLDTJMZHB on XLDTJMZHB_DTJMZHID=XLGGB_DTJMZHID ");
|
SQL.Add("left join XLDTJMZHB on XLDTJMZHB_DTJMZHID=XLGGB_DTJMZHID ");
|
||||||
SQL.Add(" LEFT JOIN XLXSBJCPYS ON XLXSBJCPYS_XLJBXHID=XLXSJGBMX_XLXHID and XLXSBJCPYS_DYDJID=XLXSJGBMX_DYDJID and CONVERT(float,XLXSBJCPYS_XLYSID)=XLDTJMZHB_DTJM1 ");
|
SQL.Add(" LEFT JOIN XLXSBJCPYS ON XLXSBJCPYS_XLJBXHID=XLXSJGBMX_XLXHID and XLXSBJCPYS_DYDJID=XLXSJGBMX_DYDJID ");
|
||||||
if (!sJGCZBID.Trim().Equals(""))
|
if (!sJGCZBID.Trim().Equals(""))
|
||||||
{
|
{
|
||||||
SQL.Add(" left join XLXSCLQD on XLXSCLQD_XLXHID=XLXSJGBMX_XLXHID and XLXSCLQD_XLGGID=XLXSJGBMX_XLGGID and XLXSCLQD_DYDJID=XLXSJGBMX_DYDJID ");
|
SQL.Add(" left join XLXSCLQD on XLXSCLQD_XLXHID=XLXSJGBMX_XLXHID and XLXSCLQD_XLGGID=XLXSJGBMX_XLGGID and XLXSCLQD_DYDJID=XLXSJGBMX_DYDJID ");
|
||||||
@@ -8712,7 +8714,7 @@ namespace GThinking.N_XLXSBJ
|
|||||||
SQL.ParamByName("pmaxXH").Value = maxXH;
|
SQL.ParamByName("pmaxXH").Value = maxXH;
|
||||||
}
|
}
|
||||||
SQL.Add(" and XLXSJGBYZZC_JGBID=:pTJJGBID and XLXSJGBYZZC_YZID=:pYZID ");
|
SQL.Add(" and XLXSJGBYZZC_JGBID=:pTJJGBID and XLXSJGBYZZC_YZID=:pYZID ");
|
||||||
SQL.Add(" and XLXSBJCPYS_XXJGID =XLXSJGBYZZC_CPTX ");
|
SQL.Add(" and XLXSBJCPYS_XXJGID =XLXSJGBYZZC_CPTX and XLDTJMZHB_DTJM1=XLXSJGBYZZC_ZXJM ");
|
||||||
if (!sJGCZBID.Trim().Equals(""))
|
if (!sJGCZBID.Trim().Equals(""))
|
||||||
{
|
{
|
||||||
SQL.Add(" and XLXSCLQD_JGCZBID=:pJGCZBID and XLXSCLQD_JGCZBBBID=:pJGCZBBBID");
|
SQL.Add(" and XLXSCLQD_JGCZBID=:pJGCZBID and XLXSCLQD_JGCZBBBID=:pJGCZBBBID");
|
||||||
@@ -8885,8 +8887,10 @@ namespace GThinking.N_XLXSBJ
|
|||||||
|
|
||||||
string sCJGS = "";
|
string sCJGS = "";
|
||||||
string sMXBH = "";
|
string sMXBH = "";
|
||||||
|
string sBJFLID = "02";
|
||||||
BJFLXX flxx = XLBJDUtils.GetBJFLXX("02");
|
if (sJGBID == "26080009")
|
||||||
|
sBJFLID = "04";
|
||||||
|
BJFLXX flxx = XLBJDUtils.GetBJFLXX(sBJFLID);
|
||||||
|
|
||||||
if (!string.IsNullOrEmpty(flxx.XLXSBJFL_CJGS))
|
if (!string.IsNullOrEmpty(flxx.XLXSBJFL_CJGS))
|
||||||
{
|
{
|
||||||
@@ -8973,6 +8977,8 @@ namespace GThinking.N_XLXSBJ
|
|||||||
SQL.Add(" select XLXSJGBMX_JGBID,XLXSJGBMX_XH,XLXSJGBMX_HSJJ ");
|
SQL.Add(" select XLXSJGBMX_JGBID,XLXSJGBMX_XH,XLXSJGBMX_HSJJ ");
|
||||||
SQL.Add(" ,XLXSJGBYZZ0_YZZ01,XLXSJGBYZZ0_YZZ02,XLXSJGBYZZ0_YZZ03,XLXSJGBYZZ0_YZZ04,XLXSJGBYZZ0_YZZ05, ");
|
SQL.Add(" ,XLXSJGBYZZ0_YZZ01,XLXSJGBYZZ0_YZZ02,XLXSJGBYZZ0_YZZ03,XLXSJGBYZZ0_YZZ04,XLXSJGBYZZ0_YZZ05, ");
|
||||||
SQL.Add(" XLXSJGBYZZ0_YZZ06,XLXSJGBYZZ0_YZZ07,XLXSJGBYZZ0_YZZ08,XLXSJGBYZZ0_YZZ09,XLXSJGBYZZ0_YZZ10");
|
SQL.Add(" XLXSJGBYZZ0_YZZ06,XLXSJGBYZZ0_YZZ07,XLXSJGBYZZ0_YZZ08,XLXSJGBYZZ0_YZZ09,XLXSJGBYZZ0_YZZ10");
|
||||||
|
SQL.Add(" ,XLXSJGBYZZ0_YZZ11,XLXSJGBYZZ0_YZZ12,XLXSJGBYZZ0_YZZ13,XLXSJGBYZZ0_YZZ14,XLXSJGBYZZ0_YZZ15, ");
|
||||||
|
SQL.Add(" XLXSJGBYZZ0_YZZ16,XLXSJGBYZZ0_YZZ17,XLXSJGBYZZ0_YZZ18,XLXSJGBYZZ0_YZZ19,XLXSJGBYZZ0_YZZ20");
|
||||||
SQL.Add(" from XLXSJGBMX ");
|
SQL.Add(" from XLXSJGBMX ");
|
||||||
SQL.Add(" left join XLXSJGBYZZ0 on XLXSJGBYZZ0_JGBID = XLXSJGBMX_JGBID and XLXSJGBYZZ0_XH = XLXSJGBMX_XH ");
|
SQL.Add(" left join XLXSJGBYZZ0 on XLXSJGBYZZ0_JGBID = XLXSJGBMX_JGBID and XLXSJGBYZZ0_XH = XLXSJGBMX_XH ");
|
||||||
SQL.Add(" where XLXSJGBMX_JGBID=:pJGBID and XLXSJGBMX_XH>=:maxXH ");
|
SQL.Add(" where XLXSJGBMX_JGBID=:pJGBID and XLXSJGBMX_XH>=:maxXH ");
|
||||||
|
|||||||
@@ -25,10 +25,6 @@ CodeBehind="XLXHCPTXWHList.aspx.cs" Inherits="GThinking.N_XLXSBJ.XLXHCPTXWHList"
|
|||||||
<itemstyle width="150px"></itemstyle>
|
<itemstyle width="150px"></itemstyle>
|
||||||
<headerstyle width="150px"></headerstyle>
|
<headerstyle width="150px"></headerstyle>
|
||||||
</asp:BoundField>
|
</asp:BoundField>
|
||||||
<asp:BoundField HeaderText="主芯截面" DataField="XLXSBJCPYS_XLYSID">
|
|
||||||
<itemstyle width="150px"></itemstyle>
|
|
||||||
<headerstyle width="150px"></headerstyle>
|
|
||||||
</asp:BoundField>
|
|
||||||
<asp:BoundField HeaderText="电压等级" DataField="XLXSBJCPYS_DYDJID">
|
<asp:BoundField HeaderText="电压等级" DataField="XLXSBJCPYS_DYDJID">
|
||||||
<itemstyle width="150px"></itemstyle>
|
<itemstyle width="150px"></itemstyle>
|
||||||
<headerstyle width="150px"></headerstyle>
|
<headerstyle width="150px"></headerstyle>
|
||||||
@@ -40,8 +36,6 @@ CodeBehind="XLXHCPTXWHList.aspx.cs" Inherits="GThinking.N_XLXSBJ.XLXHCPTXWHList"
|
|||||||
</Columns>
|
</Columns>
|
||||||
<ColumnsEx>
|
<ColumnsEx>
|
||||||
<gtc:gtGridView_Column DataField="XLXSBJCPYS_XLJBXHID" EditType="etString" ShowHint="true">
|
<gtc:gtGridView_Column DataField="XLXSBJCPYS_XLJBXHID" EditType="etString" ShowHint="true">
|
||||||
</gtc:gtGridView_Column>
|
|
||||||
<gtc:gtGridView_Column DataField="XLXSBJCPYS_XLYSID" EditType="etString" ShowHint="true">
|
|
||||||
</gtc:gtGridView_Column>
|
</gtc:gtGridView_Column>
|
||||||
<gtc:gtGridView_Column DataField="XLXSBJCPYS_DYDJID" EditType="etString" ShowHint="true">
|
<gtc:gtGridView_Column DataField="XLXSBJCPYS_DYDJID" EditType="etString" ShowHint="true">
|
||||||
</gtc:gtGridView_Column>
|
</gtc:gtGridView_Column>
|
||||||
|
|||||||
@@ -76,11 +76,10 @@ namespace GThinking.N_XLXSBJ
|
|||||||
|
|
||||||
protected override void BeforeDelete(TDatabase db, ref bool ActionIsDone)
|
protected override void BeforeDelete(TDatabase db, ref bool ActionIsDone)
|
||||||
{
|
{
|
||||||
entity.EntityTable.DeleteSql = " delete from XLXSBJCPYS where XLXSBJCPYS_XLJBXHID=:XLXSBJCPYS_XLJBXHID and XLXSBJCPYS_DYDJID =:XLXSBJCPYS_DYDJID and XLXSBJCPYS_XXJGID =:XLXSBJCPYS_XXJGID and XLXSBJCPYS_XLYSID=:XLXSBJCPYS_XLYSID ";
|
entity.EntityTable.DeleteSql = " delete from XLXSBJCPYS where XLXSBJCPYS_XLJBXHID=:XLXSBJCPYS_XLJBXHID and XLXSBJCPYS_DYDJID =:XLXSBJCPYS_DYDJID and XLXSBJCPYS_XXJGID =:XLXSBJCPYS_XXJGID ";
|
||||||
entity.Param.Add("XLXSBJCPYS_XLJBXHID", this.ContentGrid.SelectedDataKey["XLXSBJCPYS_XLJBXHID"].ToString().Trim());
|
entity.Param.Add("XLXSBJCPYS_XLJBXHID", this.ContentGrid.SelectedDataKey["XLXSBJCPYS_XLJBXHID"].ToString().Trim());
|
||||||
entity.Param.Add("XLXSBJCPYS_DYDJID", this.ContentGrid.SelectedDataKey["XLXSBJCPYS_DYDJID"].ToString().Trim());
|
entity.Param.Add("XLXSBJCPYS_DYDJID", this.ContentGrid.SelectedDataKey["XLXSBJCPYS_DYDJID"].ToString().Trim());
|
||||||
entity.Param.Add("XLXSBJCPYS_XXJGID", this.ContentGrid.SelectedDataKey["XLXSBJCPYS_XXJGID"].ToString().Trim());
|
entity.Param.Add("XLXSBJCPYS_XXJGID", this.ContentGrid.SelectedDataKey["XLXSBJCPYS_XXJGID"].ToString().Trim());
|
||||||
entity.Param.Add("XLXSBJCPYS_XLYSID", this.ContentGrid.SelectedDataKey["XLXSBJCPYS_XLYSID"].ToString().Trim());
|
|
||||||
base.BeforeDelete(db, ref ActionIsDone);
|
base.BeforeDelete(db, ref ActionIsDone);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -91,7 +90,7 @@ namespace GThinking.N_XLXSBJ
|
|||||||
private string GetSql()
|
private string GetSql()
|
||||||
{
|
{
|
||||||
StringBuilder strSQL = new StringBuilder();
|
StringBuilder strSQL = new StringBuilder();
|
||||||
strSQL.AppendLine(" select XLXSBJCPYS_DYDJID, XLXSBJCPYS_XLJBXHID,XLXSBJCPYS_XXJGID,XLXSBJCPYS_XLYSID ");
|
strSQL.AppendLine(" select XLXSBJCPYS_DYDJID, XLXSBJCPYS_XLJBXHID,XLXSBJCPYS_XXJGID ");
|
||||||
strSQL.AppendLine(" from XLXSBJCPYS ");
|
strSQL.AppendLine(" from XLXSBJCPYS ");
|
||||||
strSQL.AppendLine(" where 1=1 ");
|
strSQL.AppendLine(" where 1=1 ");
|
||||||
|
|
||||||
@@ -100,7 +99,7 @@ namespace GThinking.N_XLXSBJ
|
|||||||
strSQL.AppendLine(" and XLXSBJCPYS_XLJBXHID = :pXLXHID ");
|
strSQL.AppendLine(" and XLXSBJCPYS_XLJBXHID = :pXLXHID ");
|
||||||
entity.Param.Add("pXLXHID", CurQueryEntity.FieldByName("XLXHID").Value.Trim());
|
entity.Param.Add("pXLXHID", CurQueryEntity.FieldByName("XLXHID").Value.Trim());
|
||||||
}
|
}
|
||||||
strSQL.AppendLine(" order by XLXSBJCPYS_XLJBXHID,XLXSBJCPYS_XLYSID,XLXSBJCPYS_DYDJID,XLXSBJCPYS_XXJGID ");
|
strSQL.AppendLine(" order by XLXSBJCPYS_XLJBXHID,XLXSBJCPYS_DYDJID,XLXSBJCPYS_XXJGID ");
|
||||||
return strSQL.ToString();
|
return strSQL.ToString();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+168
-27
@@ -1,4 +1,4 @@
|
|||||||
// 导入 h 函数
|
// 导入 h 函数
|
||||||
const { createApp, ref, reactive, onMounted, onUnmounted,nextTick, watch, h, computed } = Vue;
|
const { createApp, ref, reactive, onMounted, onUnmounted,nextTick, watch, h, computed } = Vue;
|
||||||
const { ElMessage, ElMessageBox, ElTableV2, ElCheckbox,ElLoading } = ElementPlus;
|
const { ElMessage, ElMessageBox, ElTableV2, ElCheckbox,ElLoading } = ElementPlus;
|
||||||
// 获取 URL 参数中的 BJDID
|
// 获取 URL 参数中的 BJDID
|
||||||
@@ -40,8 +40,10 @@ function logMappingDebug(stage, payload) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function getDefaultPasteFieldOrder() {
|
function getDefaultPasteFieldOrder() {
|
||||||
const defaultOrder = ['包号', '报价产品', '技术规范书ID', '计量单位', '数量'];
|
const defaultOrder = ['包号', '报价产品', '技术规范书ID', '计量单位', '数量',
|
||||||
const validFields = new Set(['包号', '报价产品', '技术规范书ID', '计量单位', '数量', '不导入']);
|
'原始产品', '备注', '外购', '产品报价限价', '报价金额限价'];
|
||||||
|
const validFields = new Set(['包号', '报价产品', '技术规范书ID', '计量单位', '数量', '不导入',
|
||||||
|
'原始产品', '备注', '外购', '产品报价限价', '报价金额限价']);
|
||||||
let rawValue = getControlValue('txtBJU059').trim();
|
let rawValue = getControlValue('txtBJU059').trim();
|
||||||
|
|
||||||
if (!rawValue) return defaultOrder;
|
if (!rawValue) return defaultOrder;
|
||||||
@@ -128,11 +130,16 @@ function forceApplyDefaultColumnMapping(columnFieldMapping, detectedColumnCount)
|
|||||||
{ value: '报价产品', label: '报价产品' },
|
{ value: '报价产品', label: '报价产品' },
|
||||||
{ value: '技术规范书ID', label: '技术规范书ID' },
|
{ value: '技术规范书ID', label: '技术规范书ID' },
|
||||||
{ value: '计量单位', label: '计量单位' },
|
{ value: '计量单位', label: '计量单位' },
|
||||||
{ value: '数量', label: '数量' }
|
{ value: '数量', label: '数量' },
|
||||||
|
{ value: '原始产品', label: '原始产品' },
|
||||||
|
{ value: '备注', label: '备注' },
|
||||||
|
{ value: '外购', label: '外购' },
|
||||||
|
{ value: '产品报价限价', label: '产品报价限价' },
|
||||||
|
{ value: '报价金额限价', label: '报价金额限价' }
|
||||||
];
|
];
|
||||||
|
|
||||||
const batchUpdateUseSelect = computed(() =>
|
const batchUpdateUseSelect = computed(() =>
|
||||||
batchUpdateType.value === 'standard' || batchUpdateType.value === 'voltage'
|
batchUpdateType.value === 'standard' || batchUpdateType.value === 'voltage' || batchUpdateType.value === 'purchase'
|
||||||
);
|
);
|
||||||
|
|
||||||
const visibleColumns = computed(() => {
|
const visibleColumns = computed(() => {
|
||||||
@@ -427,13 +434,18 @@ function forceApplyDefaultColumnMapping(columnFieldMapping, detectedColumnCount)
|
|||||||
'技术规范书ID': null,
|
'技术规范书ID': null,
|
||||||
'计量单位': null, // 新增
|
'计量单位': null, // 新增
|
||||||
'数量': null,
|
'数量': null,
|
||||||
|
'原始产品': null,
|
||||||
|
'备注': null,
|
||||||
|
'外购': null,
|
||||||
|
'产品报价限价': null,
|
||||||
|
'报价金额限价': null,
|
||||||
'型号': null,
|
'型号': null,
|
||||||
'电压等级': null,
|
'电压等级': null,
|
||||||
'标准': null,
|
'标准': null,
|
||||||
'规格': null,
|
'规格': null,
|
||||||
'等效': null,
|
'等效': null,
|
||||||
});
|
});
|
||||||
const tableColumns = ref(['包号','报价产品', '技术规范书ID','计量单位', '数量', '型号', '电压等级', '标准', '规格', '等效']);
|
const tableColumns = ref(['包号','报价产品', '技术规范书ID','计量单位', '数量', '原始产品', '备注', '外购', '产品报价限价', '报价金额限价', '型号', '电压等级', '标准', '规格', '等效']);
|
||||||
const importing = ref(false);
|
const importing = ref(false);
|
||||||
const importProgress = ref(0);
|
const importProgress = ref(0);
|
||||||
const totalRows = ref(0);
|
const totalRows = ref(0);
|
||||||
@@ -816,6 +828,44 @@ function forceApplyDefaultColumnMapping(columnFieldMapping, detectedColumnCount)
|
|||||||
title: '数量',
|
title: '数量',
|
||||||
width: 80,
|
width: 80,
|
||||||
align: 'left'
|
align: 'left'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
key: 'originalProduct',
|
||||||
|
dataKey: 'originalProduct',
|
||||||
|
title: '原始产品',
|
||||||
|
width: 120,
|
||||||
|
align: 'left'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
key: 'remark',
|
||||||
|
dataKey: 'remark',
|
||||||
|
title: '备注',
|
||||||
|
width: 120,
|
||||||
|
align: 'left'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
key: 'purchase',
|
||||||
|
dataKey: 'purchase',
|
||||||
|
title: '外购',
|
||||||
|
width: 60,
|
||||||
|
align: 'center',
|
||||||
|
cellRenderer: ({ rowData }) => {
|
||||||
|
return rowData.purchase === 'Y' ? '√' : '';
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
key: 'productPriceLimit',
|
||||||
|
dataKey: 'productPriceLimit',
|
||||||
|
title: '产品报价限价',
|
||||||
|
width: 110,
|
||||||
|
align: 'right'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
key: 'quoteAmountLimit',
|
||||||
|
dataKey: 'quoteAmountLimit',
|
||||||
|
title: '报价金额限价',
|
||||||
|
width: 110,
|
||||||
|
align: 'right'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: 'model',
|
key: 'model',
|
||||||
@@ -1021,6 +1071,11 @@ function forceApplyDefaultColumnMapping(columnFieldMapping, detectedColumnCount)
|
|||||||
const techSpecId= row.length > 2 ? row[2].trim() : ''; // 第三列为数量
|
const techSpecId= row.length > 2 ? row[2].trim() : ''; // 第三列为数量
|
||||||
const unit= row.length > 3 ? row[3].trim() : ''; // 第四列为包号
|
const unit= row.length > 3 ? row[3].trim() : ''; // 第四列为包号
|
||||||
const quantity = row.length > 4 ? row[4].trim() : ''; // 第五列为技术规范ID
|
const quantity = row.length > 4 ? row[4].trim() : ''; // 第五列为技术规范ID
|
||||||
|
const originalProduct = row.length > 5 ? row[5].trim() : '';
|
||||||
|
const remark = row.length > 6 ? row[6].trim() : '';
|
||||||
|
const purchase = row.length > 7 ? row[7].trim() : '';
|
||||||
|
const productPriceLimit = row.length > 8 ? row[8].trim() : '';
|
||||||
|
const quoteAmountLimit = row.length > 9 ? row[9].trim() : '';
|
||||||
|
|
||||||
// 创建XLJXMX对象
|
// 创建XLJXMX对象
|
||||||
itemsToInsert.push({
|
itemsToInsert.push({
|
||||||
@@ -1046,7 +1101,12 @@ function forceApplyDefaultColumnMapping(columnFieldMapping, detectedColumnCount)
|
|||||||
JLDW: unit, // 计量单位
|
JLDW: unit, // 计量单位
|
||||||
SL: quantity, // 数量
|
SL: quantity, // 数量
|
||||||
FBH: packageNumber, // 包号
|
FBH: packageNumber, // 包号
|
||||||
JSGFID: techSpecId // 技术规范ID
|
JSGFID: techSpecId, // 技术规范ID
|
||||||
|
YSCP: originalProduct,
|
||||||
|
BZ: remark,
|
||||||
|
WGBZ: purchase,
|
||||||
|
CPBJXJ: productPriceLimit,
|
||||||
|
BJJEXJ: quoteAmountLimit
|
||||||
});
|
});
|
||||||
|
|
||||||
parsedData.push({
|
parsedData.push({
|
||||||
@@ -1056,6 +1116,11 @@ function forceApplyDefaultColumnMapping(columnFieldMapping, detectedColumnCount)
|
|||||||
quantity: quantity,
|
quantity: quantity,
|
||||||
packageNumber: packageNumber, // 包号
|
packageNumber: packageNumber, // 包号
|
||||||
techSpecId: techSpecId, // 技术规范ID
|
techSpecId: techSpecId, // 技术规范ID
|
||||||
|
originalProduct: originalProduct,
|
||||||
|
remark: remark,
|
||||||
|
purchase: purchase,
|
||||||
|
productPriceLimit: productPriceLimit,
|
||||||
|
quoteAmountLimit: quoteAmountLimit,
|
||||||
model: '',
|
model: '',
|
||||||
voltage: '',
|
voltage: '',
|
||||||
standard: '',
|
standard: '',
|
||||||
@@ -1112,6 +1177,11 @@ function forceApplyDefaultColumnMapping(columnFieldMapping, detectedColumnCount)
|
|||||||
const techSpecId = getMappedValue(row, '技术规范书ID');
|
const techSpecId = getMappedValue(row, '技术规范书ID');
|
||||||
const unit = getMappedValue(row, '计量单位');
|
const unit = getMappedValue(row, '计量单位');
|
||||||
const quantity = getMappedValue(row, '数量');
|
const quantity = getMappedValue(row, '数量');
|
||||||
|
const originalProduct = getMappedValue(row, '原始产品');
|
||||||
|
const remark = getMappedValue(row, '备注');
|
||||||
|
const purchase = getMappedValue(row, '外购');
|
||||||
|
const productPriceLimit = getMappedValue(row, '产品报价限价');
|
||||||
|
const quoteAmountLimit = getMappedValue(row, '报价金额限价');
|
||||||
|
|
||||||
itemsToInsert.push({
|
itemsToInsert.push({
|
||||||
XLJXDJ: "XSBJ",
|
XLJXDJ: "XSBJ",
|
||||||
@@ -1136,7 +1206,12 @@ function forceApplyDefaultColumnMapping(columnFieldMapping, detectedColumnCount)
|
|||||||
JLDW: unit,
|
JLDW: unit,
|
||||||
SL: quantity,
|
SL: quantity,
|
||||||
FBH: packageNumber,
|
FBH: packageNumber,
|
||||||
JSGFID: techSpecId
|
JSGFID: techSpecId,
|
||||||
|
YSCP: originalProduct,
|
||||||
|
BZ: remark,
|
||||||
|
WGBZ: purchase,
|
||||||
|
CPBJXJ: productPriceLimit,
|
||||||
|
BJJEXJ: quoteAmountLimit
|
||||||
});
|
});
|
||||||
|
|
||||||
parsedData.push({
|
parsedData.push({
|
||||||
@@ -1146,6 +1221,11 @@ function forceApplyDefaultColumnMapping(columnFieldMapping, detectedColumnCount)
|
|||||||
quantity: quantity,
|
quantity: quantity,
|
||||||
packageNumber: packageNumber,
|
packageNumber: packageNumber,
|
||||||
techSpecId: techSpecId,
|
techSpecId: techSpecId,
|
||||||
|
originalProduct: originalProduct,
|
||||||
|
remark: remark,
|
||||||
|
purchase: purchase,
|
||||||
|
productPriceLimit: productPriceLimit,
|
||||||
|
quoteAmountLimit: quoteAmountLimit,
|
||||||
model: '',
|
model: '',
|
||||||
voltage: '',
|
voltage: '',
|
||||||
standard: '',
|
standard: '',
|
||||||
@@ -2131,6 +2211,11 @@ function forceApplyDefaultColumnMapping(columnFieldMapping, detectedColumnCount)
|
|||||||
importing.value = false;
|
importing.value = false;
|
||||||
canImport.value = false;
|
canImport.value = false;
|
||||||
|
|
||||||
|
// 重置文件输入框,避免再次选择相同文件时不触发change事件
|
||||||
|
if (fileInput.value) {
|
||||||
|
fileInput.value.value = '';
|
||||||
|
}
|
||||||
|
|
||||||
// 重置映射关系
|
// 重置映射关系
|
||||||
tableColumns.value.forEach(col => {
|
tableColumns.value.forEach(col => {
|
||||||
columnMapping[col] = null;
|
columnMapping[col] = null;
|
||||||
@@ -2162,6 +2247,11 @@ function forceApplyDefaultColumnMapping(columnFieldMapping, detectedColumnCount)
|
|||||||
excelFile.value = file;
|
excelFile.value = file;
|
||||||
errorMessage.value = '';
|
errorMessage.value = '';
|
||||||
|
|
||||||
|
// 读取文件后立即清空 input,避免再次选择相同文件时不触发 change 事件
|
||||||
|
if (fileInput.value) {
|
||||||
|
fileInput.value.value = '';
|
||||||
|
}
|
||||||
|
|
||||||
// 开始解析Excel
|
// 开始解析Excel
|
||||||
readExcelFile(file);
|
readExcelFile(file);
|
||||||
};
|
};
|
||||||
@@ -2295,7 +2385,14 @@ function forceApplyDefaultColumnMapping(columnFieldMapping, detectedColumnCount)
|
|||||||
WHSJ: "",
|
WHSJ: "",
|
||||||
DCZT: "N" ,
|
DCZT: "N" ,
|
||||||
JLDW: rowData['计量单位'] || "",
|
JLDW: rowData['计量单位'] || "",
|
||||||
SL: rowData['数量'] || ""
|
SL: rowData['数量'] || "",
|
||||||
|
YSCP: rowData['原始产品'] || "",
|
||||||
|
BZ: rowData['备注'] || "",
|
||||||
|
WGBZ: rowData['外购'] || "",
|
||||||
|
CPBJXJ: rowData['产品报价限价'] || "",
|
||||||
|
BJJEXJ: rowData['报价金额限价'] || "",
|
||||||
|
FBH: rowData['包号'] || "",
|
||||||
|
JSGFID: rowData['技术规范书id'] || ""
|
||||||
});
|
});
|
||||||
|
|
||||||
newTableData.push({
|
newTableData.push({
|
||||||
@@ -2303,10 +2400,17 @@ function forceApplyDefaultColumnMapping(columnFieldMapping, detectedColumnCount)
|
|||||||
product,
|
product,
|
||||||
unit: rowData['计量单位'] || '',
|
unit: rowData['计量单位'] || '',
|
||||||
quantity: rowData['数量'] || '',
|
quantity: rowData['数量'] || '',
|
||||||
|
originalProduct: rowData['原始产品'] || '',
|
||||||
|
remark: rowData['备注'] || '',
|
||||||
|
purchase: rowData['外购'] || '',
|
||||||
|
productPriceLimit: rowData['产品报价限价'] || '',
|
||||||
|
quoteAmountLimit: rowData['报价金额限价'] || '',
|
||||||
model: rowData['型号'] || '',
|
model: rowData['型号'] || '',
|
||||||
voltage: rowData['电压等级'] || '',
|
voltage: rowData['电压等级'] || '',
|
||||||
standard: rowData['标准'] || '',
|
standard: rowData['标准'] || '',
|
||||||
spec: rowData['规格'] || '',
|
spec: rowData['规格'] || '',
|
||||||
|
FBH: rowData['包号'] || "",
|
||||||
|
JSGFID: rowData['技术规范书id'] || "",
|
||||||
status: 'N',
|
status: 'N',
|
||||||
checked: false
|
checked: false
|
||||||
});
|
});
|
||||||
@@ -2327,6 +2431,10 @@ function forceApplyDefaultColumnMapping(columnFieldMapping, detectedColumnCount)
|
|||||||
importing.value = false;
|
importing.value = false;
|
||||||
successMessage.value = `成功导入${itemsToInsert.length}条产品数据`;
|
successMessage.value = `成功导入${itemsToInsert.length}条产品数据`;
|
||||||
ElMessage.success(`成功导入${itemsToInsert.length}条产品数据`);
|
ElMessage.success(`成功导入${itemsToInsert.length}条产品数据`);
|
||||||
|
await commonParse();
|
||||||
|
|
||||||
|
// 导入成功后关闭对话框
|
||||||
|
closeImportDialog();
|
||||||
} else {
|
} else {
|
||||||
importing.value = false;
|
importing.value = false;
|
||||||
errorMessage.value = `导入失败: ${result?.message || '未知错误'}`;
|
errorMessage.value = `导入失败: ${result?.message || '未知错误'}`;
|
||||||
@@ -2498,6 +2606,11 @@ function forceApplyDefaultColumnMapping(columnFieldMapping, detectedColumnCount)
|
|||||||
quantity: item.SL || '', // 新增
|
quantity: item.SL || '', // 新增
|
||||||
packageNumber:item.FBH, // 包号
|
packageNumber:item.FBH, // 包号
|
||||||
techSpecId:item.JSGFID, // 技术规范ID
|
techSpecId:item.JSGFID, // 技术规范ID
|
||||||
|
originalProduct: item.YSCP || '',
|
||||||
|
remark: item.BZ || '',
|
||||||
|
purchase: item.WGBZ || '',
|
||||||
|
productPriceLimit: item.CPBJXJ || '',
|
||||||
|
quoteAmountLimit: item.BJJEXJ || '',
|
||||||
|
|
||||||
model: item.JXXLXHID || item.XLXHID,
|
model: item.JXXLXHID || item.XLXHID,
|
||||||
XLXHID: item.XLXHID || '',
|
XLXHID: item.XLXHID || '',
|
||||||
@@ -2571,6 +2684,11 @@ function forceApplyDefaultColumnMapping(columnFieldMapping, detectedColumnCount)
|
|||||||
'技术规范ID',
|
'技术规范ID',
|
||||||
'计量单位',
|
'计量单位',
|
||||||
'数量',
|
'数量',
|
||||||
|
'原始产品',
|
||||||
|
'备注',
|
||||||
|
'外购',
|
||||||
|
'产品报价限价',
|
||||||
|
'报价金额限价',
|
||||||
'型号',
|
'型号',
|
||||||
'电压等级',
|
'电压等级',
|
||||||
'标准',
|
'标准',
|
||||||
@@ -2586,6 +2704,11 @@ function forceApplyDefaultColumnMapping(columnFieldMapping, detectedColumnCount)
|
|||||||
row.techSpecId ?? '',
|
row.techSpecId ?? '',
|
||||||
row.unit ?? '',
|
row.unit ?? '',
|
||||||
row.quantity ?? '',
|
row.quantity ?? '',
|
||||||
|
row.originalProduct ?? '',
|
||||||
|
row.remark ?? '',
|
||||||
|
row.purchase ?? '',
|
||||||
|
row.productPriceLimit ?? '',
|
||||||
|
row.quoteAmountLimit ?? '',
|
||||||
row.model ?? '',
|
row.model ?? '',
|
||||||
row.voltage ?? '',
|
row.voltage ?? '',
|
||||||
row.standard ?? '',
|
row.standard ?? '',
|
||||||
@@ -2603,6 +2726,11 @@ function forceApplyDefaultColumnMapping(columnFieldMapping, detectedColumnCount)
|
|||||||
{ wch: 18 }, // 技术规范ID
|
{ wch: 18 }, // 技术规范ID
|
||||||
{ wch: 10 }, // 计量单位
|
{ wch: 10 }, // 计量单位
|
||||||
{ wch: 10 }, // 数量
|
{ wch: 10 }, // 数量
|
||||||
|
{ wch: 14 }, // 原始产品
|
||||||
|
{ wch: 14 }, // 备注
|
||||||
|
{ wch: 8 }, // 外购
|
||||||
|
{ wch: 14 }, // 产品报价限价
|
||||||
|
{ wch: 14 }, // 报价金额限价
|
||||||
{ wch: 14 }, // 型号
|
{ wch: 14 }, // 型号
|
||||||
{ wch: 14 }, // 电压等级
|
{ wch: 14 }, // 电压等级
|
||||||
{ wch: 14 }, // 标准
|
{ wch: 14 }, // 标准
|
||||||
@@ -2660,19 +2788,18 @@ function forceApplyDefaultColumnMapping(columnFieldMapping, detectedColumnCount)
|
|||||||
selectedRowsCount.value = selectedRows.length;
|
selectedRowsCount.value = selectedRows.length;
|
||||||
hasSelectedRows.value = selectedRowsCount.value > 0;
|
hasSelectedRows.value = selectedRowsCount.value > 0;
|
||||||
};
|
};
|
||||||
|
|
||||||
// 加载批量调整线缆标准选项
|
// 加载批量调整线缆标准选项
|
||||||
const loadBatchStandardOptions = async () => {
|
const loadBatchStandardOptions = async (items) => {
|
||||||
try {
|
try {
|
||||||
GThinking.Web.AjaxServiceProxy.servicePath = 'S_XLXSBJ/102373012.ashx';
|
GThinking.Web.AjaxServiceProxy.servicePath = 'S_XLXSBJ/102373012.ashx';
|
||||||
const result = await new Promise((resolve, reject) => {
|
const result = await new Promise((resolve, reject) => {
|
||||||
GThinking.Web.AjaxServiceProxy.invoke(
|
GThinking.Web.AjaxServiceProxy.invoke(
|
||||||
'XLBZList',
|
'GetBatchXLBZList',
|
||||||
false,
|
false,
|
||||||
{},
|
{ items: items || [] },
|
||||||
(data) => resolve(data),
|
(data) => resolve(data),
|
||||||
(error) => reject(error),
|
(error) => reject(error),
|
||||||
"XLBZList_CallBack",
|
"GetBatchXLBZList_CallBack",
|
||||||
50000
|
50000
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
@@ -2688,27 +2815,26 @@ function forceApplyDefaultColumnMapping(columnFieldMapping, detectedColumnCount)
|
|||||||
ElMessage.error('加载线缆标准失败');
|
ElMessage.error('加载线缆标准失败');
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
// 加载批量调整电压等级选项
|
// 加载批量调整电压等级选项
|
||||||
const loadBatchVoltageOptions = async () => {
|
const loadBatchVoltageOptions = async (items) => {
|
||||||
try {
|
try {
|
||||||
GThinking.Web.AjaxServiceProxy.servicePath = 'S_XLXSBJ/102373012.ashx';
|
GThinking.Web.AjaxServiceProxy.servicePath = 'S_XLXSBJ/102373012.ashx';
|
||||||
const result = await new Promise((resolve, reject) => {
|
const result = await new Promise((resolve, reject) => {
|
||||||
GThinking.Web.AjaxServiceProxy.invoke(
|
GThinking.Web.AjaxServiceProxy.invoke(
|
||||||
'GetDYDJList',
|
'GetBatchDYDJList',
|
||||||
false,
|
false,
|
||||||
{},
|
{ items: items || [] },
|
||||||
(data) => resolve(data),
|
(data) => resolve(data),
|
||||||
(error) => reject(error),
|
(error) => reject(error),
|
||||||
"GetDYDJList_CallBack",
|
"GetBatchDYDJList_CallBack",
|
||||||
50000
|
50000
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
if (result) {
|
if (result) {
|
||||||
batchUpdateOptions.value = result.map(item => ({
|
batchUpdateOptions.value = result.map(item => ({
|
||||||
value: item,
|
value: (item || '').toString().replace(/\*+$/, '').trim(),
|
||||||
label: item
|
label: (item || '').toString()
|
||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
@@ -2744,7 +2870,6 @@ function forceApplyDefaultColumnMapping(columnFieldMapping, detectedColumnCount)
|
|||||||
console.error('加载标准名称映射失败:', error);
|
console.error('加载标准名称映射失败:', error);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
// 显示批量调整对话框
|
// 显示批量调整对话框
|
||||||
const showBatchUpdateDialog = async (type) => {
|
const showBatchUpdateDialog = async (type) => {
|
||||||
batchUpdateType.value = type;
|
batchUpdateType.value = type;
|
||||||
@@ -2752,17 +2877,25 @@ function forceApplyDefaultColumnMapping(columnFieldMapping, detectedColumnCount)
|
|||||||
batchUpdateOptions.value = [];
|
batchUpdateOptions.value = [];
|
||||||
batchUpdateFilterQuery.value = '';
|
batchUpdateFilterQuery.value = '';
|
||||||
updateSelectedRows();
|
updateSelectedRows();
|
||||||
|
const selectedRows = tableData.value.filter(row => row.selected);
|
||||||
|
const items = selectedRows.map(row => buildBatchUpdateItem(row));
|
||||||
|
|
||||||
if (type === 'standard') {
|
if (type === 'standard') {
|
||||||
batchUpdateTitle.value = '批量调整线缆标准';
|
batchUpdateTitle.value = '批量调整线缆标准';
|
||||||
await loadBatchStandardOptions();
|
await loadBatchStandardOptions(items);
|
||||||
} else if (type === 'voltage') {
|
} else if (type === 'voltage') {
|
||||||
batchUpdateTitle.value = '批量调整电压等级';
|
batchUpdateTitle.value = '批量调整电压等级';
|
||||||
await loadBatchVoltageOptions();
|
await loadBatchVoltageOptions(items);
|
||||||
} else if (type === 'model') {
|
} else if (type === 'model') {
|
||||||
batchUpdateTitle.value = '批量调整线缆型号';
|
batchUpdateTitle.value = '批量调整线缆型号';
|
||||||
} else if (type === 'spec') {
|
} else if (type === 'spec') {
|
||||||
batchUpdateTitle.value = '批量调整线缆规格';
|
batchUpdateTitle.value = '批量调整线缆规格';
|
||||||
|
} else if (type === 'purchase') {
|
||||||
|
batchUpdateTitle.value = '批量调整外购';
|
||||||
|
batchUpdateOptions.value = [
|
||||||
|
{ value: 'Y', label: '外购 (Y)' },
|
||||||
|
{ value: 'N', label: '不外购 (N)' }
|
||||||
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
batchUpdateDialogVisible.value = true;
|
batchUpdateDialogVisible.value = true;
|
||||||
@@ -2783,7 +2916,7 @@ function forceApplyDefaultColumnMapping(columnFieldMapping, detectedColumnCount)
|
|||||||
|
|
||||||
// 确认批量调整
|
// 确认批量调整
|
||||||
const confirmBatchUpdate = async () => {
|
const confirmBatchUpdate = async () => {
|
||||||
if (!batchUpdateValue.value.trim()) {
|
if (!batchUpdateValue.value.trim() && batchUpdateType.value !== 'purchase') {
|
||||||
ElMessage.warning(batchUpdateUseSelect.value ? '请选择调整值' : '请输入调整值');
|
ElMessage.warning(batchUpdateUseSelect.value ? '请选择调整值' : '请输入调整值');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@@ -2797,7 +2930,7 @@ function forceApplyDefaultColumnMapping(columnFieldMapping, detectedColumnCount)
|
|||||||
let updateValue = '';
|
let updateValue = '';
|
||||||
if (batchUpdateUseSelect.value) {
|
if (batchUpdateUseSelect.value) {
|
||||||
updateValue = resolveBatchUpdateSelectValue();
|
updateValue = resolveBatchUpdateSelectValue();
|
||||||
if (!updateValue) {
|
if (!updateValue && batchUpdateType.value !== 'purchase') {
|
||||||
ElMessage.warning(
|
ElMessage.warning(
|
||||||
batchUpdateType.value === 'standard'
|
batchUpdateType.value === 'standard'
|
||||||
? '请从下拉列表中选择有效的线缆标准'
|
? '请从下拉列表中选择有效的线缆标准'
|
||||||
@@ -2851,6 +2984,9 @@ function forceApplyDefaultColumnMapping(columnFieldMapping, detectedColumnCount)
|
|||||||
if (batchUpdateType.value === 'spec') {
|
if (batchUpdateType.value === 'spec') {
|
||||||
return { ...row, spec: updateValue, XLGGID: updateValue };
|
return { ...row, spec: updateValue, XLGGID: updateValue };
|
||||||
}
|
}
|
||||||
|
if (batchUpdateType.value === 'purchase') {
|
||||||
|
return { ...row, purchase: updateValue };
|
||||||
|
}
|
||||||
return row;
|
return row;
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -2909,7 +3045,12 @@ function forceApplyDefaultColumnMapping(columnFieldMapping, detectedColumnCount)
|
|||||||
JLDW: row.unit || "",
|
JLDW: row.unit || "",
|
||||||
SL: row.quantity || "",
|
SL: row.quantity || "",
|
||||||
FBH: row.packageNumber || "",
|
FBH: row.packageNumber || "",
|
||||||
JSGFID: row.techSpecId || ""
|
JSGFID: row.techSpecId || "",
|
||||||
|
YSCP: row.originalProduct || "",
|
||||||
|
BZ: row.remark || "",
|
||||||
|
WGBZ: row.purchase || "",
|
||||||
|
CPBJXJ: row.productPriceLimit || "",
|
||||||
|
BJJEXJ: row.quoteAmountLimit || ""
|
||||||
}));
|
}));
|
||||||
|
|
||||||
// 设置服务路径(确保正确)
|
// 设置服务路径(确保正确)
|
||||||
|
|||||||
Reference in New Issue
Block a user