public PurchaseController()
        {
            sessid = Convert.ToString(System.Web.HttpContext.Current.Session["usercode"]); // "a";  //Convert.ToString(Session["UserId"]);

            branchcode = Convert.ToString(System.Web.HttpContext.Current.Session["branchcode"]);
            partnername = Convert.ToString(System.Web.HttpContext.Current.Session["partnername"]);
            usertype = Convert.ToString(System.Web.HttpContext.Current.Session["usertype"]);
            rolename = Convert.ToString(System.Web.HttpContext.Current.Session["rolename"]);

            pcls = new PurchaseEntryDal();
            inv = new inventoryforwebappEntities();

            con = new SqlConnection(ConfigurationManager.ConnectionStrings["SqlCon"].ConnectionString);
        }
        //
        // GET: /AddTariff/
        public AddTariffController()
        {
            sessid = Convert.ToString(System.Web.HttpContext.Current.Session["usercode"]); // "a";  //Convert.ToString(Session["UserId"]);
            if (sessid == "")
            {

                return;
            }
            branchcode = Convert.ToString(System.Web.HttpContext.Current.Session["branchcode"]);
            partnername = Convert.ToString(System.Web.HttpContext.Current.Session["partnername"]);
            usertype = Convert.ToString(System.Web.HttpContext.Current.Session["usertype"]);
            inv = new inventoryforwebappEntities();
            atcls = new Add_TariffDAL();
        }
        public ChallanOutController()
        {
            sessid = Convert.ToString(System.Web.HttpContext.Current.Session["usercode"]); // "a";  //Convert.ToString(Session["UserId"]);
            if (sessid == "")
            {

                return;
            }
            branchcode = Convert.ToString(System.Web.HttpContext.Current.Session["branchcode"]);
            partnername = Convert.ToString(System.Web.HttpContext.Current.Session["partnername"]);
            usertype = Convert.ToString(System.Web.HttpContext.Current.Session["usertype"]);
             //   sessid = "a"; // Convert.ToString(Session["UserId"]);

            con = new SqlConnection(ConfigurationManager.ConnectionStrings["SqlCon"].ConnectionString);
                pcls = new PurchaseEntryDal();
                ccls = new ChallanDAL();
                inv = new inventoryforwebappEntities();
                acicls = new Add_CountryInsert();
        }
 public PurchaseEntryDal()
 {
     inv = new inventoryforwebappEntities();
        DGM = new bl.Class1();
 }
Beispiel #5
0
 public SettingDAL()
 {
     inv = new inventoryforwebappEntities();
     DGM = new bl.Class1();
 }
 public ChallanOutOthersDAL()
 {
     inv = new inventoryforwebappEntities();
     DGM = new bl.Class1();
 }
 public ClientMasterDAL()
 {
     inv = new inventoryforwebappEntities();
     DGM = new bl.Class1();
 }
 public ADD_UserNameDAL()
 {
     inv = new inventoryforwebappEntities();
 }
 public CustomerEntryDAL()
 {
     inv = new inventoryforwebappEntities();
     DGM = new bl.Class1();
 }
Beispiel #10
0
 public LoginDAL()
 {
     inv = new inventoryforwebappEntities();
        DGM = new bl.Class1();
        //inv = new inventoryforwebappEntities();
 }
 public ClientMasterOthersDAL()
 {
     inv = new inventoryforwebappEntities();
 }
Beispiel #12
0
 public BILLDAL()
 {
     DGM = new bl.Class1();
        inv = new inventoryforwebappEntities();
 }
Beispiel #13
0
 public ContactDAL()
 {
     inv = new inventoryforwebappEntities();
        DGM = new bl.Class1();
 }
 public Add_CountryInsert()
 {
     inv = new inventoryforwebappEntities();
       DGM = new bl.Class1();
 }
 public RevenueReportDAL()
 {
     inv = new inventoryforwebappEntities();
 }
        public JsonResult searchautocomcustmobile(string empName)
        {
            DataAccessLeyer.EF.inventoryforwebappEntities inv = new inventoryforwebappEntities();
               List<customerdetailstable> custd = null;
               switch (usertype)
               {

                   case "ADMIN":
                       custd = inv.customerdetailstables
                        .Where(em => em.mobileno.Contains(empName)).ToList();
                       break;

                   case "PARTNER":
                       custd = inv.customerdetailstables
                        .Where(em => em.branchcode == branchcode && em.mobileno.Contains(empName)).ToList();
                       break;

                   case "EXECUTIVE":
                       custd = inv.customerdetailstables
                        .Where(em => em.branchcode == branchcode && em.loginusercode == sessid && em.mobileno.Contains(empName)).ToList();
                       break;
               }
               return Json(custd, JsonRequestBehavior.AllowGet);
        }
 public PaymentReportDAL()
 {
     inv = new inventoryforwebappEntities();
     DGM = new bl.Class1();
 }
 public CompanyProfileDAL()
 {
     inv = new inventoryforwebappEntities();
       DGM = new bl.Class1();
 }
Beispiel #19
0
 public Add_Fund()
 {
     inv = new inventoryforwebappEntities();
 }
Beispiel #20
0
 public TotalFundDAL()
 {
     inv  = new inventoryforwebappEntities();
       DGM = new bl.Class1();
 }
 public Live_ReportDAL()
 {
     inv = new inventoryforwebappEntities();
 }
 public SimReplacementDAL()
 {
     inv = new inventoryforwebappEntities();
     DGM = new bl.Class1();
 }
 // System.Threading.Thread login_t = new System.Threading.Thread(LoginValidate , );
 public LoginController()
 {
     inv = new inventoryforwebappEntities();
     lcls = new LoginDAL();
 }
 public VoucherEntryDAL()
 {
     inv = new inventoryforwebappEntities();
     DGM = new bl.Class1();
     con = new SqlConnection(ConfigurationManager.ConnectionStrings["SqlCon"].ConnectionString);
 }
 public MobileTopupDAL()
 {
     inv = new inventoryforwebappEntities();
     DGM = new bl.Class1();
 }
Beispiel #26
0
 public SimLostData()
 {
     inv = new inventoryforwebappEntities();
 }