最新
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
<%@ Page Language="C#" MasterPageFile="~/N_MODEL/Page/MasterSingleGrid.Master" AutoEventWireup="true"
|
<%@ Page Language="C#" MasterPageFile="~/N_MODEL/Page/MasterSingleGrid.Master" AutoEventWireup="true"
|
||||||
Codebehind="CLQDYZ_XJFYView.aspx.cs" Inherits="GThinking.N_XLXSBJ.CLQDYZ_XJFYView" Title="查看线径费用" %>
|
Codebehind="CLQDYZ_XJFYView.aspx.cs" Inherits="GThinking.N_XLXSBJ.CLQDYZ_XJFYView" Title="查看线径费用" %>
|
||||||
|
|
||||||
<%@ MasterType VirtualPath="~/N_MODEL/Page/MasterSingleGrid.Master" %>
|
<%@ MasterType VirtualPath="~/N_MODEL/Page/MasterSingleGrid.Master" %>
|
||||||
|
|||||||
@@ -162,14 +162,14 @@ namespace GThinking.N_XLXSBJ
|
|||||||
if (sCellValue.Equals(""))
|
if (sCellValue.Equals(""))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
int XH = 1;
|
||||||
SQL.Clear();
|
SQL.Clear();
|
||||||
SQL.Add(@" insert into XLXSBJCPYS(XLXSBJCPYS_CPYT, XLXSBJCPYS_XLJBXHID, 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_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_XXJGID").Value = sXLXHFJSX;
|
SQL.ParamByName("XLXSBJCPYS_XXJGID").Value = sXLXHFJSX;
|
||||||
SQL.ParamByName("XLXSBJCPYS_CPYT").Value = CMISproDataBase.GetMaxXH("DBERP", "XLXSBJCPYS", "XLXSBJCPYS_CPYT", string.Format(" XLXSBJCPYS_XLJBXHID='{0}' and XLXSBJCPYS_XXJGID='{1}' ",sXLXHID,sXLXHFJSX))+1;
|
SQL.ParamByName("XLXSBJCPYS_CPYT").Value = XH++;
|
||||||
SQL.ParamByName("XLXSBJCPYS_WHR").Value = tSession.UserName;
|
SQL.ParamByName("XLXSBJCPYS_WHR").Value = tSession.UserName;
|
||||||
SQL.ParamByName("XLXSBJCPYS_WHRID").Value = tSession.UserId;
|
SQL.ParamByName("XLXSBJCPYS_WHRID").Value = tSession.UserId;
|
||||||
SQL.ParamByName("XLXSBJCPYS_WHSJ").Value = DateTime.Now;
|
SQL.ParamByName("XLXSBJCPYS_WHSJ").Value = DateTime.Now;
|
||||||
|
|||||||
Binary file not shown.
+9
-7
@@ -9472,14 +9472,16 @@ namespace GThinking.N_XLXSBJ
|
|||||||
SQL.Add(" left join XLDTJMZHB on XLDTJMZHB_DTJMZHID=XLGGB_DTJMZHID ");
|
SQL.Add(" left join XLDTJMZHB on XLDTJMZHB_DTJMZHID=XLGGB_DTJMZHID ");
|
||||||
SQL.Add(" where XLXSBJDMX_BJDID=:pBJDID ");
|
SQL.Add(" where XLXSBJDMX_BJDID=:pBJDID ");
|
||||||
SQL.Add(" and exists(select 1 from V_XSBJJSJGB where V_XSBJJSJGB_ID=:pID and V_XSBJJSJGB_BJDID=:pBJDID and V_XSBJJSJGB_WGCPBZ<>'Y' and V_XSBJJSJGB_JGFBZ<>'Y' and V_XSBJJSJGB_BJDID=XLXSBJDMX_BJDID and V_XSBJJSJGB_BJDXH=XLXSBJDMX_XH ) ");
|
SQL.Add(" and exists(select 1 from V_XSBJJSJGB where V_XSBJJSJGB_ID=:pID and V_XSBJJSJGB_BJDID=:pBJDID and V_XSBJJSJGB_WGCPBZ<>'Y' and V_XSBJJSJGB_JGFBZ<>'Y' and V_XSBJJSJGB_BJDID=XLXSBJDMX_BJDID and V_XSBJJSJGB_BJDXH=XLXSBJDMX_XH ) ");
|
||||||
SQL.Add(" and XLXSBJDMX_JLDW in ('Ã×','M') ");
|
|
||||||
SQL.Add(" and ( ");
|
SQL.Add(" and ( ");
|
||||||
SQL.Add(" ( XLXSBJDMX_BJSL<=1000 and XLDTJMZHB_DTJM1<=35 and XLDTJMZHB_DTJM1>=10 ) or ");
|
SQL.Add(" XLXSBJDMX_JLDW not in ('Ã×','M') ");
|
||||||
SQL.Add(" ( XLXSBJDMX_BJSL<=200 and XLDTJMZHB_DTJM1<=120 and XLDTJMZHB_DTJM1>=50 ) or ");
|
SQL.Add(" or ( ");
|
||||||
SQL.Add(" ( XLXSBJDMX_BJSL<=150 and XLDTJMZHB_DTJM1<=630 and XLDTJMZHB_DTJM1>=150 ) or ");
|
SQL.Add(" XLXSBJDMX_JLDW in ('Ã×','M') ");
|
||||||
SQL.Add(" ( XLDTJMZHB_DTJM1 < 10 ) or ");
|
SQL.Add(" and not ( ");
|
||||||
SQL.Add(" ( XLDTJMZHB_DTJM1> 35 and XLDTJMZHB_DTJM1<50 ) or ");
|
SQL.Add(" ( XLXSBJDMX_BJSL > 1000 and XLDTJMZHB_DTJM1 between 10 and 35 ) ");
|
||||||
SQL.Add(" ( XLDTJMZHB_DTJM1> 120 and XLDTJMZHB_DTJM1< 150 ) or XLDTJMZHB_DTJM1> 630 ");
|
SQL.Add(" or ( XLXSBJDMX_BJSL > 200 and XLDTJMZHB_DTJM1 between 50 and 120 ) ");
|
||||||
|
SQL.Add(" or ( XLXSBJDMX_BJSL > 150 and XLDTJMZHB_DTJM1 between 150 and 630 ) ");
|
||||||
|
SQL.Add(" ) ");
|
||||||
|
SQL.Add(" ) ");
|
||||||
SQL.Add(" ) ");
|
SQL.Add(" ) ");
|
||||||
SQL.Add(" and " + CMISproDataBase.GetWhereEqual("XLXHB_DTCLID", sLcpList));
|
SQL.Add(" and " + CMISproDataBase.GetWhereEqual("XLXHB_DTCLID", sLcpList));
|
||||||
SQL.Add(" )sor on(XLXSBJDMX_BJDID=XLXSBJDJJYZ_BJDID and XLXSBJDMX_XH=XLXSBJDJJYZ_XH) ");
|
SQL.Add(" )sor on(XLXSBJDMX_BJDID=XLXSBJDJJYZ_BJDID and XLXSBJDMX_XH=XLXSBJDJJYZ_XH) ");
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user