雅琪诺MES智能条码管理系统
jingh
2021-06-29 eff6aa470f6956299b640bb1f5d0e7b1662c8b70
检验汇总表修改
2个文件已修改
28 ■■■■■ 已修改文件
SCM/公用类/ClsPub1.cs 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
SCM/单据资料/Gy_BarCodeMain.cs 24 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
SCM/¹«ÓÃÀà/ClsPub1.cs
@@ -149,13 +149,13 @@
            //ClsSqlHelperMaster oCn = new ClsSqlHelperMaster();
            string LastNumber1 = "";
            string LastNumber2 = "";
            string BbNumber = "";
            string BbNumber = "";
            string sTableName = "";
            //得到更新表
            sTableName = ClsIni.ReadIni("UpDateCounts", "sTableName", Pub_Class.ClsPub.AppPath + @"\" + "UpDatePrj.ini");
            if (sTableName == "没有找到!" || sTableName == "")
            {
                sTableName = "HX_UPdateForWInce";
                sTableName = "HX_UPdateForWMS";
            }
            //得到最新版本
            try
SCM/µ¥¾Ý×ÊÁÏ/Gy_BarCodeMain.cs
@@ -45,22 +45,14 @@
                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);
            //生成首行标题