예제 #1
0
        private void WorkTrackShiftOrder_Load(object sender, EventArgs e)
        {
            GetProduct();
            if (string.IsNullOrEmpty(_lid))
            {
                SetPanelVlaue("", "btnLast");
            }
            else
            {
                SetPanelVlaue(_lid);
            }

            lblTitleMain.btnFirst.Click += btnFirst_Click;
            lblTitleMain.btnNext.Click  += btnFirst_Click;
            lblTitleMain.btnPre.Click   += btnFirst_Click;
            lblTitleMain.btnLast.Click  += btnFirst_Click;

            DllWorkPrintLabel.GetTemplet("班次制单模板", ref _cCaption, ref _cPrinter, ref _cTempletFileName);

            DllWorkPrintLabel.GetTemplet("原料标签", ref _RmcCaption, ref _RmcPrinter, ref _RmcTempletFileName);

            biEditPrinter.Caption = _cPrinter;
            biEditTemplet.Caption = _cCaption;

            biRmTemplet.Caption = _RmcCaption;
            biRmPrinter.Caption = _RmcPrinter;

            rm_ProduceDetailTableAdapter.Connection.ConnectionString = Properties.Settings.Default.BCon;
            bomDetailTableAdapter.Connection.ConnectionString        = Properties.Settings.Default.BCon;
        }
예제 #2
0
        private void WorkProPrintLabel_Load(object sender, EventArgs e)
        {
            GetRawMaterial();


            if (string.IsNullOrEmpty(_lid))
            {
                SetPanelVlaue("", "btnLast");
            }
            else
            {
                SetPanelVlaue(_lid);
            }

            lblTitleMain.btnFirst.Click += btnFirst_Click;
            lblTitleMain.btnNext.Click  += btnFirst_Click;
            lblTitleMain.btnPre.Click   += btnFirst_Click;
            lblTitleMain.btnLast.Click  += btnFirst_Click;

            DllWorkPrintLabel.GetTemplet("产成品标签", ref _cCaption, ref _cPrinter, ref _cTempletFileName);

            biEditPrinter.Caption = _cPrinter;
            biEditTemplet.Caption = _cCaption;

            //初始化表格功能控件
            tsgfMain.FormId   = Name.GetHashCode().ToString(CultureInfo.CurrentCulture);
            tsgfMain.FormName = Text;
            tsgfMain.Constr   = BaseStructure.WmsCon;
            tsgfMain.GetGridStyle(tsgfMain.FormId);
        }
예제 #3
0
        private void WorkTrackProductLabelPrint_Load(object sender, EventArgs e)
        {
            if (string.IsNullOrEmpty(_lid))
            {
                SetPanelVlaue("", "btnLast");
            }
            else
            {
                SetPanelVlaue(_lid);
            }

            lblTitleMain.btnFirst.Click += btnFirst_Click;
            lblTitleMain.btnNext.Click  += btnFirst_Click;
            lblTitleMain.btnPre.Click   += btnFirst_Click;
            lblTitleMain.btnLast.Click  += btnFirst_Click;

            DllWorkPrintLabel.GetTemplet("产成品标签", ref _cCaption, ref _cPrinter, ref _cTempletFileName);
            _cPrinter             = Properties.Settings.Default.localprinter;
            biEditPrinter.Caption = _cPrinter;
            biEditTemplet.Caption = _cCaption;

            //初始化表格功能控件
            tsgfMain.FormId   = Name.GetHashCode().ToString(CultureInfo.CurrentCulture);
            tsgfMain.FormName = Text;
            tsgfMain.Constr   = BaseStructure.WmsCon;
            tsgfMain.GetGridStyle(tsgfMain.FormId);

            productLabelTableAdapter.Connection.ConnectionString = Properties.Settings.Default.BCon;
            shiftDetailTableAdapter.Connection.ConnectionString  = Properties.Settings.Default.BCon;
            bomDetailTableAdapter.Connection.ConnectionString    = Properties.Settings.Default.BCon;
        }
예제 #4
0
        private void WorkStockPlaceLabelPrint_Load(object sender, EventArgs e)
        {
            // TODO:  这行代码将数据加载到表“dataKis.t_StockPlace”中。您可以根据需要移动或删除它。
            t_StockPlaceTableAdapter.Connection.ConnectionString = Properties.Settings.Default.KisCon;
            t_StockPlaceTableAdapter.Fill(this.dataKis.t_StockPlace);

            DllWorkPrintLabel.GetTemplet("仓位标签", ref _cCaption, ref _cPrinter, ref _cTempletFileName);

            biEditPrinter.Caption = _cPrinter;
            biEditTemplet.Caption = _cCaption;
        }
예제 #5
0
        private void Rpt_ProPrintRecord_Load(object sender, EventArgs e)
        {
            pageListMain.Constr = BaseStructure.WmsCon;
            pageListMain.GetRecord();
            //初始化表格功能控件
            tsgfMain.FormId   = Name.GetHashCode().ToString(CultureInfo.CurrentCulture);
            tsgfMain.FormName = Text;
            tsgfMain.Constr   = BaseStructure.WmsCon;
            tsgfMain.GetGridStyle(tsgfMain.FormId);

            DllWorkPrintLabel.GetTemplet("产成品标签", ref _cCaption, ref _cPrinter, ref _cTempletFileName);
        }
예제 #6
0
 private void WorkTempBox_Load(object sender, EventArgs e)
 {
     DllWorkPrintLabel.GetTemplet("件数标签", ref _cCaption, ref _cPrinter, ref _cTempletFileName);
     biPrinter.Caption = _cPrinter;
     biTemplet.Caption = _cCaption;
 }