Exemple #1
0
 private void ACC_CREDENCE_SUMMARY_Load(object sender, EventArgs e)
 {
     DBGrid.Tag = this.Name;
     clsTranslate.InitLanguage(this);
     FillControl.FillPeriodList(cboAccName.ComboBox);
     //LoadData();
 }
Exemple #2
0
 private void ACC_OTHER_RECEIVABLE_Load(object sender, EventArgs e)
 {
     DBGrid.ContextMenuStrip.Items.Add("-");
     DBGrid.ContextMenuStrip.Items.Add(clsTranslate.TranslateString("Detail"), LXMS.Properties.Resources.OK, new System.EventHandler(this.mnuDetail_Click));
     DBGrid.Tag = this.Name;
     clsTranslate.InitLanguage(this);
     FillControl.FillPeriodList(cboAccName.ComboBox);
 }
Exemple #3
0
 private void ACC_SUBJECT_DETAIL_Load(object sender, EventArgs e)
 {
     DBGrid.Tag = this.Name;
     clsTranslate.InitLanguage(this);
     FillControl.FillPeriodList(cboAccName);
     cboSubjectType.Items.Add(clsTranslate.TranslateString("Cash and Bank"));
     cboSubjectType.Items.Add(clsTranslate.TranslateString("Account Subject List"));
     cboSubjectType.SelectedIndex = 0;
 }
Exemple #4
0
 private void ACC_ACCOUNT_BALANCE_Load(object sender, EventArgs e)
 {
     DBGrid.Tag = this.Name;
     DBGrid.ContextMenuStrip.Items.Add("-");
     DBGrid.ContextMenuStrip.Items.Add(clsTranslate.TranslateString("Rebuild"), LXMS.Properties.Resources.Property, new System.EventHandler(this.mnuRebuild_Click));
     clsTranslate.InitLanguage(this);
     FillControl.FillPeriodList(cboAccName.ComboBox);
     //LoadData();
 }
Exemple #5
0
        private void btnNew_Click(object sender, EventArgs e)
        {
            EditAccPeriodList frm = new EditAccPeriodList();

            frm.AddItem(txtUserId.Text.Trim());
            if (frm.ShowDialog() == DialogResult.OK)
            {
                FillControl.FillPeriodList(cboPeriodList);
            }
        }
Exemple #6
0
 private void ACC_CREDENCE_LIST_Load(object sender, EventArgs e)
 {
     //if (Util.modperiod.LockFlag == 1 || Util.IsTrialBalance)
     //{
     //    toolNew.Visible = false;
     //    toolEdit.Visible = false;
     //    toolDel.Visible = false;
     //    toolAudit.Visible = false;
     //    toolReset.Visible = false;
     //    toolTrial.Visible = false;
     //    toolBalance.Visible = false;
     //}
     FillControl.FillPeriodList(cboAccName.ComboBox);
 }
 private void QRY_WAREHOUSE_PRODUCT_INFO_Load(object sender, EventArgs e)
 {
     clsTranslate.InitLanguage(this);
     DBGrid.Tag = this.Name;
     FillControl.FillPeriodList(cboAccName.ComboBox);
     if (clsLxms.ShowProductSize() == 1)
     {
         rbProductSizeWip.Visible          = true;
         rbWarehouseProductSizeWip.Visible = true;
         rbProductSizeWip.Checked          = true;
     }
     else
     {
         rbProductSizeWip.Visible          = false;
         rbWarehouseProductSizeWip.Visible = false;
         rbProductWip.Checked = true;
     }
 }
Exemple #8
0
        private void frmLogin_Load(object sender, EventArgs e)
        {
            clsTranslate.InitLanguage(this);
            FillControl.FillPeriodList(cboPeriodList);
            frmMain.bLogined = false;
            timer1_Tick(null, null);
            timer1.Enabled = true;
            //string strHostName = Dns.GetHostName();
            string strHostName = Environment.MachineName;

            if (strHostName.ToUpper() == "KAIFA0007" || strHostName.ToUpper() == "LUCJ" || strHostName.ToUpper() == "QUWEIQIN")
            {
                //if (strHostName.ToUpper() == "30-0001-14544")
                //    pictureBox1.Visible = false;
                txtUserId.Text = "SYSADMIN";
                txtPwd.Text    = "PPT123";
                txtPwd.Focus();
            }
            else
            {
                txtUserId.Text = ini.IniReadValue("login", "userid");
                if (string.IsNullOrEmpty(txtUserId.Text.Trim()))
                {
                    txtUserId.Focus();
                }
                else
                {
                    txtPwd.Focus();
                }
            }
            RWReg reg = new RWReg("LOCAL_MACHINE");
            bool  ret = reg.SetRegValue(@"SOFTWARE\ORACLE", "NLS_LANG", "SIMPLIFIED CHINESE_CHINA.ZHS16GBK", "STRING");

            dalUserList bll = new dalUserList();

            if (!bll.UpdateDatabaseObject(Application.StartupPath, out Util.emsg))
            {
                MessageBox.Show(Util.emsg, clsTranslate.TranslateString("Information"), MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
            }
        }
Exemple #9
0
 private void ACC_EXPENSE_PROFIT_Load(object sender, EventArgs e)
 {
     clsTranslate.InitLanguage(this);
     FillControl.FillPeriodList(cboAccName.ComboBox);
     LoadData();
 }
Exemple #10
0
 private void ACC_ASSET_DEBT_REPORT_Load(object sender, EventArgs e)
 {
     clsTranslate.InitLanguage(this);
     FillControl.FillPeriodList(cboAccName.ComboBox);
     //LoadData();
 }
Exemple #11
0
 private void ACC_PRODUCT_BOOK_Load(object sender, EventArgs e)
 {
     clsTranslate.InitLanguage(this);
     FillControl.FillPeriodList(cboStartAccName);
     FillControl.FillProductType(cboProductType, false, false);
 }
Exemple #12
0
 private void ACC_EXPENSE_COLUMN_Load(object sender, EventArgs e)
 {
     FillControl.FillPeriodList(cboAccName.ComboBox);
     FillControl.FillAccExpenseType(cboExpenseType.ComboBox, false);
     DBGrid.AlternatingRowsDefaultCellStyle.BackColor = Color.Empty;
 }