Пример #1
0
        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);
        }
Пример #2
0
        //
        // 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();
        }
Пример #4
0
 public PurchaseEntryDal()
 {
     inv = new inventoryforwebappEntities();
        DGM = new bl.Class1();
 }
Пример #5
0
 public SettingDAL()
 {
     inv = new inventoryforwebappEntities();
     DGM = new bl.Class1();
 }
Пример #6
0
 public ChallanOutOthersDAL()
 {
     inv = new inventoryforwebappEntities();
     DGM = new bl.Class1();
 }
Пример #7
0
 public ClientMasterDAL()
 {
     inv = new inventoryforwebappEntities();
     DGM = new bl.Class1();
 }
Пример #8
0
 public ADD_UserNameDAL()
 {
     inv = new inventoryforwebappEntities();
 }
Пример #9
0
 public CustomerEntryDAL()
 {
     inv = new inventoryforwebappEntities();
     DGM = new bl.Class1();
 }
Пример #10
0
 public LoginDAL()
 {
     inv = new inventoryforwebappEntities();
        DGM = new bl.Class1();
        //inv = new inventoryforwebappEntities();
 }
 public ClientMasterOthersDAL()
 {
     inv = new inventoryforwebappEntities();
 }
Пример #12
0
 public BILLDAL()
 {
     DGM = new bl.Class1();
        inv = new inventoryforwebappEntities();
 }
Пример #13
0
 public ContactDAL()
 {
     inv = new inventoryforwebappEntities();
        DGM = new bl.Class1();
 }
Пример #14
0
 public Add_CountryInsert()
 {
     inv = new inventoryforwebappEntities();
       DGM = new bl.Class1();
 }
Пример #15
0
 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);
        }
Пример #17
0
 public PaymentReportDAL()
 {
     inv = new inventoryforwebappEntities();
     DGM = new bl.Class1();
 }
Пример #18
0
 public CompanyProfileDAL()
 {
     inv = new inventoryforwebappEntities();
       DGM = new bl.Class1();
 }
Пример #19
0
 public Add_Fund()
 {
     inv = new inventoryforwebappEntities();
 }
Пример #20
0
 public TotalFundDAL()
 {
     inv  = new inventoryforwebappEntities();
       DGM = new bl.Class1();
 }
Пример #21
0
 public Live_ReportDAL()
 {
     inv = new inventoryforwebappEntities();
 }
Пример #22
0
 public SimReplacementDAL()
 {
     inv = new inventoryforwebappEntities();
     DGM = new bl.Class1();
 }
Пример #23
0
 // System.Threading.Thread login_t = new System.Threading.Thread(LoginValidate , );
 public LoginController()
 {
     inv = new inventoryforwebappEntities();
     lcls = new LoginDAL();
 }
Пример #24
0
 public VoucherEntryDAL()
 {
     inv = new inventoryforwebappEntities();
     DGM = new bl.Class1();
     con = new SqlConnection(ConfigurationManager.ConnectionStrings["SqlCon"].ConnectionString);
 }
Пример #25
0
 public MobileTopupDAL()
 {
     inv = new inventoryforwebappEntities();
     DGM = new bl.Class1();
 }
Пример #26
0
 public SimLostData()
 {
     inv = new inventoryforwebappEntities();
 }