コード例 #1
0
ファイル: frmBankPayment.cs プロジェクト: dreamzedu/csms
 private void frmBankPayment_Load(object sender, EventArgs e)
 {
     c.GetMdiParent(this).EnableAllEditMenuButtons();
     c.getconnstr();
     c.FillcomboBox("select * from tbl_LedgerAcc where GRP_COD in (2) order by BHM_DESH", "BHM_DESH", "GRP_COD", ref valcmbbank);
     c.FillcomboBox("select * from tbl_LedgerAcc where GRP_COD NOT in (1) order by BHM_DESH", "BHM_DESH", "GRP_COD", ref valcmbaccountgroup);
     enableData();
     SqlConnection con = c.myconn;
 }
コード例 #2
0
 private void FrmJurnalLadger_Load(object sender, EventArgs e)
 {
     c.getconnstr();
     c.FillcomboBox("select acname,accode from tbl_account  order by acname", "acname", "accode", ref valcmbbank);
     dtpfrom.Value = c.GetFromDate(school.CurrentSessionCode);
     dtpto.Value   = c.GetToDate(school.CurrentSessionCode);
 }
コード例 #3
0
 private void FrmBookWaiting_Load(object sender, EventArgs e)
 {
     try
     {
         c.getconnstr();
         c.FillcomboBox("select * from tbl_Book order by bookName", "bookName", "bookno", ref cmbBookName);
         //Connection.FillComboBox(cmbBookName, "Select Distinct bookno,bookName from tbl_Book ");
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }
コード例 #4
0
        private void frmsankay_Load(object sender, EventArgs e)
        {
            c.btnenable(btnnew, btnedit, btndelete, btnsave, btncancel, btnprint, null);
            c.getconnstr();

            c.FillcomboBox("select * from tbl_district order by district", "district", "distcode", ref valcmbdistrict);
            c.FillListBox("select * from tbl_tehsil order by tehsil", "tehsil", "tehcode", ref listBox1);

            c.returnconn(c.myconn);
            SqlCommand command = new SqlCommand("select max(tehcode) from tbl_tehsil", c.myconn);

            command.CommandTimeout = 120;
            Int32 mstudentno;

            mstudentno = 1001;
            if (command.ExecuteScalar() != System.DBNull.Value)
            {
                mstudentno = Convert.ToInt32(command.ExecuteScalar()) + 1;
            }
        }
コード例 #5
0
ファイル: FrmCashBook.cs プロジェクト: dreamzedu/csms
 private void FrmCashBook_Load(object sender, EventArgs e)
 {
     c.getconnstr();
     c.FillcomboBox("select acname,accode from tbl_account  where actype=dbo.GetAccountCode('C') order by acname", "acname", "accode", ref valcmbcash);
     c.FillcomboBox("select acname,accode from tbl_account  where actype=dbo.GetAccountCode('B') order by acname", "acname", "accode", ref valcmbbank);
 }
コード例 #6
0
ファイル: frmCashBook.cs プロジェクト: dreamzedu/csms
 private void frmCashBook_Load(object sender, EventArgs e)
 {
     c.getconnstr();
     c.FillcomboBox("select BHM_DESH,GRP_COD,BHM_COD from tbl_LedgerAcc  where BHM_COD=1 order by BHM_DESH", "BHM_DESH", "BHM_COD", ref valcmbcash);
     SqlConnection con = c.myconn;
 }
コード例 #7
0
ファイル: frmJournalLedger.cs プロジェクト: dreamzedu/csms
 private void frmJournalLedger_Load(object sender, EventArgs e)
 {
     c.getconnstr();
     c.FillcomboBox("select BHM_DESH,BHM_COD from tbl_LedgerAcc  where GRP_COD not in(1,2) order by BHM_DESH", "BHM_DESH", "BHM_COD", ref valcmbcash);
     SqlConnection con = c.myconn;
 }
コード例 #8
0
ファイル: FmTitle.cs プロジェクト: dreamzedu/csms
 private void FmTitle_Load(object sender, EventArgs e)
 {
     c.getconnstr();
     c.FillcomboBox("select * from tbl_book", "bookname", "bookno", ref valcmbbook);
 }
コード例 #9
0
ファイル: FrmVaccent.cs プロジェクト: dreamzedu/csms
 private void FrmVaccent_Load(object sender, EventArgs e)
 {
     c.getconnstr();
     c.FillcomboBox("select hostelcode,hostelname from tbl_hostel order by hostelname", "hostelname", "hostelcode", ref valcmbclass);
     c.GetMdiParent(this).ToggleSaveButton(true);
 }