条码生成、洗衣机条码生成界面增加按回车返回源单信息功能;洗衣机条码生成模块条码生成规则变更
5个文件已修改
440 ■■■■ 已修改文件
SCM/公用类/Cls_S_Xt_BaseBill.cs 55 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
SCM/条码打印/Gy_BarCodeBill.cs 86 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
SCM/条码打印/Gy_BarCodeBill.designer.cs 57 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
SCM/条码打印/Gy_BarCodeBill_XiYiJi.cs 193 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
SCM/条码打印/Gy_BarCodeBill_XiYiJi.designer.cs 49 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
SCM/¹«ÓÃÀà/Cls_S_Xt_BaseBill.cs
@@ -24,7 +24,8 @@
        public string sOrderSql2 = "";
        public string sKeyCol2 = "";
        public string sShowItemSql2 = "";
        public frmHlpBillList oFrm = new frmHlpBillList();
        public frmHlpBillList oFrm;
        //public frmHlpBillList oFrm = new frmHlpBillList();
        public List<DBUtility.BillSelect> oBillSelectColl = new List<DBUtility.BillSelect>();
        //public List<DBUtility.BillSelect_A3> oBillSelectColl2 = new List<DBUtility.BillSelect_A3>();
        // 
@@ -240,6 +241,7 @@
            tSQL = sWhere + sCondtion + sOrderSql;
            try
            {
                oFrm = new frmHlpBillList();
                oFrm.sPrimaryCol = sKeyCol;
                oFrm.Text = mvarReportTitle;
                oFrm.lblCaption.Text = mvarReportTitle;
@@ -280,6 +282,55 @@
            return true;
        }
        //根据源单号 æ¨¡æ‹ŸæŸ¥è¯¢æ•°æ®
        /// <summary>
        /// æ˜¾ç¤ºæ•°æ®
        /// </summary>
        /// <param name="sWhere">主SQL</param>
        /// <param name="sCondtion">过滤条件</param>
        /// <param name="sOrderSql">排序条件</param>
        /// <param name="sKeyCol">不可重复列</param>
        /// <returns></returns>
        public virtual bool RefreshBySourceBillNo(string sWhere)
        {
            string sErr = "";
            string tSQL;
            //ClsCN oCn = new ClsCN();
            tSQL = " select hmainid,hsubid,单据号 from " + ViewName + sWhere + sOrderSql;
            try
            {
                oWeb.Url = SCM.ClsPub1.WEBSURL;
                DataSet ds = oWeb.getDataSetBySQL(tSQL, ViewName, ref DBUtility.ClsPub.sExeReturnInfo);
                if (ds == null || ds.Tables[0].Rows.Count == 0)
                {
                    return false;
                }
                //返回数据到集合中
                oBillSelectColl.Clear();
                //循环 é€‰ä¸­è¡Œ
                for (int i = 0; i < ds.Tables[0].Rows.Count; i++)
                {
                    BillSelect oSelect = new BillSelect();
                    oSelect.BillNo = ClsPub.isStrNull(ds.Tables[0].Rows[i]["单据号"]);
                    oSelect.BillMainID = ClsPub.isLong(ds.Tables[0].Rows[i]["hmainid"]);
                    oSelect.BillSubID = ClsPub.isLong(ds.Tables[0].Rows[i]["hsubid"]);
                    oSelect.BillTitle = mvarReportTitle;
                    oSelect.BillType = mvarItemKey;
                    oBillSelectColl.Add(oSelect);
                }
                //
                if (oBillSelectColl.Count > 0)
                    return true;
                else
                    return false;
            }
            catch (Exception e)
            {
                sErr = e.Message;
            }
            return true;
        }
        //显示数据2
        /// <summary>
