示例#1
0
 private void frmReceiptVoucher_Load(object sender, EventArgs e)
 {
     panel1.Top = (this.Height - panel1.Height) / 2;
     panel1.Left = (this.Width - panel1.Width) / 2;
     MyAccount = new AccountCreation(Program.AccountStatic.LoggingAsLocal);
     MyCommon = new CommonOperations(Program.AccountStatic.LoggingAsLocal);
     MyReceipt = new Receipt(Program.AccountStatic.LoggingAsLocal);
     LoadToCombo();
 }
示例#2
0
 private void frmCompanyConfig_Load(object sender, EventArgs e)
     {
         MyCom = new CommonOperations(Program.AccountStatic.LoggingAsLocal);
         Myaccount=new AccountCreation (Program.AccountStatic.LoggingAsLocal);
         panel1.Top = (this.Height - panel1.Height) / 2;
         panel1.Left = (this.Width - panel1.Width) / 2;
         Myaccount.LoadSupplier (dgvList);
     DataTable tb=MyCom .GetDataTableAccount ("Select CurID from tblcurrency","xx");
     MyCom.LoadDatatoComboWithOutBind(txtCurrency, tb, "CurID", true);  
     }
示例#3
0
 private void frmAccountCreation_Load(object sender, EventArgs e)
     {
     MyCommon = new CommonOperations(Program.AccountStatic.LoggingAsLocal);
     MyAccount = new AccountCreation(Program.AccountStatic.LoggingAsLocal);
     panel1.Top = (this.Height - panel1.Height) / 2;
     panel1.Left = (this.Width - panel1.Width) / 2;
     InitializeScreen();
     panel7.Enabled = false;
     panel8.Enabled = false;
     LoadExistingAccount();
     LoadExtAccountInHiaraky();
    
     }
示例#4
0
        private void frmBill_Load(object sender, EventArgs e)
        {
            MyBill = new Billing(Program.AccountStatic.LoggingAsLocal);
            MyCommon = new CommonOperations(Program.AccountStatic.LoggingAsLocal);
            MyAccount = new AccountCreation(Program.AccountStatic.LoggingAsLocal);
          
            panel1.Top = (this.Height - panel1.Height) / 2;
            panel1.Left = (this.Width - panel1.Width) / 2;
            //MyAccount.LoadSupplier(cmbSupplier);
            //MyAccount.LoadSupplier(cmbSearchSupplier);
            //Edit by manjula   *** Load suppliers from MRP
            LoadSuppliers();

            MyCommon.LoadStatusComboAccount(cmbStatus, 4);
            EditScreen(false);
        }
示例#5
0
 private void frmJournal_Load(object sender, EventArgs e)
 {
     MyAccount = new AccountCreation(Program.AccountStatic.LoggingAsLocal);
     MyCommon = new CommonOperations(Program.AccountStatic.LoggingAsLocal);
    
     MyJournal = new Journal(Program.AccountStatic.LoggingAsLocal);
    
     IsLocalLoging = Program.AccountStatic.LoggingAsLocal;
     panel1.Top = (this.Height - panel1.Height) / 2;
     panel1.Left = (this.Width - panel1.Width) / 2;
     MyCommon.LoadCurrency(cmbCurrency);
     MyCommon.LoadStatusComboAccount(cmbPayFor, 6);
     string HmCur = "", HmRate = "";
     string respond = MyCommon.GetHomeCurrencyAndExrate(out HmCur, out HmRate);
     cmbCurrency.Text = HmCur;
     MyCommon.LoadStatusComboAccount(cmbStatus, 4);
 }
示例#6
0
        private void frmPaymentVoucher_Load(object sender, EventArgs e)
        {

            try
            {
                MyAccount = new AccountCreation(Program.AccountStatic.LoggingAsLocal);
                MyCommon = new CommonOperations(Program.AccountStatic.LoggingAsLocal);
                MyPay = new Payment(Program.AccountStatic.LoggingAsLocal);
                panel4.Top = (this.Height - panel4.Height) / 2;
                panel4.Left = (this.Width - panel4.Width) / 2;
                LoadToCombo();
                EnableCurrent(false);
            }
            catch (Exception ex)
            {

                MessageBox.Show(ex.Message);
            }

        }
示例#7
0
        private void frmLedgers_Load(object sender, EventArgs e)
        {
            MyCommon = new CommonOperations(Program.AccountStatic.LoggingAsLocal);
            MyAccount = new AccountCreation(Program.AccountStatic.LoggingAsLocal);
            MyCommon.LoadStatusComboAccount(cmbRptType, 5);

        }