public TempoRegiSiharaiTouroku(Base.Client.FrmMainForm.EOperationMode mode, D_Sales_Entity dse1, D_StorePayment_Entity dspe1, EPSON_TM30.CashDrawerOpen cdo, string Up, string Lp) { this.Up = Up; this.Lp = Lp; this.cdo = cdo; InitializeComponent(); ckmShop_Label7.Visible = false; lblZan.Visible = false; ShowCloseMessage = false; OperationMode = mode; dse = dse1; dspe = dspe1; }
private void TempoShukkaNyuuryoku_Load(object sender, EventArgs e) { try { InProgramID = "TempoShukkaNyuuryoku"; StartProgram(); btnClose.Text = "終了"; SetRequireField(); AddHandler(); //コマンドライン引数を配列で取得する string[] cmds = System.Environment.GetCommandLineArgs(); if (cmds.Length - 1 > (int)ECmdLine.PcID) { mStoreCD = cmds[(int)ECmdLine.PcID + 1]; // lblCustomerNo.Text = cmds[(int)ECmdLine.PcID + 2]; //会員番号 mJuchuNo = cmds[(int)ECmdLine.PcID + 3]; //受注番号 if (cmds.Length - 1 >= (int)ECmdLine.PcID + 4) { mUriageNo = cmds[(int)ECmdLine.PcID + 4]; //売上番号 } lblSalesNO.Text = mUriageNo; } //[M_Customer_Select] M_Customer_Entity mce = new M_Customer_Entity { CustomerCD = lblCustomerNo.Text, ChangeDate = bbl.GetDate() }; Customer_BL sbl = new Customer_BL(); bool ret = sbl.M_Customer_Select(mce); if (ret) { lblCusName.Text = mce.CustomerName; if (mce.BillingType == "1") { btnSeikyu.Text = "即請求"; } else { btnSeikyu.Text = "締請求"; } } else { lblCusName.Text = ""; } //Parameter.売上番号=Nullの場合 新規モード(Insert Mode) if (string.IsNullOrWhiteSpace(mUriageNo)) { OperationMode = FrmMainForm.EOperationMode.INSERT; lblSalesNO.Text = ""; //画面転送表00に従って、画面情報を表示 DispFromJuchuNO(mJuchuNo); } else { //削除モード(Delete Mode) OperationMode = FrmMainForm.EOperationMode.DELETE; BtnP_text = "売上取消"; //画面転送表03に従って、画面情報を表示 DispFromJuchuNO(mJuchuNo, mUriageNo); } txtJanCD.Focus(); } catch (Exception ex) { //エラー時共通処理 MessageBox.Show(ex.Message); EndSec(); } }