@@ -299,6 +350,7 @@
            tSQL = sWhere + sCondtion2 + sOrderSql2;
            try
            {
                oFrm = new frmHlpBillList();
                oFrm.sPrimaryCol = sKeyCol2;
                oFrm.Text = mvarReportTitle2;
                oFrm.lblCaption.Text = mvarReportTitle2;
@@ -448,6 +500,7 @@
            tSQL = sWhere + sCondtion + sOrderSql;
            try
            {
                oFrm = new frmHlpBillList();
                oFrm.sPrimaryCol = sKeyCol;
                oFrm.Text = mvarReportTitle;
                oFrm.lblCaption.Text = mvarReportTitle;
SCM/ÌõÂë´òÓ¡/Gy_BarCodeBill.cs
@@ -3478,5 +3478,91 @@
        }
        private void txtHSourceBillNo_KeyPress(object sender, KeyPressEventArgs e)
        {
            if (e.KeyChar == (char)Keys.Return)//回车带出源单信息
            {
                long sHOrgID = -1;
                string sWhere = "";
                sHOrgID = oWeb.get_ORGANIZATIONSIDByName(cmbHOrgID.Text);
                if (sHOrgID == -1)
                {
                    MessageBox.Show("选择组织有错误!");
                    return;
                }
                if (txtHSourceBillNo.Text.Length < 4)
                {
                    MessageBox.Show("请输入4位以上数据!");
                    return;
                }
                //根据源单类型 å’Œæºå•号 èŽ·å–ä¿¡æ¯
                if (cmbSourceBillType.Text.Trim() == "生产订单")
                {
                    SCM.Cls_S_IFCLD_ICMOList oIFCLD_ICMOList = new SCM.Cls_S_IFCLD_ICMOList();
                    if (oIFCLD_ICMOList.RefreshBySourceBillNo(" Where å•据号 like '%" + txtHSourceBillNo.Text + "' and HOrgID =" + sHOrgID.ToString()))  //选择原单
                    {
                        FillSelectData(oIFCLD_ICMOList.oBillSelectColl);
                        txtHSourceBillNo.Text = "";
                    }
                    else
                    {
                        MessageBox.Show("无查询到符合条件的源单信息!");
                        initGrid();
                        return;
                    }
                }
                else if (cmbSourceBillType.Text.Trim() == "收料通知单")
                {
                    SCM.Cls_S_IF_POInStockBillList oIF_POInStockBillList = new SCM.Cls_S_IF_POInStockBillList();
                    if (oIF_POInStockBillList.RefreshBySourceBillNo(" Where å•据号 like '%" + txtHSourceBillNo.Text + "' and HOrgID =" + sHOrgID.ToString()))  //选择原单
                    {
                        FillSelectData(oIF_POInStockBillList.oBillSelectColl);
                        txtHSourceBillNo.Text = "";
                    }
                    else
                    {
                        MessageBox.Show("无查询到符合条件的源单信息!");
                        initGrid();
                        return;
                    }
                }
                else if (cmbSourceBillType.Text.Trim() == "采购订单")
                {
                    SCM.Cls_S_IF_POOrderBillList oIF_POOrderBillList = new SCM.Cls_S_IF_POOrderBillList();
                    if (oIF_POOrderBillList.RefreshBySourceBillNo(" Where å•据号 like '%" + txtHSourceBillNo.Text + "' and HOrgID =" + sHOrgID.ToString()))  //选择原单
                    {
                        FillSelectData(oIF_POOrderBillList.oBillSelectColl);
                        txtHSourceBillNo.Text = "";
                    }
                    else
                    {
                        MessageBox.Show("无查询到符合条件的源单信息!");
                        initGrid();
                        return;
                    }
                }
                else if (cmbSourceBillType.Text.Trim() == "委外订单")
                {
                    SCM.Cls_S_IF_EntrustOrderBillList oIF_EntrustOrderBillList = new SCM.Cls_S_IF_EntrustOrderBillList();
                    if (oIF_EntrustOrderBillList.RefreshBySourceBillNo(" Where å•据号 like '%" + txtHSourceBillNo.Text + "' and HOrgID =" + sHOrgID.ToString()))  //选择原单
                    {
                        FillSelectData(oIF_EntrustOrderBillList.oBillSelectColl);
                        txtHSourceBillNo.Text = "";
                    }
                    else
                    {
                        MessageBox.Show("无查询到符合条件的源单信息!");
                        initGrid();
                        return;
                    }
                }
                else
                {
                }
            }
        }
    }
}
SCM/ÌõÂë´òÓ¡/Gy_BarCodeBill.designer.cs
@@ -33,6 +33,7 @@
            this.Tool = new System.Windows.Forms.ToolStrip();
            this.dy = new System.Windows.Forms.ToolStripButton();
            this.yl = new System.Windows.Forms.ToolStripButton();
            this.sdy = new System.Windows.Forms.ToolStripButton();
            this.toolStripSeparator2 = new System.Windows.Forms.ToolStripSeparator();
            this.spRow = new System.Windows.Forms.ToolStripButton();
            this.toolStripSeparator6 = new System.Windows.Forms.ToolStripSeparator();
