コード例 #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();
        }
コード例 #3
0
        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
ファイル: SettingDAL.cs プロジェクト: spsinghdocument/MVC3SG
 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
ファイル: Login.cs プロジェクト: spsinghdocument/MVC3SG
 public LoginDAL()
 {
     inv = new inventoryforwebappEntities();
        DGM = new bl.Class1();
        //inv = new inventoryforwebappEntities();
 }
コード例 #11
0
 public ClientMasterOthersDAL()
 {
     inv = new inventoryforwebappEntities();
 }
コード例 #12
0
ファイル: BILLDAL.cs プロジェクト: spsinghdocument/MVC3SG
 public BILLDAL()
 {
     DGM = new bl.Class1();
        inv = new inventoryforwebappEntities();
 }
コード例 #13
0
ファイル: ContactDAL.cs プロジェクト: spsinghdocument/MVC3SG
 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();
 }
コード例 #16
0
        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
ファイル: Add_Fund.cs プロジェクト: spsinghdocument/MVC3SG
 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
ファイル: SimLostData.cs プロジェクト: spsinghdocument/MVC3SG
 public SimLostData()
 {
     inv = new inventoryforwebappEntities();
 }