public void Initialize_Page()
 {
     Sub_Account                  = new SubAccount();
     FromDateTxt.Text             = DateTime.Now.Year + "-" + DateTime.Now.Month + "-" + DateTime.Now.Day;
     ToDateTxt.Text               = DateTime.Now.Year + "-" + DateTime.Now.Month + "-" + DateTime.Now.Day;
     AccountDropID.DataSource     = db.Cars.ToList(); //db.SubAccount.ToList().Where(s => s.MainAccount_id == 1101).ToList();//  Sub_Account.GetSubAccount_ByUpID(1101);
     AccountDropID.DataTextField  = "CarNo";
     AccountDropID.DataValueField = "id";
     AccountDropID.DataBind();
 }
Esempio n. 2
0
 public void Initialize_Page()
 {
     Sub_Account                  = new SubAccount();
     FromDateTxt.Text             = DateTime.Now.Year + "-" + DateTime.Now.Month + "-" + DateTime.Now.Day;
     ToDateTxt.Text               = DateTime.Now.Year + "-" + DateTime.Now.Month + "-" + DateTime.Now.Day;
     AccountDropID.DataSource     = db.SubAccount.ToList();//.GetAllSub();// GetSubAccount_ByUpID(1101);
     AccountDropID.DataTextField  = "name";
     AccountDropID.DataValueField = "ID";
     AccountDropID.DataBind();
 }
 public void Initialize_Page()
 {
     Sub_Account                  = new SubAccount();
     FromDateTxt.Text             = DateTime.Now.Year + "-" + DateTime.Now.Month + "-" + DateTime.Now.Day;
     ToDateTxt.Text               = DateTime.Now.Year + "-" + DateTime.Now.Month + "-" + DateTime.Now.Day;
     AccountDropID.DataSource     = db.SubAccount.ToList().Where(s => s.MainAccount_id == 2103).ToList(); //Sub_Account.GetSubAccount_ByUpID(2103);
     AccountDropID.DataTextField  = "name";
     AccountDropID.DataValueField = "ID";
     AccountDropID.DataBind();
     SuppliersOperationsGrd.Visible = false;
 }
Esempio n. 4
0
        public void Initialize_Page()
        {
            Sub_Account                  = new SubAccount();
            ToDateTxt.Text               = DateTime.Now.Year + "-" + DateTime.Now.Month + "-" + DateTime.Now.Day;
            AccountDropID.DataSource     = db.SubAccount.ToList().Where(o => o.MainAccount_id == 1103).ToList();// Sub_Account.GetSubAccount_ByUpID(1103);
            AccountDropID.DataTextField  = "name";
            AccountDropID.DataValueField = "ID";
            AccountDropID.DataBind();
            EntryGrdV.DataSource = null;
            EntryGrdV.DataBind();
            SaveBtn.Visible = false;

            Khazna_Moved_List  = new List <KhznaMoved>();
            NewEntryTxtID.Text = "";
            TotalText.Text     = "";
        }
Esempio n. 5
0
 public void FillDrops()
 {
     //MainAccountList = db.MainAccount.Where(o => o.ID.ToString().StartsWith(Dropdownlist1.SelectedValue)&o.ID!=Int64.Parse(Dropdownlist1.SelectedValue)).ToList();
     //SubAccountList = db.SubAccount.Where(o => o.ID.ToString().StartsWith(Dropdownlist1.SelectedValue)).ToList();
     //foreach (var m in MainAccountList)
     //{
     //    AllAccountList.Add(new AssistantOstazAccount.AccountsContainer() { ID = m.ID, name = m.name });
     //}
     //foreach (var s in SubAccountList)
     //{
     //    AllAccountList.Add(new AssistantOstazAccount.AccountsContainer() { ID = s.ID, name = s.name });
     //}
     AccountDropID.DataSource     = db.SubAccount.ToList().Where(o => o.ID.ToString().StartsWith(Dropdownlist1.SelectedValue)).ToList();
     AccountDropID.DataTextField  = "name";
     AccountDropID.DataValueField = "ID";
     AccountDropID.DataBind();
 }