@@ -68,7 +69,7 @@
            this.label1 = new System.Windows.Forms.Label();
            this.cmdHEmpID = new System.Windows.Forms.Button();
            this.cmdSourceBillNo = new System.Windows.Forms.Button();
            this.textBox2 = new System.Windows.Forms.TextBox();
            this.txtHSourceBillNo = new System.Windows.Forms.TextBox();
            this.label14 = new System.Windows.Forms.Label();
            this.cmbSourceBillType = new System.Windows.Forms.ComboBox();
            this.label10 = new System.Windows.Forms.Label();
@@ -106,7 +107,6 @@
            this.grdSub = new System.Windows.Forms.DataGridView();
            this.tabPage3 = new System.Windows.Forms.TabPage();
            this.grdList = new System.Windows.Forms.DataGridView();
            this.sdy = new System.Windows.Forms.ToolStripButton();
            this.Tool.SuspendLayout();
            this.P1.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(this.pic1)).BeginInit();
@@ -189,6 +189,20 @@
            this.yl.TextAlign = System.Drawing.ContentAlignment.BottomCenter;
            this.yl.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText;
            this.yl.Click += new System.EventHandler(this.yl_Click);
            //
            // sdy
            //
            this.sdy.AutoSize = false;
            this.sdy.Image = ((System.Drawing.Image)(resources.GetObject("sdy.Image")));
            this.sdy.ImageAlign = System.Drawing.ContentAlignment.BottomCenter;
            this.sdy.ImageScaling = System.Windows.Forms.ToolStripItemImageScaling.None;
            this.sdy.ImageTransparentColor = System.Drawing.Color.White;
            this.sdy.Name = "sdy";
            this.sdy.Size = new System.Drawing.Size(50, 47);
            this.sdy.Text = "试打印";
            this.sdy.TextAlign = System.Drawing.ContentAlignment.BottomCenter;
            this.sdy.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText;
            this.sdy.Click += new System.EventHandler(this.sdy_Click);
            // 
            // toolStripSeparator2
            // 
@@ -446,7 +460,7 @@
            this.gbUp.Controls.Add(this.label1);
            this.gbUp.Controls.Add(this.cmdHEmpID);
            this.gbUp.Controls.Add(this.cmdSourceBillNo);
            this.gbUp.Controls.Add(this.textBox2);
            this.gbUp.Controls.Add(this.txtHSourceBillNo);
            this.gbUp.Controls.Add(this.label14);
            this.gbUp.Controls.Add(this.cmbSourceBillType);
            this.gbUp.Controls.Add(this.label10);
@@ -479,7 +493,7 @@
            // 
            this.dtpHDate.Format = System.Windows.Forms.DateTimePickerFormat.Short;
            this.dtpHDate.Location = new System.Drawing.Point(676, 17);
            this.dtpHDate.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
            this.dtpHDate.Margin = new System.Windows.Forms.Padding(2);
            this.dtpHDate.Name = "dtpHDate";
            this.dtpHDate.Size = new System.Drawing.Size(188, 21);
            this.dtpHDate.TabIndex = 94;
@@ -555,13 +569,14 @@
            this.cmdSourceBillNo.UseVisualStyleBackColor = true;
            this.cmdSourceBillNo.Click += new System.EventHandler(this.cmdSourceBillNo_Click);
            // 
            // textBox2
            // txtHSourceBillNo
            // 
            this.textBox2.ImeMode = System.Windows.Forms.ImeMode.NoControl;
            this.textBox2.Location = new System.Drawing.Point(394, 46);
            this.textBox2.Name = "textBox2";
            this.textBox2.Size = new System.Drawing.Size(166, 21);
            this.textBox2.TabIndex = 41;
            this.txtHSourceBillNo.ImeMode = System.Windows.Forms.ImeMode.NoControl;
            this.txtHSourceBillNo.Location = new System.Drawing.Point(394, 46);
            this.txtHSourceBillNo.Name = "txtHSourceBillNo";
            this.txtHSourceBillNo.Size = new System.Drawing.Size(166, 21);
            this.txtHSourceBillNo.TabIndex = 41;
            this.txtHSourceBillNo.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.txtHSourceBillNo_KeyPress);
            // 
            // label14
            // 
