Пример #1
0
 private void inventoryInitial()
 {
     dgvInventory.Rows.Clear();
     APConfig.loadPhrase(ddlInventoryDealer, PhraseCategory.案件負責人.ToString(), true);
     APConfig.loadEnum <InventoryStatus>(ddlInventoryStatus, "", true);
     txtInventoryCode.Text            = string.Empty;
     txtInventoryName.Text            = string.Empty;
     ckbInventoryINDTTM.Checked       = false;
     ckbInventoryOUTDTTM.Checked      = false;
     ckbInventoryPOSTDTTM.Checked     = false;
     ckbInventoryRETURNDTTM.Checked   = false;
     ddlInventoryDealer.SelectedIndex = 0;
     ddlInventoryStatus.SelectedIndex = 0;
     dpkInventoryINSDTTM.Value        = DateTime.Today;
     dpkInventoryINEDTTM.Value        = DateTime.Today;
     dpkInventoryOUTEDTTM.Value       = DateTime.Today;
     dpkInventoryOUTSDTTM.Value       = DateTime.Today;
     dpkInventoryRETURNSDTTM.Value    = DateTime.Today;
     dpkInventoryRETURNEDTTM.Value    = DateTime.Today;
     dpkInventoryPOSTSDTTM.Value      = DateTime.Today;
     dpkInventoryPOSTEDTTM.Value      = DateTime.Today;
     lblInventoryINAMT.Text           = "0 元";
     lblInventoryOUTAMT.Text          = "0 元";
     lblInventoryPOSTAMT.Text         = "0 元";
     lblInventoryRETURNAMT.Text       = "0 元";
     lblInventoryTotal.Text           = "0";
     ddlInventoryPage.Items.Clear();
 }
Пример #2
0
 private void saleInitial()
 {
     dgvSale.Rows.Clear();
     APConfig.loadPhrase(ddlSaleDealer, PhraseCategory.案件負責人.ToString(), true);
     APConfig.loadPhrase(ddlSaleType, PhraseCategory.收入類別.ToString(), true);
     txtSaleItem.Text            = string.Empty;
     txtSaleMain.Text            = string.Empty;
     txtSaleName.Text            = string.Empty;
     txtSaleComment.Text         = string.Empty;
     ddlSaleDealer.SelectedIndex = 0;
     ddlSaleStatus.SelectedIndex = 0;
     ddlSaleType.SelectedIndex   = 0;
     ddlSaleType.Items.Add("銷貨淨值");
     ckbSaleModifyDTTM.Checked = false;
     ckbSaleDealDTTM.Checked   = false;
     dpkSaleDealEDTTM.Value    = DateTime.Today;
     dpkSaleDealSDTTM.Value    = DateTime.Today;
     //dpkSaleInsertEDTTM.Value = DateTime.Today;
     //dpkSaleInsertSDTTM.Value = DateTime.Today;
     dpkSaleModifySDTTM.Value = DateTime.Today;
     dpkSaleModifyEDTTM.Value = DateTime.Today;
     lblSaleTotal.Text        = "0";
     lblSaleTotalAmount.Text  = "0 元";
     ddlSalePage.Items.Clear();
 }
Пример #3
0
 public InventoryExportEdit(mode pmode, string pserno = "")
 {
     InitializeComponent();
     APConfig.loadPhrase(ddlDealer, PhraseCategory.案件負責人.ToString());
     serno = pserno;
     mode  = pmode;
     initView();
 }
Пример #4
0
 public MemberEdit(mode pmode, string pserno = "")
 {
     InitializeComponent();
     APConfig.loadPhrase(ddlPrinciple, PhraseCategory.案件負責人.ToString());
     serno = pserno;
     mode  = pmode;
     initView();
     txtMain.Focus();
 }
Пример #5
0
 public TradeEdit(mode pmode, string pserno = "", RosterInfo pRosterInfo = null)
 {
     InitializeComponent();
     APConfig.loadPhrase(ddlDealer, PhraseCategory.案件負責人.ToString());
     APConfig.loadPhrase(ddlType, PhraseCategory.收入類別.ToString());
     serno       = pserno;
     mode        = pmode;
     mRosterInfo = pRosterInfo;
     initView();
 }