条码生成模块增加档案列表页签,条码生成完毕后,根据主内码加载条码信息到档案列表页签,并根据此页签进行打印。
2个文件已修改
105 ■■■■ 已修改文件
SCM/条码打印/Gy_BarCodeBill.cs 57 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
SCM/条码打印/Gy_BarCodeBill.designer.cs 48 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
SCM/ÌõÂë´òÓ¡/Gy_BarCodeBill.cs
@@ -236,6 +236,7 @@
            txtHUpDater.Text = "";
            txtHUpDateDate.Text = "";
            initGrid();
            grdList.DataSource = null;
        }
        //保存列宽
@@ -243,6 +244,7 @@
        {
            DBUtility.Xt_BaseBillFun.SaveGrid(grdMain, this.Name);
            DBUtility.Xt_BaseBillFun.SaveGrid(grdSub, this.Name + "grdSub");
            DBUtility.Xt_BaseBillFun.SaveGrid(grdList, this.Name + "grdList");
        }
        //默认列宽
@@ -250,6 +252,7 @@
        {
            DBUtility.Xt_BaseBillFun.DefaultGridView(grdMain, this.Name);
            DBUtility.Xt_BaseBillFun.DefaultGridView(grdSub, this.Name + "grdSub");
            DBUtility.Xt_BaseBillFun.DefaultGridView(grdList, this.Name + "grdList");
        }
        //增行按钮  
@@ -268,6 +271,7 @@
        private void bc_Click(object sender, EventArgs e)
        {
            this.Sub_SaveBill();
            Display();
        }
        //重置按纽
@@ -1971,7 +1975,7 @@
            }
            else if (CampanyName == "四维尔") //系统参数  å®¢æˆ·å®šåˆ¶åŒ–名称
            {
                grdMain.Columns[HBatchNoCol].Visible = false;
                //grdMain.Columns[HBatchNoCol].Visible = false;
                grdMain.Columns[HPinfanCol].Visible = true;
                grdMain.Columns[HAuxPropNumberCol].Visible = true;
                grdMain.Columns[HAuxPropNameCol].Visible = true;
@@ -2198,8 +2202,40 @@
            DBUtility.Xt_BaseBillFun.GetGrid(grdMain, this.Name);
            DBUtility.Xt_BaseBillFun.GetGrid(grdSub, this.Name + "grdSub");
            grdSub.SelectionMode = DataGridViewSelectionMode.FullRowSelect;                     //选行模式
            ////
            ClsPub1.initGridList(grdList, this.Name + "grdList");
            ////
        }
        private void Display()
        {
            DataSet DSet;
            //过滤条件
            //if (HInterID <= 0)
            //{
            //    return;
            //}
            //
            DSet = oWeb.getDataSetBySQL("select * from h_v_IF_BarCodeBillList Where HinterID=" + HInterID.ToString(), "h_v_IF_BarCodeBillList", ref DBUtility.ClsPub.sExeReturnInfo);
            //生成首行标题
            if (DSet == null)
            {
                MessageBox.Show("没有返回任何结果,条码不存在!" + DBUtility.ClsPub.sExeReturnInfo);
                return;
            }
            //
            grdList.DataSource = DSet.Tables[0].DefaultView;
            //冻结
            int FrCol = 0;
            string s = "是";
            ClsPub1.DisplayGrid(grdList, this.Name + "grdList", s, FrCol);
            //画线
            //GraphLine();
            //
        }
        //公式重算
        private void RowCount(int sRow, int sTag)
        {
@@ -3112,14 +3148,14 @@
        private void Sub_SetReport(string sOpenTmp)
        {
            //判断行数
            for (int i = 0; i < grdSub.Rows.Count; i++)
            for (int i = 0; i < grdList.Rows.Count; i++)
            {
                grdSub.Rows[i].Cells[0].Value = "*";
                //grdSub.Rows[i].Cells[0].Value = "";
                grdList.Rows[i].Cells[0].Value = "*";
                //grdList.Rows[i].Cells[0].Value = "";
            }
            //for (int i = 0; i < grdSub.SelectedRows.Count; i++)
            //for (int i = 0; i < grdList.SelectedRows.Count; i++)
            //{
            //    grdSub.Rows[grdSub.SelectedRows[i].Index].Cells[0].Value = "*";
            //    grdList.Rows[grdList.SelectedRows[i].Index].Cells[0].Value = "*";
            //}
            //
            Report = new GridppReport();
@@ -3151,12 +3187,17 @@
            }
        }
        private Int32 Fun_GetCol(string sCol)
        {
            return DBUtility.Xt_BaseBillFun.Fun_GetCol(sCol, grdList);
        }
        private void ReportFetchRecordByDataTable()
        {
            try
            {
                DataTable ds = new DataTable();
                BLL.Utility.FillRecordToReport(Report, grdSub, ds, HMaterIDCol);
                //BLL.Utility.FillRecordToReport(Report, grdSub, ds, HMaterIDCol);
                SCM.Utility.FillRecordToReport(Report, grdList, ds, Fun_GetCol("选择"));
            }
            catch (Exception e)
            {
SCM/ÌõÂë´òÓ¡/Gy_BarCodeBill.designer.cs
@@ -103,6 +103,8 @@
            this.tabPage1 = new System.Windows.Forms.TabPage();
            this.tabPage2 = new System.Windows.Forms.TabPage();
            this.grdSub = new System.Windows.Forms.DataGridView();
            this.tabPage3 = new System.Windows.Forms.TabPage();
            this.grdList = new System.Windows.Forms.DataGridView();
            this.Tool.SuspendLayout();
            this.P1.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(this.pic1)).BeginInit();
@@ -115,6 +117,8 @@
            this.tabPage1.SuspendLayout();
            this.tabPage2.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(this.grdSub)).BeginInit();
            this.tabPage3.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(this.grdList)).BeginInit();
            this.SuspendLayout();
            // 
            // Tool