@@ -918,7 +933,7 @@
            this.tabPage1.Controls.Add(this.grdMain);
            this.tabPage1.Location = new System.Drawing.Point(4, 22);
            this.tabPage1.Name = "tabPage1";
            this.tabPage1.Padding = new System.Windows.Forms.Padding(3, 3, 3, 3);
            this.tabPage1.Padding = new System.Windows.Forms.Padding(3);
            this.tabPage1.Size = new System.Drawing.Size(929, 343);
            this.tabPage1.TabIndex = 0;
            this.tabPage1.Text = "物料信息";
@@ -929,7 +944,7 @@
            this.tabPage2.Controls.Add(this.grdSub);
            this.tabPage2.Location = new System.Drawing.Point(4, 22);
            this.tabPage2.Name = "tabPage2";
            this.tabPage2.Padding = new System.Windows.Forms.Padding(3, 3, 3, 3);
            this.tabPage2.Padding = new System.Windows.Forms.Padding(3);
            this.tabPage2.Size = new System.Drawing.Size(929, 343);
            this.tabPage2.TabIndex = 1;
            this.tabPage2.Text = "条码信息";
@@ -958,7 +973,7 @@
            // 
            this.tabPage3.Controls.Add(this.grdList);
            this.tabPage3.Location = new System.Drawing.Point(4, 22);
            this.tabPage3.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
            this.tabPage3.Margin = new System.Windows.Forms.Padding(2);
            this.tabPage3.Name = "tabPage3";
            this.tabPage3.Size = new System.Drawing.Size(929, 343);
            this.tabPage3.TabIndex = 2;
@@ -981,20 +996,6 @@
            this.grdList.RowTemplate.Height = 23;
            this.grdList.Size = new System.Drawing.Size(929, 343);
            this.grdList.TabIndex = 46;
            //
            // sdy
            //
            this.sdy.AutoSize = false;
            this.sdy.Image = ((System.Drawing.Image)(resources.GetObject("sdy.Image")));
            this.sdy.ImageAlign = System.Drawing.ContentAlignment.BottomCenter;
            this.sdy.ImageScaling = System.Windows.Forms.ToolStripItemImageScaling.None;
            this.sdy.ImageTransparentColor = System.Drawing.Color.White;
            this.sdy.Name = "sdy";
            this.sdy.Size = new System.Drawing.Size(50, 47);
            this.sdy.Text = "试打印";
            this.sdy.TextAlign = System.Drawing.ContentAlignment.BottomCenter;
            this.sdy.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText;
            this.sdy.Click += new System.EventHandler(this.sdy_Click);
            // 
            // Gy_BarCodeBill
            // 
@@ -1080,7 +1081,7 @@
        private System.Windows.Forms.Label label10;
        private System.Windows.Forms.ComboBox cmbSourceBillType;
        private System.Windows.Forms.Button cmdSourceBillNo;
        private System.Windows.Forms.TextBox textBox2;
        private System.Windows.Forms.TextBox txtHSourceBillNo;
        private System.Windows.Forms.Label label14;
        private System.Windows.Forms.ToolStripButton tc;
        private System.Windows.Forms.ToolStripSeparator toolStripSeparator12;
