public static void SaveDeptMethod(string Dept)
        {
            long          DeptID  = long.Parse(Dept);
            CustomProfile profile = CustomProfile.GetProfile();

            BrilliantWMS.CompanySetupService.iCompanySetupClient CompanyClient = new BrilliantWMS.CompanySetupService.iCompanySetupClient();
            // update DeptPMethodTable Code
            CompanyClient.UpdateDeptPaymentMethod(DeptID, profile.DBConnection._constr);
        }
        public static string RemoveSku(object objReq)
        {
            string        result  = "";
            CustomProfile profile = CustomProfile.GetProfile();

            BrilliantWMS.CompanySetupService.iCompanySetupClient CompanyClient = new BrilliantWMS.CompanySetupService.iCompanySetupClient();
            Dictionary <string, object> dictionary = new Dictionary <string, object>();

            dictionary = (Dictionary <string, object>)objReq;
            long PMethodID = long.Parse(dictionary["Methodid"].ToString());

            CompanyClient.RemoveDeptPMethod(PMethodID, profile.DBConnection._constr);
            result = "success";
            return(result);
        }
Example #3
0
        public static void PMSaveContactD(string selectedIds)
        {
            BrilliantWMS.CompanySetupService.iCompanySetupClient CompanyClient = new BrilliantWMS.CompanySetupService.iCompanySetupClient();
            CustomProfile profile  = CustomProfile.GetProfile();
            int           sequence = 0;
            string        ids      = selectedIds.ToString();

            string[] words = ids.Split(',');
            for (int i = 1; i < words.Length; i++)
            {
                long MethodID  = long.Parse(words[i]);
                long DeptID    = 0;
                long ChkDeptID = long.Parse(HttpContext.Current.Session["PDeptID"].ToString());
                sequence = sequence + 1;
                long count = CompanyClient.CheckDuplicatePMethod(MethodID, ChkDeptID, profile.DBConnection._constr);
                if (count <= 0)
                {
                    CompanyClient.InsertIntoDeptPayment(DeptID, MethodID, sequence, profile.DBConnection._constr);
                }
            }
            //string selectedIds = rec["SelectedIds"].ToString();
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Session["Lang"] == "")
            {
                Session["Lang"] = Request.UserLanguages[0];
            }
            loadstring();

            CustomProfile profile = CustomProfile.GetProfile();

            BrilliantWMS.CompanySetupService.iCompanySetupClient CompanyClient = new BrilliantWMS.CompanySetupService.iCompanySetupClient();
            if (Request.QueryString["deptid"] != null)
            {
                StoreId         = long.Parse(Request.QueryString["deptid"].ToString());
                hdndeptID.Value = Request.QueryString["deptid"].ToString();
                Session.Add("PDeptID", hdndeptID.Value);
            }
            if (!IsPostBack)
            {
                CompanyClient.DeleteRecordWithZeroQty(profile.DBConnection._constr);
            }
            RebindGrid(sender, e);
        }