| | |
| | | MessageBox.Show("å¼å§æ¶é´ä¸è½å¤§äºæªè³æ¶é´"); |
| | | return; |
| | | } |
| | | whereBuilder.Append(" and c.HMakeDate>''" + dateTimePicker1.Text+ "'' and c.HMakeDate<''" + dateTimePicker2.Text+" ''"); |
| | | if (!string.IsNullOrEmpty(txtHBillNo.Text)) |
| | | whereBuilder.Append(" and a.FBILLNO like ''%" + txtHBillNo.Text +"%''"); |
| | | if (!string.IsNullOrEmpty(textBox1.Text)) |
| | | whereBuilder.Append(" and e.FNUMBER like ''%"+ textBox1.Text +"%''"); |
| | | if (!string.IsNullOrEmpty(textBox2.Text)) |
| | | whereBuilder.Append(" and c.HMaterName like ''%"+ textBox2.Text +"%''"); |
| | | if (!string.IsNullOrEmpty(textBox3.Text)) |
| | | whereBuilder.Append(" and h.FDATAVALUE like ''%" + textBox3.Text + "%''"); |
| | | if (!string.IsNullOrEmpty(textBox7.Text)) |
| | | whereBuilder.Append(" and i.FDATAVALUE like ''%" + textBox7.Text + "%''"); |
| | | if (comboBox1.Text == "å·²æ£éª") |
| | | whereBuilder.Append(" and c.HMaterName is not null"); |
| | | else if(comboBox1.Text=="æªæ£éª") |
| | | whereBuilder.Append(" and c.HMaterName is null"); |
| | | var execSql = "exec "+ViewName+" '"+whereBuilder+"'"; |
| | | string sWhere = " '" + dateTimePicker1.Text+ "','" + dateTimePicker2.Text+"' " ; |
| | | sWhere = sWhere + " ,'" + txtHBillNo.Text + "'"; //åæ®å· |
| | | sWhere = sWhere + " ,'" + textBox1.Text +"'";//ç©æç¼ç |
| | | sWhere = sWhere + " ,'" + textBox2.Text + "'";//ç©æåç§° |
| | | sWhere = sWhere + " ,'" + textBox3.Text + "'";//å·¥èº |
| | | sWhere = sWhere + " ,'" + textBox7.Text + "'";//æè´¨ |
| | | sWhere = sWhere + " ,'" + comboBox1.Text + "'";//ç¶æ å·²æ£éª æªæ£éª å
¨é¨ |
| | | var execSql = "exec h_p_Sc_ICMOReportSum " + sWhere.ToString() ; |
| | | oWeb.Timeout = 300000; |
| | | DataSet DSet = oWeb.getDataSetBySQL(execSql, ViewName, ref DBUtility.ClsPub.sExeReturnInfo); |
| | | //çæé¦è¡æ é¢ |