protected void btnStep3_Click(object sender, EventArgs e) { try { DBmessage dbm = new DBmessage(DBMessageType.Error, SystemMessage_DBMessage.NotRegisterOnePersonFullInfo); PaperInfoMan_Business paperInfoMan = new PaperInfoMan_Business(); List <PaperWriter> paperWriters = new List <PaperWriter>(); string[] names = hfFirstName.Value.Split(','); string[] lastnames = hflastName.Value.Split(','); string[] incharge = hfIncharge.Value.Split(','); for (int i = 0; i < names.Length - 1; i++) { if (names[i] != string.Empty && lastnames[i] != string.Empty) { paperWriters.Add(new PaperWriter() { Fname = names[i], Lname = lastnames[i], Responsibility = new PaperWriterResponsibility(Resposibility(incharge[i])) }); } } int paperID = System.Convert.ToInt32(FormBase.UrlDecode(Request[RequestMSG.SubmitOnline])); if (paperWriters.Count > 0) { dbm = paperInfoMan.RegisterPaper_Step2(paperWriters, paperID); } if (dbm.Type == DBMessageType.Sucsess) { FormBase.SendRequest(ServerDirectory.Paper + "/SubmitOnline_Step3.aspx", new string[] { RequestMSG.SubmitOnline }, new string[] { paperID.ToString() }); } else { ShowNotify(dbm); } } catch (MyException myEx) { ShowNotify(myEx); } catch (Exception ex) { ShowNotify(ex); } }
protected void btnStep3_Click(object sender, EventArgs e) { try { DBmessage dbm = new DBmessage(DBMessageType.Error, SystemMessage_DBMessage.NotRegisterOnePersonFullInfo); PaperInfoMan_Business paperInfoMan = new PaperInfoMan_Business(); List<PaperWriter> paperWriters = new List<PaperWriter>(); string[] names = hfFirstName.Value.Split(','); string[] lastnames = hflastName.Value.Split(','); string[] incharge = hfIncharge.Value.Split(','); for (int i = 0; i < names.Length - 1; i++) { if (names[i] != string.Empty && lastnames[i] != string.Empty) paperWriters.Add(new PaperWriter() { Fname = names[i], Lname = lastnames[i], Responsibility = new PaperWriterResponsibility(Resposibility(incharge[i])) }); } int paperID = System.Convert.ToInt32(FormBase.UrlDecode(Request[RequestMSG.SubmitOnline])); if (paperWriters.Count > 0) dbm = paperInfoMan.RegisterPaper_Step2(paperWriters, paperID); if (dbm.Type == DBMessageType.Sucsess) { FormBase.SendRequest(ServerDirectory.Paper + "/SubmitOnline_Step3.aspx", new string[] { RequestMSG.SubmitOnline }, new string[] { paperID.ToString() }); } else ShowNotify(dbm); } catch (MyException myEx) { ShowNotify(myEx); } catch (Exception ex) { ShowNotify(ex); } }