移交尾项加查询条件
This commit is contained in:
		
							parent
							
								
									5030ef836e
								
							
						
					
					
						commit
						d2a9080bfd
					
				| 
						 | 
				
			
			@ -21,6 +21,7 @@
 | 
			
		|||
                    <Toolbars>
 | 
			
		||||
                        <f:Toolbar ID="ToolSearch" Position="Top" runat="server" ToolbarAlign="Left">
 | 
			
		||||
                            <Items>
 | 
			
		||||
                                <f:TextBox runat="server" ID="txtNo" Label="No" LabelWidth="80px" LabelAlign="Right" Width="180px"></f:TextBox>
 | 
			
		||||
                                <f:TextBox runat="server" ID="txtSystem_No" Label="System No" LabelWidth="100px" LabelAlign="Right" Width="180px"></f:TextBox>
 | 
			
		||||
                                <%--<f:TextBox runat="server" ID="txtSub_Sys_No" Label="Turnover System Code" LabelWidth="180px" LabelAlign="Right"></f:TextBox>--%>
 | 
			
		||||
                                <f:DropDownList ID="drpTurnoverSystemCode" runat="server" Label="Turnover System Code" AutoPostBack="true" AutoSelectFirstItem="false" EnableMultiSelect="true" EnableCheckBoxSelect="true"  LabelWidth="180px">
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -46,9 +46,7 @@ namespace FineUIPro.Web.Transfer
 | 
			
		|||
 | 
			
		||||
        public DataTable DataSql()
 | 
			
		||||
        {
 | 
			
		||||
            string strSql = @"select * 
 | 
			
		||||
                            ,(CASE isnull(IsEng,0) WHEN 1 THEN 'Y' ELSE 'N' END) IsEngStr
 | 
			
		||||
                            ,IsMatI IsMatIStr
 | 
			
		||||
            string strSql = @"select * ,(CASE isnull(IsEng,0) WHEN 1 THEN 'Y' ELSE 'N' END) IsEngStr ,IsMatI IsMatIStr
 | 
			
		||||
                            from Transfer_PunchlistFrom
 | 
			
		||||
                            where ProjectId = @ProjectId";
 | 
			
		||||
            List<SqlParameter> listStr = new List<SqlParameter>();
 | 
			
		||||
| 
						 | 
				
			
			@ -59,6 +57,11 @@ namespace FineUIPro.Web.Transfer
 | 
			
		|||
                strSql += " AND Raised_By = @Raised_By";
 | 
			
		||||
                listStr.Add(new SqlParameter("@Raised_By", this.txtRaised_By.Text.Trim()));
 | 
			
		||||
            }
 | 
			
		||||
            if (!string.IsNullOrEmpty(this.txtNo.Text.Trim()))
 | 
			
		||||
            {
 | 
			
		||||
                strSql += " AND Num_NO = @No";
 | 
			
		||||
                listStr.Add(new SqlParameter("@No", this.txtNo.Text.Trim()));
 | 
			
		||||
            }
 | 
			
		||||
            if (!string.IsNullOrEmpty(this.txtSystem_No.Text.Trim()))
 | 
			
		||||
            {
 | 
			
		||||
                strSql += " AND System_No like @System_No";
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -59,6 +59,15 @@ namespace FineUIPro.Web.Transfer
 | 
			
		|||
        /// </remarks>
 | 
			
		||||
        protected global::FineUIPro.Toolbar ToolSearch;
 | 
			
		||||
 | 
			
		||||
        /// <summary>
 | 
			
		||||
        /// txtNo 控件。
 | 
			
		||||
        /// </summary>
 | 
			
		||||
        /// <remarks>
 | 
			
		||||
        /// 自动生成的字段。
 | 
			
		||||
        /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
 | 
			
		||||
        /// </remarks>
 | 
			
		||||
        protected global::FineUIPro.TextBox txtNo;
 | 
			
		||||
 | 
			
		||||
        /// <summary>
 | 
			
		||||
        /// txtSystem_No 控件。
 | 
			
		||||
        /// </summary>
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue