예제 #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();
 }