예제 #1
0
 protected void ddlToCostCentre_SelectedIndexChanged(object sender, EventArgs e)
 {
     GroupItemManager GIManager = new GroupItemManager();
     ItemGroupList = GIManager.DeptWiseItemGroup(Convert.ToInt32(ddlToCostCentre.SelectedValue));
 }
예제 #2
0
        private void InitializeSession()
        {
            try
            {
                GroupItemManager GIManager = new GroupItemManager();
                ItemSubGroupManager SGManager = new ItemSubGroupManager();
                ItemMasterManager IMManager = new ItemMasterManager();
                UnitSetupManager USManager = new UnitSetupManager();

                ItemGroupList = new CustomList<ItemGroup>();
                //ItemGroupList = GIManager.DeptWiseItemGroup(41);
                ItemSubGroupList = new CustomList<ItemSubGroup>();
                ItemSubGroupList = SGManager.GetAllItemSubGroup();
                ItemMasterList = new CustomList<ItemMaster>();
                ItemMasterList = IMManager.FindAllItemMasterGroupWise();

                StockTransactionDetailList = new CustomList<StockTransactionDetail>();
                UnitSetupList = new CustomList<UnitSetup>();
                UnitSetupList = USManager.GetAllUnitSetup();
                StockTransactionMasterList = new CustomList<StockTransactionMaster>();
            }
            catch (Exception ex)
            {

                throw (ex);
            }
        }
예제 #3
0
        private void deptWiseGroup()
        {
            try
            {
                String test = String.Empty;
                GroupItemManager manager = new GroupItemManager();
                String CostCenterID = HttpContext.Current.Request.QueryString["CostCenterID"];
                CustomList<ItemGroup> lstItemGroupDeptMaping = manager.DeptWiseItemGroup(Convert.ToInt32(CostCenterID));
                HttpContext.Current.Session["ItemRequisition_ItemGroupList"] = lstItemGroupDeptMaping;

                HttpContext.Current.Response.Clear();
                HttpContext.Current.Response.ContentType = "text/plain";
                HttpContext.Current.Response.Write(test);
                HttpContext.Current.Response.Flush();
            }
            catch (Exception ex)
            {
                throw (ex);
            }
        }