SCM/ÌõÂë´òÓ¡/Gy_BarCodeBill_XiYiJi.cs
@@ -45,55 +45,56 @@
        public const Int16 HCusModelCol = 24;
        public const Int16 HBarCodePrefixCol = 25;
        public const Int16 HBarCodeISNCol = 26;
        public const Int16 HQtyCol = 27;
        public const Int16 HMinQtyCol = 28;
        public const Int16 HBQtyCol = 29;
        public const Int16 HLogoCol = 30;
        public const Int16 HDeptIDCol = 31;
        public const Int16 HDeptNumberCol = 32;
        public const Int16 HDeptNameCol = 33;
        public const Int16 HSourceIDCol = 34;
        public const Int16 HSourceNumberCol = 35;
        public const Int16 HSourceNameCol = 36;
        public const Int16 HDateCol = 37;
        public const Int16 HBeginDateCol = 38;
        public const Int16 HEndDateCol = 39;
        public const Int16 HSupIDCol = 40;
        public const Int16 HSupNumberCol = 41;
        public const Int16 HSupNameCol = 42;
        public const Int16 HCusIDCol = 43;
        public const Int16 HCusNumberCol = 44;
        public const Int16 HCusNameCol = 45;
        public const Int16 HCusTypeCol = 46;
        public const Int16 HSourceInterIDCol = 47;
        public const Int16 HSourceEntryIDCol = 48;
        public const Int16 HSourceBillNoCol = 49;
        public const Int16 HSourceBillTypeCol = 50;
        public const Int16 HInstructIDCol = 51;
        public const Int16 HInstructNoCol = 52;
        public const Int16 HSeOrderBillIDCol = 53;
        public const Int16 HSeOrderBillNoCol = 54;
        public const Int16 HCustomBatchNoCol = 55;
        public const Int16 HWhIDCol = 56;
        public const Int16 HWhNumberCol = 57;
        public const Int16 HWhNameCol = 58;
        public const Int16 HSPIDCol = 59;
        public const Int16 HSPNumberCol = 60;
        public const Int16 HSPNameCol = 61;
        public const Int16 HinitQtyCol = 62;
        public const Int16 HRemarkCol = 63;
        public const Int16 HPinfanBarCodeCol = 64;
        public const Int16 HMTONoCol = 65;
        public const Int16 HColorCol = 66;
        public const Int16 HPressModelCol = 67;
        public const Int16 HJiaYeCol = 68;
        public const Int16 HPackageSizeCol = 69;
        public const Int16 HJQtyCol = 70;
        public const Int16 HMQtyCol = 71;
        public const Int16 HGBBarCodeCol = 72;
        public const Int16 HJiaYeLXCol = 73;
        public const Int16 HJiaYeLCol = 74;
        public const Int16 POOrderBillNoCol = 75;
        public const Int16 HCustomCol = 27;
        public const Int16 HQtyCol = 28;
        public const Int16 HMinQtyCol = 29;
        public const Int16 HBQtyCol = 30;
        public const Int16 HLogoCol = 31;
        public const Int16 HDeptIDCol = 32;
        public const Int16 HDeptNumberCol = 33;
        public const Int16 HDeptNameCol = 34;
        public const Int16 HSourceIDCol = 35;
        public const Int16 HSourceNumberCol = 36;
        public const Int16 HSourceNameCol = 37;
        public const Int16 HDateCol = 38;
        public const Int16 HBeginDateCol = 39;
        public const Int16 HEndDateCol = 40;
        public const Int16 HSupIDCol = 41;
        public const Int16 HSupNumberCol = 42;
        public const Int16 HSupNameCol = 43;
        public const Int16 HCusIDCol = 44;
        public const Int16 HCusNumberCol = 45;
        public const Int16 HCusNameCol = 46;
        public const Int16 HCusTypeCol = 47;
        public const Int16 HSourceInterIDCol = 48;
        public const Int16 HSourceEntryIDCol = 49;
        public const Int16 HSourceBillNoCol = 50;
        public const Int16 HSourceBillTypeCol = 51;
        public const Int16 HInstructIDCol = 52;
        public const Int16 HInstructNoCol = 53;
        public const Int16 HSeOrderBillIDCol = 54;
        public const Int16 HSeOrderBillNoCol = 55;
        public const Int16 HCustomBatchNoCol = 56;
        public const Int16 HWhIDCol = 57;
        public const Int16 HWhNumberCol = 58;
        public const Int16 HWhNameCol = 59;
        public const Int16 HSPIDCol = 60;
        public const Int16 HSPNumberCol = 61;
        public const Int16 HSPNameCol = 62;
        public const Int16 HinitQtyCol = 63;
        public const Int16 HRemarkCol = 64;
        public const Int16 HPinfanBarCodeCol = 65;
        public const Int16 HMTONoCol = 66;
        public const Int16 HColorCol = 67;
        public const Int16 HPressModelCol = 68;
        public const Int16 HJiaYeCol = 69;
        public const Int16 HPackageSizeCol = 70;
        public const Int16 HJQtyCol = 71;
        public const Int16 HMQtyCol = 72;
        public const Int16 HGBBarCodeCol = 73;
        public const Int16 HJiaYeLXCol = 74;
        public const Int16 HJiaYeLCol = 75;
        public const Int16 POOrderBillNoCol = 76;
        public Int16 HSelectCol = 0;
        public Int16 HSno2Col = 1;