@@ -851,13 +855,13 @@
            this.grdMain.RowTemplate.Height = 23;
            this.grdMain.Size = new System.Drawing.Size(923, 262);
            this.grdMain.TabIndex = 44;
            this.grdMain.Scroll += new System.Windows.Forms.ScrollEventHandler(this.grdMain_Scroll);
            this.grdMain.CellBeginEdit += new System.Windows.Forms.DataGridViewCellCancelEventHandler(this.grdMain_CellBeginEdit);
            this.grdMain.CellLeave += new System.Windows.Forms.DataGridViewCellEventHandler(this.grdMain_CellLeave);
            this.grdMain.CellEndEdit += new System.Windows.Forms.DataGridViewCellEventHandler(this.grdMain_CellEndEdit);
            this.grdMain.RowHeadersWidthChanged += new System.EventHandler(this.grdMain_RowHeadersWidthChanged);
            this.grdMain.EditingControlShowing += new System.Windows.Forms.DataGridViewEditingControlShowingEventHandler(this.grdMain_EditingControlShowing);
            this.grdMain.CellBeginEdit += new System.Windows.Forms.DataGridViewCellCancelEventHandler(this.grdMain_CellBeginEdit);
            this.grdMain.CellEndEdit += new System.Windows.Forms.DataGridViewCellEventHandler(this.grdMain_CellEndEdit);
            this.grdMain.CellLeave += new System.Windows.Forms.DataGridViewCellEventHandler(this.grdMain_CellLeave);
            this.grdMain.ColumnWidthChanged += new System.Windows.Forms.DataGridViewColumnEventHandler(this.grdMain_ColumnWidthChanged);
            this.grdMain.EditingControlShowing += new System.Windows.Forms.DataGridViewEditingControlShowingEventHandler(this.grdMain_EditingControlShowing);
            this.grdMain.Scroll += new System.Windows.Forms.ScrollEventHandler(this.grdMain_Scroll);
            // 
            // grdSum
            // 
@@ -888,6 +892,7 @@
            // 
            this.tabControl1.Controls.Add(this.tabPage1);
            this.tabControl1.Controls.Add(this.tabPage2);
            this.tabControl1.Controls.Add(this.tabPage3);
            this.tabControl1.Dock = System.Windows.Forms.DockStyle.Fill;
            this.tabControl1.Location = new System.Drawing.Point(41, 194);
            this.tabControl1.Name = "tabControl1";
@@ -936,6 +941,33 @@
            this.grdSub.CellBeginEdit += new System.Windows.Forms.DataGridViewCellCancelEventHandler(this.grdSub_CellBeginEdit);
            this.grdSub.CellEndEdit += new System.Windows.Forms.DataGridViewCellEventHandler(this.grdSub_CellEndEdit);
            // 
            // tabPage3
            //
            this.tabPage3.Controls.Add(this.grdList);
            this.tabPage3.Location = new System.Drawing.Point(4, 22);
            this.tabPage3.Name = "tabPage3";
            this.tabPage3.Size = new System.Drawing.Size(929, 268);
            this.tabPage3.TabIndex = 2;
            this.tabPage3.Text = "档案列表";
            this.tabPage3.UseVisualStyleBackColor = true;
            //
            // grdList
            //
            this.grdList.AllowUserToAddRows = false;
            this.grdList.AllowUserToDeleteRows = false;
            this.grdList.BackgroundColor = System.Drawing.Color.WhiteSmoke;
            this.grdList.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
            this.grdList.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
            this.grdList.Dock = System.Windows.Forms.DockStyle.Fill;
            this.grdList.ImeMode = System.Windows.Forms.ImeMode.NoControl;
            this.grdList.Location = new System.Drawing.Point(0, 0);
            this.grdList.Name = "grdList";
            this.grdList.ReadOnly = true;
            this.grdList.RowHeadersWidth = 30;
            this.grdList.RowTemplate.Height = 23;
            this.grdList.Size = new System.Drawing.Size(929, 268);
            this.grdList.TabIndex = 46;
            //
            // Gy_BarCodeBill
            // 
            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
@@ -955,9 +987,9 @@
            this.Name = "Gy_BarCodeBill";
            this.Text = "单据编辑";
            this.WindowState = System.Windows.Forms.FormWindowState.Maximized;
            this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.Gy_BarCodeBill_FormClosing);
            this.Load += new System.EventHandler(this.Gy_BarCodeBill_Load);
            this.Paint += new System.Windows.Forms.PaintEventHandler(this.Gy_BarCodeBill_Paint);
            this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.Gy_BarCodeBill_FormClosing);
            this.Resize += new System.EventHandler(this.Gy_BarCodeBill_Resize);
            this.Tool.ResumeLayout(false);
            this.Tool.PerformLayout();
@@ -975,6 +1007,8 @@
            this.tabPage1.ResumeLayout(false);
            this.tabPage2.ResumeLayout(false);
            ((System.ComponentModel.ISupportInitialize)(this.grdSub)).EndInit();
            this.tabPage3.ResumeLayout(false);
            ((System.ComponentModel.ISupportInitialize)(this.grdList)).EndInit();
            this.ResumeLayout(false);
        }
@@ -1054,5 +1088,7 @@
        private System.Windows.Forms.ToolStripButton spRow;
        private System.Windows.Forms.ToolStripSeparator toolStripSeparator6;
        private System.Windows.Forms.CheckBox chkAddModel;
        private System.Windows.Forms.TabPage tabPage3;
        private System.Windows.Forms.DataGridView grdList;
    }
}