Example #1
0
        public AdmApplicationForm()
        {
            InitializeComponent();

            txtApplicant.Text  = GlobalService.User;
            txtDivision.Text   = MasterUtil.Division();
            txtCostCentre.Text = MasterUtil.CostCentre();

            cbItems.SelectedIndex = 0;

            LoadStampInfo();
        }
        public OutstandingForm()
        {
            InitializeComponent();

            cbCurr.SelectedIndex = 0;

            //GlobalService.User = AdUtil.getUsername("kmhk.local");

            txtInvoice.LostFocus += new EventHandler(txtInvoice_LostFocus);

            txtVendorCode.LostFocus += new EventHandler(txtInvoice_LostFocus);

            string costCentre = MasterUtil.CostCentre();

            DataGridViewComboBoxColumn colAccountCode = (DataGridViewComboBoxColumn)dgvOutstanding.Columns[0];

            colAccountCode.DataSource = AccountCodeColumn(costCentre);

            DataGridViewComboBoxColumn colCostCentre = (DataGridViewComboBoxColumn)dgvOutstanding.Columns[2];

            colCostCentre.DataSource = CostCentreColumn();
        }