@@ -739,7 +740,7 @@
                            if (cmbHBarCodeType.Text == "唯一条码")
                            {
                                //条码编号 = æ¡ç å‰ç¼€ + æµæ°´å·
                                TM = sTMNumber + LSH2;
                                TM = sTMNumber + LSH2+ ClsPub.isStrNull(grdMain.Rows[j].Cells[HCustomCol].Value);
                            }
                            if (i + 1 > grdSub.Rows.Count)
@@ -1013,7 +1014,7 @@
        {
            grdMain.RowCount = 0;
            grdSub.RowCount = 0;
            grdMain.ColumnCount = 76;                       //总列数
            grdMain.ColumnCount = 77;                       //总列数
            ClsPub1.initGridFst(grdMain, this.Name);
            grdMain.Columns[HSnoCol].HeaderText = "序号";
            grdMain.Columns[HMainIDCol].HeaderText = "源单主ID";
@@ -1083,6 +1084,7 @@
            grdMain.Columns[POOrderBillNoCol].HeaderText = "采购订单号";
            grdMain.Columns[HBarCodePrefixCol].HeaderText = "条码前缀";
            grdMain.Columns[HBarCodeISNCol].HeaderText = "起始序号";
            grdMain.Columns[HCustomCol].HeaderText = "自定义字段";
            ////
            //格式化    éšè—åˆ—
            grdMain.Columns[HTagCol].Visible = false;
@@ -1170,6 +1172,7 @@
                                "," + HGBBarCodeCol.ToString() +
                                "," + HBarCodePrefixCol.ToString() +
                                "," + HBarCodeISNCol.ToString() +
                                "," + HCustomCol.ToString() +
                                "," + HRemarkCol.ToString();
            //设置合计列
            string sTotalCol = HQtyCol.ToString();
@@ -1866,6 +1869,7 @@
                                "," + HGBBarCodeCol.ToString() +
                                "," + HBarCodePrefixCol.ToString() +
                                "," + HBarCodeISNCol.ToString() +
                                "," + HCustomCol.ToString() +
                                "," + HMinQtyCol.ToString();
            grdMain.Columns[HBillNoCol].ReadOnly = true;
            //设置合计列
@@ -2481,9 +2485,92 @@
            oGy_BarCodeBill_SNO.ShowDialog();
        }
        private void txtHSourceBillNo_KeyPress(object sender, KeyPressEventArgs e)
        {
            if (e.KeyChar == (char)Keys.Return)//回车带出源单信息
            {
                long sHOrgID = -1;
                string sWhere = "";
                sHOrgID = oWeb.get_ORGANIZATIONSIDByName(cmbHOrgID.Text);
                if (sHOrgID == -1)
                {
                    MessageBox.Show("选择组织有错误!");
                    return;
                }
                if (txtHSourceBillNo.Text.Length < 4)
                {
                    MessageBox.Show("请输入4位以上数据!");
                    return;
                }
                //根据源单类型 å’Œæºå•号 èŽ·å–ä¿¡æ¯
                if (cmbSourceBillType.Text.Trim() == "生产订单")
                {
                    SCM.Cls_S_IFCLD_ICMOList oIFCLD_ICMOList = new SCM.Cls_S_IFCLD_ICMOList();
                    if (oIFCLD_ICMOList.RefreshBySourceBillNo(" Where å•据号 like '%" + txtHSourceBillNo.Text + "' and HOrgID =" + sHOrgID.ToString()))  //选择原单
                    {
                        FillSelectData(oIFCLD_ICMOList.oBillSelectColl);
                        txtHSourceBillNo.Text = "";
                    }
                    else
                    {
                        MessageBox.Show("无查询到符合条件的源单信息!");
                        initGrid();
                        return;
                    }
                }
                else if (cmbSourceBillType.Text.Trim() == "收料通知单")
                {
                    SCM.Cls_S_IF_POInStockBillList oIF_POInStockBillList = new SCM.Cls_S_IF_POInStockBillList();
                    if (oIF_POInStockBillList.RefreshBySourceBillNo(" Where å•据号 like '%" + txtHSourceBillNo.Text + "' and HOrgID =" + sHOrgID.ToString()))  //选择原单
                    {
                        FillSelectData(oIF_POInStockBillList.oBillSelectColl);
                        txtHSourceBillNo.Text = "";
                    }
                    else
                    {
                        MessageBox.Show("无查询到符合条件的源单信息!");
                        initGrid();
                        return;
                    }
                }
                else if (cmbSourceBillType.Text.Trim() == "采购订单")
                {
                    SCM.Cls_S_IF_POOrderBillList oIF_POOrderBillList = new SCM.Cls_S_IF_POOrderBillList();
                    if (oIF_POOrderBillList.RefreshBySourceBillNo(" Where å•据号 like '%" + txtHSourceBillNo.Text + "' and HOrgID =" + sHOrgID.ToString()))  //选择原单
                    {
                        FillSelectData(oIF_POOrderBillList.oBillSelectColl);
                        txtHSourceBillNo.Text = "";
                    }
                    else
                    {
                        MessageBox.Show("无查询到符合条件的源单信息!");
                        initGrid();
                        return;
                    }
                }
                else if (cmbSourceBillType.Text.Trim() == "委外订单")
                {
                    SCM.Cls_S_IF_EntrustOrderBillList oIF_EntrustOrderBillList = new SCM.Cls_S_IF_EntrustOrderBillList();
                    if (oIF_EntrustOrderBillList.RefreshBySourceBillNo(" Where å•据号 like '%" + txtHSourceBillNo.Text + "' and HOrgID =" + sHOrgID.ToString()))  //选择原单
                    {
                        FillSelectData(oIF_EntrustOrderBillList.oBillSelectColl);
                        txtHSourceBillNo.Text = "";
                    }
                    else
                    {
                        MessageBox.Show("无查询到符合条件的源单信息!");
                        initGrid();
                        return;
                    }
                }
                else
                {
                }
            }
        }
    }
}
SCM/ÌõÂë´òÓ¡/Gy_BarCodeBill_XiYiJi.designer.cs
@@ -33,6 +33,7 @@
            this.Tool = new System.Windows.Forms.ToolStrip();
            this.dy = new System.Windows.Forms.ToolStripButton();
            this.yl = new System.Windows.Forms.ToolStripButton();
            this.sdy = new System.Windows.Forms.ToolStripButton();
            this.toolStripSeparator2 = new System.Windows.Forms.ToolStripSeparator();
            this.spRow = new System.Windows.Forms.ToolStripButton();
            this.toolStripSeparator6 = new System.Windows.Forms.ToolStripSeparator();
