private void Button1_Click(object sender, EventArgs e) { //try { var ud = Session["UserData"] as UserData; var bl = new DS_CompanyInfo_Br(); var md = bl.GetSingleByMemberID(ud.Member.ID); string LegRep = Request.Form["LegRep"]; string Bank = Request.Form["Bank"]; string Account = Request.Form["Account"]; string StorageArea = Request.Form["StorageArea"]; byte Employees = byte.Parse(Request.Form["Employees"]); byte StudyEmployees = byte.Parse(Request.Form["StudyEmployees"]); string BrandName = Request.Form["BrandName"]; int Monthly = Request.Form["Monthly"].Trim() != ""?int.Parse(Request.Form["Monthly"]):0; string unit = Request.Form["unit"]; byte AnnualTurnover = byte.Parse(Request.Form["AnnualTurnover"]); byte AnnualImports = byte.Parse(Request.Form["AnnualImports"]); byte AnnualExport = byte.Parse(Request.Form["AnnualExport"]); string MSCer = Request.Form["MSCer"]; string qc = Request.Form["qc"]; string mainmarket = Request.Form["mainmarket"]; string MajCust = Request.Form["MajCust"]; bool oem = string.IsNullOrEmpty(Request.Form["oem"]) ? false : bool.Parse(Request.Form["oem"]); string ComImg = Request.Form["comimg"]; md.LegalRepresentative = LegRep; md.Bank = Bank; md.Account = Account; md.StorageArea = StorageArea; md.Employees = Employees; md.StudyEmployees = StudyEmployees; md.BrandName = BrandName; md.Monthly = Monthly; md.MonthlyUnit = unit; md.AnnualTurnover = AnnualTurnover; md.AnnualImports = AnnualImports; md.AnnualExport = AnnualExport; md.MSCer = MSCer; md.QualityControl = qc; md.MainMarket = mainmarket; md.MajorCustomers = MajCust; md.OEM = oem; md.ComImg = ComImg; bl.Update(md); Common.MessageBox.ShowAndRedirect(this, "保存成功", "DetailInfo.aspx"); //} //catch (Exception ex) //{ // Common.WriteLog.SetErrLog(Request.Url.ToString(), "Button1_Click", ex.Message); // Common.MessageBox.ResponseScript(this, "alert('保存出错');history.back();"); //} }
protected void Page_Load(object sender, EventArgs e) { string act = Request["action"]; if (!string.IsNullOrEmpty(act)) { switch (act) { case "setmap": var mbbl = new DS_CompanyInfo_Br(); var member = mbbl.GetSingleByMemberID(int.Parse(Request.Form["memberID"])); member.MapNid = Request.Form["mapNid"]; mbbl.Update(member); break; } } }
private void Button1_Click(object sender, EventArgs e) { try { var ud = Session["UserData"] as UserData; var bl = new DS_CompanyInfo_Br(); var md = bl.GetSingleByMemberID(ud.Member.ID); string companyName = Request.Form["companyName"]; string BusType = Request.Form["BusType"]; string BusModel = Request.Form["BusModel"]; string RegCapital = Request.Form["RegCapital"]; string CapitalType = Request.Form["CapitalType"]; string YearEst = Request.Form["YearEst"]; string companyAddress = Request.Form["companyAddress"]; string regArea = Request.Form["regArea"]; string busArea = Request.Form["busArea"]; string ZipCode = Request.Form["ZipCode"]; string oserver = Request.Form["oserver"]; string buypro = Request.Form["buypro"]; string MainIndu = Request.Form["MainIndu"]; string profile = Request.Form["profile"]; md.CompanyName = companyName; md.BusinessType = byte.Parse(BusType); md.BusinessModel = BusModel; md.RegisteredCapital = double.Parse(RegCapital); md.CapitalType = CapitalType; md.YearEstablished = short.Parse(YearEst); md.Province = companyAddress; md.RegistrationArea = regArea; md.BusinessAddress = busArea; md.ZipCode = ZipCode; md.OfferService = oserver; md.BuyService = buypro; md.MainIndustry = MainIndu; md.Profile = profile; bl.Update(md); Common.MessageBox.ShowAndRedirect(this, "保存成功", "baseinfo.aspx"); } catch (Exception ex) { Common.WriteLog.SetErrLog(Request.Url.ToString(), "Button1_Click", ex.Message); Common.MessageBox.ResponseScript(this, "alert('保存出错');history.back();"); } }
private void Button1_Click(object sender, EventArgs e) { //try { var ud = Session["UserData"] as UserData; var bl = new DS_CompanyInfo_Br(); var md = bl.GetSingleByMemberID(ud.Member.ID); string LegRep = Request.Form["LegRep"]; string Bank = Request.Form["Bank"]; string Account = Request.Form["Account"]; string StorageArea = Request.Form["StorageArea"]; byte Employees = byte.Parse(Request.Form["Employees"]); byte StudyEmployees = byte.Parse(Request.Form["StudyEmployees"]); string BrandName = Request.Form["BrandName"]; int Monthly =Request.Form["Monthly"].Trim()!=""?int.Parse(Request.Form["Monthly"]):0; string unit = Request.Form["unit"]; byte AnnualTurnover = byte.Parse(Request.Form["AnnualTurnover"]); byte AnnualImports = byte.Parse(Request.Form["AnnualImports"]); byte AnnualExport = byte.Parse(Request.Form["AnnualExport"]); string MSCer = Request.Form["MSCer"]; string qc = Request.Form["qc"]; string mainmarket = Request.Form["mainmarket"]; string MajCust = Request.Form["MajCust"]; bool oem = string.IsNullOrEmpty(Request.Form["oem"]) ? false : bool.Parse(Request.Form["oem"]); string ComImg = Request.Form["comimg"]; md.LegalRepresentative = LegRep; md.Bank = Bank; md.Account = Account; md.StorageArea = StorageArea; md.Employees = Employees; md.StudyEmployees = StudyEmployees; md.BrandName = BrandName; md.Monthly = Monthly; md.MonthlyUnit = unit; md.AnnualTurnover = AnnualTurnover; md.AnnualImports = AnnualImports; md.AnnualExport = AnnualExport; md.MSCer = MSCer; md.QualityControl = qc; md.MainMarket = mainmarket; md.MajorCustomers = MajCust; md.OEM = oem; md.ComImg = ComImg; bl.Update(md); Common.MessageBox.ShowAndRedirect(this, "保存成功", "DetailInfo.aspx"); //} //catch (Exception ex) //{ // Common.WriteLog.SetErrLog(Request.Url.ToString(), "Button1_Click", ex.Message); // Common.MessageBox.ResponseScript(this, "alert('保存出错');history.back();"); //} }
private void Button1_Click(object sender, EventArgs e) { try { var ud = Session["UserData"] as UserData; var bl = new DS_CompanyInfo_Br(); var md = bl.GetSingleByMemberID(ud.Member.ID); string companyName=Request.Form["companyName"]; string BusType = Request.Form["BusType"]; string BusModel = Request.Form["BusModel"]; string RegCapital = Request.Form["RegCapital"]; string CapitalType = Request.Form["CapitalType"]; string YearEst = Request.Form["YearEst"]; string companyAddress = Request.Form["companyAddress"]; string regArea = Request.Form["regArea"]; string busArea = Request.Form["busArea"]; string ZipCode = Request.Form["ZipCode"]; string oserver = Request.Form["oserver"]; string buypro = Request.Form["buypro"]; string MainIndu = Request.Form["MainIndu"]; string profile = Request.Form["profile"]; md.CompanyName = companyName; md.BusinessType = byte.Parse(BusType); md.BusinessModel = BusModel; md.RegisteredCapital = double.Parse(RegCapital); md.CapitalType = CapitalType; md.YearEstablished =short.Parse(YearEst); md.Province = companyAddress; md.RegistrationArea = regArea; md.BusinessAddress = busArea; md.ZipCode = ZipCode; md.OfferService = oserver; md.BuyService = buypro; md.MainIndustry = MainIndu; md.Profile = profile; bl.Update(md); Common.MessageBox.ShowAndRedirect(this, "保存成功", "baseinfo.aspx"); } catch (Exception ex) { Common.WriteLog.SetErrLog(Request.Url.ToString(), "Button1_Click", ex.Message); Common.MessageBox.ResponseScript(this, "alert('保存出错');history.back();"); } }