public void GetCategory(long CustomerID) { ddlPrdCategory.Items.Clear(); iProductSubCategoryMasterClient SubCategoryClient = new iProductSubCategoryMasterClient(); CustomProfile profile = CustomProfile.GetProfile(); ddlPrdCategory.DataSource = SubCategoryClient.GetCategoryListByCustomer(CustomerID, profile.DBConnection._constr);; ddlPrdCategory.DataTextField = "Name"; ddlPrdCategory.DataValueField = "ID"; ddlPrdCategory.DataBind(); ListItem lst = new ListItem { Text = "-Select-", Value = "0" }; ddlPrdCategory.Items.Insert(0, lst); SubCategoryClient.Close(); }
protected void GetInterfaceList() { iPartRequestClient objService = new iPartRequestClient(); CustomProfile profile = CustomProfile.GetProfile(); GVInterface.DataSource = null; GVInterface.DataBind(); DataSet dsInterface = new DataSet(); dsInterface = objService.GetGetInterfaceDetails(profile.DBConnection._constr); GVInterface.DataSource = dsInterface; GVInterface.DataBind(); }
public void getCustomer(long CompanyID) { ddlcustomer.Items.Clear(); iStatutoryMasterClient StatutoryClient = new iStatutoryMasterClient(); CustomProfile profile = CustomProfile.GetProfile(); ddlcustomer.DataSource = StatutoryClient.GetCustomerList(CompanyID, profile.DBConnection._constr); ddlcustomer.DataTextField = "Name"; ddlcustomer.DataValueField = "ID"; ddlcustomer.DataBind(); ListItem lst = new ListItem { Text = "-Select-", Value = "0" }; ddlcustomer.Items.Insert(0, lst); StatutoryClient.Close(); }
public void BindTaxMappingGrid() { try { CustomProfile profile = CustomProfile.GetProfile(); /*gvTaxMappingM.DataSource = TaxClient.GetTaxRecordToBindTaxMappingGrid(profile.DBConnection._constr); * gvTaxMappingM.DataBind();*/ } catch (System.Exception ex) { Login.Profile.ErrorHandling(ex, this, "Tax Master", "BindTaxMappingGrid"); } finally { } }
public static void PMSaveLocation(string selectedIds, long userid) { iUserCreationClient userClient = new iUserCreationClient(); CustomProfile profile = CustomProfile.GetProfile(); string ids = selectedIds.ToString(); string[] words = ids.Split(','); for (int i = 1; i < words.Length; i++) { long locationid = long.Parse(words[i]); long count = userClient.GetDuplicatlocationUser(userid, locationid, profile.DBConnection._constr); if (count <= 0) { userClient.InsertIntoUserLocation(userid, locationid, profile.DBConnection._constr); } } }
protected void GetRateType() { ddlvendortype.Items.Clear(); iCompanySetupClient CompanyClient = new iCompanySetupClient(); CustomProfile profile = CustomProfile.GetProfile(); ddlvendortype.DataSource = CompanyClient.GetRateTypeDropdown("Vendor", profile.DBConnection._constr); ddlvendortype.DataTextField = "Value"; ddlvendortype.DataValueField = "Id"; ddlvendortype.DataBind(); ListItem lst = new ListItem { Text = "-Select-", Value = "0" }; ddlvendortype.Items.Insert(0, lst); CompanyClient.Close(); }
public void BindGrid() { try { iEngineMasterClient EngineClient = new iEngineMasterClient(); CustomProfile profile = CustomProfile.GetProfile(); GvMEngine.DataSource = EngineClient.GetEngineMasterList(profile.DBConnection._constr); GvMEngine.DataBind(); } catch (System.Exception ex) { Login.Profile.ErrorHandling(ex, this, "Engine Master", "BindGrid"); } finally { } }
// Get Channel Name public void GetChannelByType() { ddlchannel.Items.Clear(); iCompanySetupClient Channel = new iCompanySetupClient(); CustomProfile profile = CustomProfile.GetProfile(); ddlchannel.DataSource = Channel.GetChannelName("Channel", profile.DBConnection._constr); ddlchannel.DataTextField = "Value"; ddlchannel.DataValueField = "Id"; ddlchannel.DataBind(); ListItem lst = new ListItem { Text = "-Select-", Value = "0" }; ddlchannel.Items.Insert(0, lst); Channel.Close(); }
protected void CartBind() { CustomProfile profile = CustomProfile.GetProfile(); AddToCartService.iAddToCartClient AddToCartService = new iAddToCartClient(); long Seq = long.Parse(Request.QueryString["CartSeq"].ToString()); string ProductID = Request.QueryString["PrdID"].ToString(); if (ProductID == "undefined") { ProductID = "0"; } List <SP_GetCartProductDetail_Result> lst = new List <SP_GetCartProductDetail_Result>(); lst = AddToCartService.GetAddToCartListBySequence(ProductID, Seq, Session.SessionID, profile.Personal.UserID.ToString(), Request.QueryString["Object"], Request.QueryString["Object"], 0, profile.DBConnection._constr).ToList(); AddToCartService.Close(); }
public static string PMApprovalLevel(long CompanyID, long DeptID) { iApprovalLevelMasterClient ApprovalClient = new iApprovalLevelMasterClient(); string AppLevel = ""; try { CustomProfile profile = CustomProfile.GetProfile(); AppLevel = ApprovalClient.GetApprovalLevel(CompanyID, DeptID, profile.DBConnection._constr).ToString(); } catch (System.Exception ex) { Login.Profile.ErrorHandling(ex, "Approval Level Master", "PMGetApprovalLevelByObjectName"); } finally { ApprovalClient.Close(); } return(AppLevel); }
private List <ReportParameter> RptParameters1() { CustomProfile profile = CustomProfile.GetProfile(); List <ReportParameter> parameters = new List <ReportParameter>(); mCompany compdetails = new mCompany(); iCompanySetupClient compclient = new iCompanySetupClient(); compdetails = compclient.GetCompanyById(profile.Personal.CompanyID, profile.DBConnection._constr); // parameters.Add(new ReportParameter("CompName", compdetails.Name)); //parameters.Add(new ReportParameter("CompAdd", compdetails.AddressLine1)); //parameters.Add(new ReportParameter("FromDt", Session["FromDt"].ToString())); //parameters.Add(new ReportParameter("ToDt", Session["ToDt"].ToString())); //parameters.Add(new ReportParameter("ReportHeading", Session["ReportHeading"].ToString())); //parameters.Add(new ReportParameter("Generator", Session["Generator"].ToString())); // parameters.Add(new ReportParameter("CompLogo","../MasterPage/Logo/" + compdetails.LogoPath)); return(parameters); }
public void GetLocation(long Companyid) { DataSet ds; CustomProfile profile = CustomProfile.GetProfile(); iProductMasterClient productClient = new iProductMasterClient(); ds = productClient.GetLocation(Companyid, profile.DBConnection._constr); ddllocation.DataSource = ds; ddllocation.DataTextField = "AddressLine1"; ddllocation.DataValueField = "ID"; ddllocation.DataBind(); ListItem lst = new ListItem { Text = "-Select-", Value = "0" }; ddllocation.Items.Insert(0, lst); }
public void getDepartment(long Companyid) { DataSet ds; CustomProfile profile = CustomProfile.GetProfile(); iProductMasterClient productClient = new iProductMasterClient(); ds = productClient.GetDepartment(Companyid, profile.DBConnection._constr); ddldepartment.DataSource = ds; ddldepartment.DataTextField = "Territory"; ddldepartment.DataValueField = "ID"; ddldepartment.DataBind(); ListItem lst = new ListItem { Text = "-Select-", Value = "0" }; ddldepartment.Items.Insert(0, lst); }
public static int WMAddIntomSLA(string Prime, string Express, string Regular, string DID) { CustomProfile profile = CustomProfile.GetProfile(); BrilliantWMS.AccountSearchService.iCustomerClient cust = new iCustomerClient(); mSLA sla = new mSLA(); sla.DeptID = long.Parse(DID); long Pr = 0, Exp = 0, Reg = 0; if (Prime == "NA") { Pr = 0; } else { Pr = Convert.ToInt64(Prime); } if (Express == "NA") { Exp = 0; } else { Exp = Convert.ToInt64(Express); } if (Regular == "NA") { Reg = 0; } else { Reg = Convert.ToInt64(Regular); } sla.PrimeDays = Pr; sla.ExpressDays = Exp; sla.RegularDays = Reg; sla.CreatedBy = profile.Personal.UserID; sla.CreatedDate = DateTime.Now; cust.AddIntomSLA(sla, profile.DBConnection._constr); return(1); }
protected void Page_Load(object sender, EventArgs e) { if (Session["Lang"] == "") { Session["Lang"] = Request.UserLanguages[0]; } loadstring(); sessionID = Session.SessionID; thispage = this; if (Request.QueryString["TargetObject"] != null) { TargetObject = Request.QueryString["TargetObject"].ToString() + "_Address"; } if (Request.QueryString["Sequence"] != null) { Sequence = Request.QueryString["Sequence"].ToString(); } if (!IsPostBack) { FillDropDown(); GetRecordFromTempDataBySequenceID(Sequence); CustomProfile profile = CustomProfile.GetProfile(); DataSet ds = new DataSet(); ds.ReadXml(MapPath("LabelAlice.xml")); if (ds.Tables.Count > 0) { DataRow[] dr; dr = ds.Tables[0].Select("CompanyID = " + profile.Personal.CompanyID + " and Value = '" + lblZone.Text + "'"); if (dr.Length > 0) { lblZone.Text = dr[0]["Alice"].ToString(); } dr = new DataRow[] { }; dr = ds.Tables[0].Select("CompanyID = " + profile.Personal.CompanyID + " and Value = '" + lblSubZone.Text + "'"); if (dr.Length > 0) { lblSubZone.Text = dr[0]["Alice"].ToString(); } } // if (Sequence == "0") Page.ClientScript.RegisterStartupScript(GetType(), "fillCountry1" + sessionID, "setCountry('Select Country','Select State','0','0');", true); } }
public void clr() { try { CustomProfile profile = CustomProfile.GetProfile(); // ddlgroupcompany.SelectedIndex = -1; txtCAddress1.Text = ""; txtAddress2.Text = ""; txtLandMark.Text = ""; ddlCountry.SelectedIndex = -1; ddlState.SelectedIndex = -1; ddlcompany.SelectedValue = "0"; //ddldept.SelectedValue = "0"; hndCompanyid.Value = "0"; hdnSelectedDepartment.Value = "0"; hdnSelectedCompany.Value = "0"; txtCity.Text = ""; txtZipCode.Text = ""; txtphoneno.Text = ""; txtFax.Text = ""; hndState.Value = ""; txtemailid.Text = ""; hdnState.Value = ""; hdnCountry.Value = ""; txtlocation.Text = ""; txtname.Text = ""; hdnmodestate.Value = ""; hdnselectedLocation.Value = ""; rbtnActiveNo.Text = ""; rbtnActiveYes.Text = ""; txtlocationName.Text = ""; hdnSearchContactID1.Value = ""; hdnSearchContactName1.Value = ""; hdnSearchConEmail.Value = ""; hdnSearchConMobNo.Value = ""; } catch (System.Exception ex) { Login.Profile.ErrorHandling(ex, this, "Location", "clr"); } finally { } }
public static long PMSaveNewRates(object newPrice0) { long result = 0; try { Dictionary <string, object> dictionary = new Dictionary <string, object>(); dictionary = (Dictionary <string, object>)newPrice0; iProductMasterClient productClient = new iProductMasterClient(); CustomProfile profile = CustomProfile.GetProfile(); mToolSiteHistory newSite = new mToolSiteHistory(); if (dictionary["ProdID"].ToString() != "0" && dictionary["ProdID"].ToString() != "") { newSite.ProdID = Convert.ToInt64(dictionary["ProdID"].ToString()); newSite.SiteID = Convert.ToInt64(dictionary["Site"].ToString()); if (dictionary["EffectiveDate"] != null) { newSite.EffectiveDate = Convert.ToDateTime(dictionary["EffectiveDate"]); } if (dictionary["StartDate"] != null) { newSite.StartDate = Convert.ToDateTime(dictionary["StartDate"]); } if (dictionary["EndDate"] != null) { newSite.Enddate = Convert.ToDateTime(dictionary["EndDate"]); } newSite.CreatedBy = profile.Personal.UserID; newSite.CreationDate = DateTime.Now; newSite.Active = true; result = productClient.SaveToolSiteHistory(newSite, profile.DBConnection._constr); } else { result = 0; } } catch (Exception ex) { } finally { } return(result); }
public static List <contact> GetBatchCodeBySKU(object objReq) { iCycleCountClient cycle = new iCycleCountClient(); CustomProfile profile = CustomProfile.GetProfile(); DataSet ds = new DataSet(); DataTable dt = new DataTable(); List <contact> LocList = new List <contact>(); try { Dictionary <string, object> dictionary = new Dictionary <string, object>(); dictionary = (Dictionary <string, object>)objReq; long WarehouseID = long.Parse(dictionary["WarehouseID"].ToString()); long SKUID = long.Parse(dictionary["SKUID"].ToString()); long locationID = long.Parse(dictionary["locationID"].ToString()); //ds = StatutoryClient.GetCustomerList(ddlcompanyId, profile.DBConnection._constr); ds = cycle.GetBatchCodeBySKU(SKUID, locationID, profile.DBConnection._constr); dt = ds.Tables[0]; contact Loc = new contact(); Loc.Name = "--Select--"; Loc.Id = "0"; LocList.Add(Loc); Loc = new contact(); if (dt.Rows.Count > 0) { for (int i = 0; i < dt.Rows.Count; i++) { Loc.Id = dt.Rows[i]["ID"].ToString(); Loc.Name = dt.Rows[i]["BatchCode"].ToString(); LocList.Add(Loc); Loc = new contact(); } } } catch { } finally { cycle.Close(); } return(LocList); }
public static string WMSaveDebitNote(object objCNHead, long poID, long warehouseID) { long dnhID = 0; int rslt = 0; string result = ""; iInboundClient Inbound = new iInboundClient(); try { CustomProfile profile = CustomProfile.GetProfile(); tDebitNoteHead dh = new tDebitNoteHead(); //tCreditNoteHead ch = new tCreditNoteHead(); Dictionary <string, object> d = new Dictionary <string, object>(); d = (Dictionary <string, object>)objCNHead; if (HttpContext.Current.Session["GRNID"] != null) { dh.ObjectName = "PurchaseOrder"; dh.ONO = Convert.ToInt64(d["ONO"]); dh.Remark = d["Remark"].ToString(); dh.DebitNoteDate = Convert.ToDateTime(d["DebitNoteDate"]); dh.Total = Convert.ToDecimal(d["Total"]); dh.Company = Convert.ToInt64(d["Company"]); dh.CreatedBy = profile.Personal.UserID; dh.CreationDate = DateTime.Now; dnhID = Inbound.SaveIntotDebitNoteHead(dh, profile.DBConnection._constr); if (dnhID > 0) { rslt = Inbound.SaveDebitNoteDetail(dnhID, poID, warehouseID, profile.DBConnection._constr); if (rslt == 1) { result = "Credit Note saved successfully"; } else { result = "Some error occurred"; } } } } catch (System.Exception ex) { Login.Profile.ErrorHandling(ex, "CreditNote.aspx", "WMSaveCreditNote"); } finally { Inbound.Close(); } return(result); }
public static string WMSetSessionRequest(string ObjectName, long RequestID, string state) { ClearSession(); HttpContext.Current.Session["PKUPID"] = RequestID; HttpContext.Current.Session["PKUPstate"] = state; iUCToolbarClient objService = new iUCToolbarClient(); mUserRolesDetail checkRole = new mUserRolesDetail(); CustomProfile profile = CustomProfile.GetProfile(); switch (ObjectName) { case "SalesOrder": checkRole = objService.GetUserRightsBy_ObjectNameUserID("SalesOrder", profile.Personal.UserID, profile.DBConnection._constr); break; case "PickUp": checkRole = objService.GetUserRightsBy_ObjectNameUserID("PickUp", profile.Personal.UserID, profile.DBConnection._constr); break; case "QC": checkRole = objService.GetUserRightsBy_ObjectNameUserID("QC", profile.Personal.UserID, profile.DBConnection._constr); break; case "LabelPrinting": checkRole = objService.GetUserRightsBy_ObjectNameUserID("LabelPrinting", profile.Personal.UserID, profile.DBConnection._constr); break; case "PutIn": checkRole = objService.GetUserRightsBy_ObjectNameUserID("PutIn", profile.Personal.UserID, profile.DBConnection._constr); break; case "Dispatch": checkRole = objService.GetUserRightsBy_ObjectNameUserID("Dispatch", profile.Personal.UserID, profile.DBConnection._constr); break; } if (checkRole.Add == false && checkRole.View == false) { ObjectName = "AccessDenied"; } else if (ObjectName == "Approval" && checkRole.Approval == false) { ObjectName = "AccessDenied"; } return(ObjectName); }
DataSet GetPrdLst(int pageIndex, string filter) { CustomProfile profile = CustomProfile.GetProfile(); DataSet ds1 = new DataSet(); ds1.Reset(); SqlConnection conn = new SqlConnection(""); conn.ConnectionString = ConfigurationManager.ConnectionStrings["elegantcrm7ConnectionString"].ConnectionString; long CustomerID = 10006; string str = ""; pageIndex = pageIndex + 1; if (filter == "") { if (profile.Personal.UserType == "Super Admin") { //str = "Select * from V_WMS_DocumentSearch"; str = "Select * from tDocument"; } else { str = "Select * from V_WMS_DocumentSearch where CustomerHeadID = '" + CustomerID + "'"; } SqlDataAdapter da = new System.Data.SqlClient.SqlDataAdapter(str, conn); ds1.Reset(); da.Fill(ds1); } else { if (profile.Personal.UserType == "Super Admin") { str = "Select * from V_WMS_DocumentSearch where ObjectName like '%" + filter + "%' or DocumentName like '%" + filter + "%' or DocType like '%" + filter + "%'"; } else { str = "Select * from V_WMS_DocumentSearch where CustomerHeadID = '" + CustomerID + "' and (ObjectName like '%" + filter + "%' or DocumentName like '%" + filter + "%' or DocType like '%" + filter + "%')"; } SqlDataAdapter da = new System.Data.SqlClient.SqlDataAdapter(str, conn); ds1.Reset(); da.Fill(ds1); } return(ds1); }
protected void clear() { CustomProfile profile = CustomProfile.GetProfile(); // ddlProductType.SelectedIndex = -1; //ddlCategory.SelectedIndex = -1; // ddlSubCategory.SelectedIndex = -1; txtProductCode.Text = ""; txtProductName.Text = ""; // ddlUOM.SelectedIndex = -1; //txtPrincipalPrice.Text = ""; //txtFixedDisc.Text = ""; //chkboxFixedDiscIsPercent.Checked = false; //chkProductSpe.Items[0].Selected = false; //chkProductSpe.Items[1].Selected = false; //txtWarrenyInDays.Text = "0"; //txtGuaranteeInDays.Text = "0"; //txtOpeningBalance.Text = ""; //txtCurrentBalance.Text = ""; //txtReorderLevel.Text = ""; //txtMaxBalanceQuantity.Text = ""; //txtMinOrderQuantity.Text = ""; //txtLeadTimeInDays.Text = ""; hdnprodID.Value = null; GVImages.DataSource = null; GVImages.DataBind(); GVProductSpecification.DataSource = null; GVProductSpecification.DataBind(); GVTaxSetup.DataSource = null; GVTaxSetup.DataBind(); iProductMasterClient productClient = new iProductMasterClient(); productClient.ClearTempSaveProductSpecificationDetailBySessionID(Session.SessionID.ToString(), profile.Personal.UserID.ToString(), profile.DBConnection._constr); productClient.ClearTempSaveProductTaxDetailBySessionID(Session.SessionID.ToString(), profile.Personal.UserID.ToString(), profile.DBConnection._constr); productClient.ClearTempSaveProductImagesBySessionID(Session.SessionID.ToString(), profile.Personal.UserID.ToString(), profile.DBConnection._constr); productClient.Close(); ResetUserControl(); }
protected void Grid1_OnRebind(object sender, EventArgs e) { iPartRequestClient objService = new iPartRequestClient(); try { Grid1.DataSource = null; Grid1.DataBind(); CustomProfile profile = CustomProfile.GetProfile(); HiddenField hdn = (HiddenField)UCProductSearch1.FindControl("hdnProductSearchSelectedRec"); List <POR_SP_GetPartDetail_ForRequest_Result> RequestPartList = new List <POR_SP_GetPartDetail_ForRequest_Result>(); if (hdn.Value == "") { RequestPartList = objService.GetExistingTempDataBySessionIDObjectName(Session.SessionID, profile.Personal.UserID.ToString(), ObjectName, profile.DBConnection._constr).ToList(); } else if (hdn.Value != "") { RequestPartList = objService.AddPartIntoRequest_TempData(hdn.Value, Session.SessionID, profile.Personal.UserID.ToString(), ObjectName, 0, profile.DBConnection._constr).ToList(); } ////Add by Suresh //if (hdnprodID.Value != "") //{ // RequestPartList = objService.AddPartIntoRequest_TempData(hdnprodID.Value, Session.SessionID, profile.Personal.UserID.ToString(), ObjectName, Convert.ToInt32(ddlSites.SelectedItem.Value), profile.DBConnection._constr).ToList(); // hdnprodID.Value = ""; //} if (hdnChngDept.Value == "0x00x0") { objService.ClearTempDataFromDBNEW(HttpContext.Current.Session.SessionID, profile.Personal.UserID.ToString(), ObjectName, profile.DBConnection._constr); RequestPartList = null; } hdnChngDept.Value = ""; var chngdpt = "1x1"; hdnChngDept.Value = chngdpt; Grid1.DataSource = RequestPartList; Grid1.DataBind(); } catch (System.Exception ex) { Login.Profile.ErrorHandling(ex, this, "Request Template", "Grid1_OnRebind"); } finally { objService.Close(); } }
public mUserRolesDetail GetUserRightsByObjectName(string ObjectName, string FormType, string AlertMsg) { mUserRolesDetail userRights = new mUserRolesDetail(); iUCToolbarClient objService = new iUCToolbarClient(); try { if (AlertMsg == "") { AlertMsg = "Not Allowed"; } CustomProfile profile = CustomProfile.GetProfile(); userRights = objService.GetUserRightsBy_ObjectNameUserID(ObjectName, profile.Personal.UserID, profile.DBConnection._constr); } catch { } finally { objService.Close(); } return(userRights); }
protected void GVProductSpecification_InsertRecord(object sender, Obout.Grid.GridRecordEventArgs e) { CustomProfile profile = CustomProfile.GetProfile(); mProductSpecificationDetail oprodspec = new mProductSpecificationDetail(); oprodspec.SpecificationTitle = e.Record["SpecificationTitle"].ToString(); oprodspec.SpecificationDescription = e.Record["SpecificationDescription"].ToString(); oprodspec.Active = "Y"; oprodspec.ProductID = Convert.ToInt32(hdnprodID.Value); oprodspec.CreatedBy = profile.Personal.UserID.ToString(); //need to change oprodspec.CreationDate = DateTime.Now; oprodspec.CompanyID = profile.Personal.CompanyID; // need to change //int upprodsperesult = productClient.InserttProductSpecificationDetail(oprodspec, profile.DBConnection._constr); iProductMasterClient productClient = new iProductMasterClient(); productClient.AddProductSpecificationToTempData(oprodspec, Session.SessionID.ToString(), profile.Personal.UserID.ToString(), profile.DBConnection._constr); productClient.Close(); }
protected void GVTaxSetup_OnRebind(object sender, EventArgs e) { try { CustomProfile profile = CustomProfile.GetProfile(); iProductMasterClient productClient = new iProductMasterClient(); GVTaxSetup.DataSource = productClient.GetTempSaveProductTaxDetailBySessionID(Session.SessionID.ToString(), profile.Personal.UserID.ToString(), profile.DBConnection._constr); GVTaxSetup.DataBind(); productClient.Close(); } catch (System.Exception ex) { Login.Profile.ErrorHandling(ex, this, "ProductMaster", "GVTaxSetup_OnRebind"); } finally { } }
public static void WMRemovePartFromList(Int32 Sequence) { iProductMasterClient productClient = new iProductMasterClient(); //iPartRequestClient objService = new iPartRequestClient(); try { Dictionary <string, object> dictionary = new Dictionary <string, object>(); CustomProfile profile = CustomProfile.GetProfile(); // objService.RemovePartFromRequest_TempData(HttpContext.Current.Session.SessionID, profile.Personal.UserID.ToString(), Sequence, profile.DBConnection._constr); productClient.RemoveAssetFromCurrentAsset_TempData(HttpContext.Current.Session.SessionID, profile.Personal.UserID.ToString(), "AssetList", Sequence, profile.DBConnection._constr); } catch { } finally { productClient.Close(); } }
protected void Grid1_RowCommand(object sender, Obout.Grid.GridRowEventArgs e) { iPartRequestClient objService = new iPartRequestClient(); CustomProfile profile = CustomProfile.GetProfile(); try { Obout.Grid.GridDataControlFieldCell cell = e.Row.Cells[6] as Obout.Grid.GridDataControlFieldCell; DropDownList ddl = cell.FindControl("ddlUOM") as DropDownList; ddl.Attributes.Add("onchange", "javascript:GetIndex('" + ddl.SelectedIndex + "'," + e.Row.RowIndex + ")"); } catch (System.Exception ex) { Login.Profile.ErrorHandling(ex, this, "Request Template", "Grid1_RowCommand"); } finally { objService.Close(); } }
public static PORtMINHead WMSetSessionIssue(string InvokerObject, long IssueID, string state) { iPartIssueClient objService = new iPartIssueClient(); PORtMINHead IssueHead = new PORtMINHead(); try { CustomProfile profile = CustomProfile.GetProfile(); HttpContext.Current.Session["PORIssueID"] = IssueID; HttpContext.Current.Session["PORstate"] = state; objService.ClearTempDataFromDB(HttpContext.Current.Session.SessionID, profile.Personal.UserID.ToString(), ObjectName, profile.DBConnection._constr); objService.GetIssuePartDetailByIssueID(IssueID, HttpContext.Current.Session.SessionID, profile.Personal.UserID.ToString(), ObjectName, "true", profile.DBConnection._constr).ToList(); IssueHead = objService.GetIssueHeadByIssueID(IssueID, profile.DBConnection._constr); } catch { } finally { objService.Close(); } return(IssueHead); }
public static void WMpageAddNew() { iPartIssueClient objService = new iPartIssueClient(); try { CustomProfile profile = CustomProfile.GetProfile(); HttpContext.Current.Session["PORIssueID"] = "0"; HttpContext.Current.Session["PORstate"] = "Add"; objService.ClearTempDataFromDB(HttpContext.Current.Session.SessionID, profile.Personal.UserID.ToString(), ObjectName, profile.DBConnection._constr); // objService.GetIssuePartDetailByRequestID(Convert.ToInt64(HttpContext.Current.Session["PORRequestID"].ToString()), HttpContext.Current.Session.SessionID, profile.Personal.UserID.ToString(), ObjectName, "true", profile.DBConnection._constr).ToList(); } catch { } finally { objService.Close(); } }