@@ -66,7 +67,7 @@
            this.label1 = new System.Windows.Forms.Label();
            this.cmdHEmpID = new System.Windows.Forms.Button();
            this.cmdSourceBillNo = new System.Windows.Forms.Button();
            this.textBox2 = new System.Windows.Forms.TextBox();
            this.txtHSourceBillNo = new System.Windows.Forms.TextBox();
            this.label14 = new System.Windows.Forms.Label();
            this.cmbSourceBillType = new System.Windows.Forms.ComboBox();
            this.label10 = new System.Windows.Forms.Label();
@@ -104,7 +105,6 @@
            this.grdSub = new System.Windows.Forms.DataGridView();
            this.tabPage3 = new System.Windows.Forms.TabPage();
            this.grdList = new System.Windows.Forms.DataGridView();
            this.sdy = new System.Windows.Forms.ToolStripButton();
            this.Tool.SuspendLayout();
            this.P1.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(this.pic1)).BeginInit();
@@ -187,6 +187,20 @@
            this.yl.TextAlign = System.Drawing.ContentAlignment.BottomCenter;
            this.yl.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText;
            this.yl.Click += new System.EventHandler(this.yl_Click);
            //
            // sdy
            //
            this.sdy.AutoSize = false;
            this.sdy.Image = ((System.Drawing.Image)(resources.GetObject("sdy.Image")));
            this.sdy.ImageAlign = System.Drawing.ContentAlignment.BottomCenter;
            this.sdy.ImageScaling = System.Windows.Forms.ToolStripItemImageScaling.None;
            this.sdy.ImageTransparentColor = System.Drawing.Color.White;
            this.sdy.Name = "sdy";
            this.sdy.Size = new System.Drawing.Size(50, 47);
            this.sdy.Text = "试打印";
            this.sdy.TextAlign = System.Drawing.ContentAlignment.BottomCenter;
            this.sdy.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText;
            this.sdy.Click += new System.EventHandler(this.sdy_Click);
            // 
            // toolStripSeparator2
            // 
