| | |
| | | return; |
| | | } |
| | | |
| | | #region |
| | | //其它资质文件 |
| | | OA_SuppliersOtherQualification model = new OA_SuppliersOtherQualification(); |
| | | CY.WebForm.cs.UploadCS.UpFileResult _UpFileResult3 = CY.WebForm.cs.UploadCS.Upload("ProductPics", model.FileId); |
| | | |
| | | if (_UpFileResult3.returnerror.Count == 0) |
| | | { |
| | | ArrayList NameList = new ArrayList(); |
| | | for (int i = 0; i < _UpFileResult3.returnfilename.Count; i++) |
| | | { |
| | | OA_SuppliersOtherQualification model1 = new OA_SuppliersOtherQualification(); |
| | | model1.FileId = _UpFileResult3.returnfilename[i].ToString(); |
| | | model1.SuppliersId = Request["Keyid"].ToInt32(); |
| | | NameList.Add(model1); |
| | | } |
| | | string[] aaa = (Request.Form["OldProductPics"]??"").Split(','); |
| | | for (int i = 0; i < aaa.Length; i++) |
| | | { |
| | | if (!string.IsNullOrEmpty(aaa[i].ToString2())) |
| | | { |
| | | OA_SuppliersOtherQualification newmodel = new OA_SuppliersOtherQualification(); |
| | | newmodel.FileId = aaa[i].ToString2(); |
| | | newmodel.SuppliersId = Request["Keyid"].ToInt32(); |
| | | NameList.Add(newmodel); |
| | | } |
| | | } |
| | | _OA_SuppliersOtherQualificationBLL.DeleteAllModel(supplier.Keyid.ToString()); |
| | | _OA_SuppliersOtherQualificationBLL.InsertModelList(NameList, supplier.Keyid.ToString()); |
| | | } |
| | | |
| | | #endregion |
| | | |
| | | supplier.CooperativeStateId = this.selCooperativeStateId.Value.ToInt32(); |
| | | supplier.SuppliersLevelId = this.selSuppliersLevelId.Value.ToInt32(); |
| | |
| | | supplier.CreateTime = System.DateTime.Now; |
| | | if (_OA_SuppliersBLL.InsertModel(supplier)) |
| | | { |
| | | #region |
| | | //其它资质文件 |
| | | OA_SuppliersOtherQualification model = new OA_SuppliersOtherQualification(); |
| | | CY.WebForm.cs.UploadCS.UpFileResult _UpFileResult3 = CY.WebForm.cs.UploadCS.Upload("ProductPics", model.FileId); |
| | | |
| | | if (_UpFileResult3.returnerror.Count == 0) |
| | | { |
| | | ArrayList NameList = new ArrayList(); |
| | | for (int i = 0; i < _UpFileResult3.returnfilename.Count; i++) |
| | | { |
| | | OA_SuppliersOtherQualification model1 = new OA_SuppliersOtherQualification(); |
| | | model1.FileId = _UpFileResult3.returnfilename[i].ToString(); |
| | | model1.SuppliersId = supplier.Keyid; |
| | | NameList.Add(model1); |
| | | } |
| | | string[] aaa = (Request.Form["OldProductPics"] ?? "").Split(','); |
| | | for (int i = 0; i < aaa.Length; i++) |
| | | { |
| | | if (!string.IsNullOrEmpty(aaa[i].ToString2())) |
| | | { |
| | | OA_SuppliersOtherQualification newmodel = new OA_SuppliersOtherQualification(); |
| | | newmodel.FileId = aaa[i].ToString2(); |
| | | newmodel.SuppliersId = supplier.Keyid; |
| | | NameList.Add(newmodel); |
| | | } |
| | | } |
| | | _OA_SuppliersOtherQualificationBLL.DeleteAllModel(supplier.Keyid.ToString()); |
| | | _OA_SuppliersOtherQualificationBLL.InsertModelList(NameList, supplier.Keyid.ToString()); |
| | | } |
| | | |
| | | #endregion |
| | | if (!string.IsNullOrEmpty(Request["flasss"])) |
| | | { |
| | | JavaScript.MessageBoxCloseAndRefreshparent("新增成功", this); |