供应商注册页面二开原创
125次浏览
编辑于2023年09月05日 17:38:33
前端代码 $("#saveReg").on("click", function () { if (checkBeforeSave() == false) { return; } var rootPath = getRootPath(); var postData = { action: "SaveSupReg", FID: $("#FID").val(), dbId: $("#dbId").val(), FLocMobile: $("#FLocMobile").val(), FName: $("#FName").val() 这里加需要的字段 }; private string CreateSupRegStandardContent(JSONObject paramJson) { new JObject(); JObject jObject = new JObject(); JObject jObject2 = new JObject(); this.SetStrValue(paramJson, jObject2, "FID"); DateTime.Now.ToString(); string arg_39_0 = string.Empty; this.SetStrValue(paramJson, jObject2, "FName"); this.SetStrValue(paramJson, jObject2, "FShortName"); this.SetStrValue(paramJson, jObject2, "FLocMobile", "FRegPhone"); this.SetStrValue(paramJson, jObject2, "FDescription"); 添加需要的字段 JObject jObject3 = new JObject(); this.SetStrValue(paramJson, jObject3, "FAddress"); this.SetStrValue(paramJson, jObject3, "FZip"); this.SetStrValue(paramJson, jObject3, "FWebSite"); this.SetDateTimeValue(paramJson, jObject3, "FFoundDate"); this.SetStrValue(paramJson, jObject3, "FLegalPerson"); this.SetDecimalValue(paramJson, jObject3, "FRegisterFund"); this.SetStrValue(paramJson, jObject3, "FRegisterCode"); this.SetStrValue(paramJson, jObject3, "FTendPermit"); this.SetStrValue(paramJson, jObject3, "FRegNumber"); this.SetStrValue(paramJson, jObject3, "FRegisterAddress"); this.SetStrValue(paramJson, jObject3, "FSupplyClassify"); this.SetBaseDataValue(paramJson, jObject3, "FCompanyClassify"); this.SetBaseDataValue(paramJson, jObject3, "FCompanyNature"); this.SetBaseDataValue(paramJson, jObject3, "FCompanyScale"); this.SetBoolValue(paramJson, jObject3, "FVmiBusiness"); jObject2.Add("FSupRegBase", jObject3); JArray jArray = new JArray(); JObject jObject4 = new JObject(); this.SetStrValue(paramJson, jObject4, "FLocContact"); this.SetStrValue(paramJson, jObject4, "FLocTel"); this.SetStrValue(paramJson, jObject4, "FLocMobile"); this.SetStrValue(paramJson, jObject4, "FLocEMail"); this.SetStrValue(paramJson, jObject4, "FLocName"); this.SetStrValue(paramJson, jObject4, "FLocAddress"); this.SetStrValue(paramJson, jObject4, "FLocDescription"); jObject4.Add("FLocIsUsed", true); jArray.Add(jObject4); jObject2.Add("FSupRegLoc", jArray); JObject jObject5 = new JObject(); this.SetBaseDataValue(paramJson, jObject5, "FPayCurrencyId"); this.SetBaseDataValue(paramJson, jObject5, "FSettleTypeId"); this.SetBaseDataValue(paramJson, jObject5, "FPayCondition"); this.SetBaseDataValue(paramJson, jObject5, "FTaxType"); this.SetStrValue(paramJson, jObject5, "FTaxRegisterCode"); this.SetBaseDataValue(paramJson, jObject5, "FTendType"); this.SetStrValue(paramJson, jObject5, "FInvoiceType"); this.SetBaseDataValue(paramJson, jObject5, "FTaxRateId"); jObject2.Add("FSupRegFin", jObject5); jObject.Add("Model", jObject2); return jObject.ToString(); }
推荐阅读