@@ -442,7 +456,7 @@
            this.gbUp.Controls.Add(this.label1);
            this.gbUp.Controls.Add(this.cmdHEmpID);
            this.gbUp.Controls.Add(this.cmdSourceBillNo);
            this.gbUp.Controls.Add(this.textBox2);
            this.gbUp.Controls.Add(this.txtHSourceBillNo);
            this.gbUp.Controls.Add(this.label14);
            this.gbUp.Controls.Add(this.cmbSourceBillType);
            this.gbUp.Controls.Add(this.label10);
@@ -532,13 +546,14 @@
            this.cmdSourceBillNo.UseVisualStyleBackColor = true;
            this.cmdSourceBillNo.Click += new System.EventHandler(this.cmdSourceBillNo_Click);
            // 
            // textBox2
            // txtHSourceBillNo
            // 
            this.textBox2.ImeMode = System.Windows.Forms.ImeMode.NoControl;
            this.textBox2.Location = new System.Drawing.Point(394, 46);
            this.textBox2.Name = "textBox2";
            this.textBox2.Size = new System.Drawing.Size(166, 21);
            this.textBox2.TabIndex = 41;
            this.txtHSourceBillNo.ImeMode = System.Windows.Forms.ImeMode.NoControl;
            this.txtHSourceBillNo.Location = new System.Drawing.Point(394, 46);
            this.txtHSourceBillNo.Name = "txtHSourceBillNo";
            this.txtHSourceBillNo.Size = new System.Drawing.Size(166, 21);
            this.txtHSourceBillNo.TabIndex = 41;
            this.txtHSourceBillNo.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.txtHSourceBillNo_KeyPress);
            // 
            // label14
            // 
@@ -959,20 +974,6 @@
            this.grdList.Size = new System.Drawing.Size(929, 343);
            this.grdList.TabIndex = 46;
            // 
            // sdy
            //
            this.sdy.AutoSize = false;
            this.sdy.Image = ((System.Drawing.Image)(resources.GetObject("sdy.Image")));
            this.sdy.ImageAlign = System.Drawing.ContentAlignment.BottomCenter;
            this.sdy.ImageScaling = System.Windows.Forms.ToolStripItemImageScaling.None;
            this.sdy.ImageTransparentColor = System.Drawing.Color.White;
            this.sdy.Name = "sdy";
            this.sdy.Size = new System.Drawing.Size(50, 47);
            this.sdy.Text = "试打印";
            this.sdy.TextAlign = System.Drawing.ContentAlignment.BottomCenter;
            this.sdy.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText;
            this.sdy.Click += new System.EventHandler(this.sdy_Click);
            //
            // Gy_BarCodeBill_XiYiJi
            // 
            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
@@ -1057,7 +1058,7 @@
        private System.Windows.Forms.Label label10;
        private System.Windows.Forms.ComboBox cmbSourceBillType;
        private System.Windows.Forms.Button cmdSourceBillNo;
        private System.Windows.Forms.TextBox textBox2;
        private System.Windows.Forms.TextBox txtHSourceBillNo;
        private System.Windows.Forms.Label label14;
        private System.Windows.Forms.ToolStripButton tc;
        private System.Windows.Forms.ToolStripSeparator toolStripSeparator12;