private String Save() { if (Session["userid"] is object) { userid = Session["userid"].ToString(); } String param1 = ""; if (Request.Params["param1"] is object) param1 = Request.Params["param1"].ToString(); String param2 = ""; if (Request.Params["param2"] is object) param2 = Request.Params["param2"].ToString(); String param3 = ""; if (Request.Params["param3"] is object) param3 = Request.Params["param3"].ToString(); String param4 = ""; if (Request.Params["param4"] is object) param4 = Request.Params["param4"].ToString(); String param5 = ""; if (Request.Params["param5"] is object) param5 = Request.Params["param5"].ToString(); String param6 = ""; if (Request.Params["param6"] is object) param6 = Request.Params["param6"].ToString(); String param7 = ""; if (Request.Params["param7"] is object) param7 = Request.Params["param7"].ToString(); String param8 = ""; if (Request.Params["param8"] is object) param8 = Request.Params["param8"].ToString(); String param9 = ""; if (Request.Params["param9"] is object) param9 = Request.Params["param9"].ToString(); String param10 = ""; if (Request.Params["param10"] is object) param10 = Request.Params["param10"].ToString(); String param11 = ""; if (Request.Params["param11"] is object) param11 = Request.Params["param11"].ToString(); String param12 = ""; if (Request.Params["param12"] is object) param12 = Request.Params["param12"].ToString(); String param13 = ""; if (Request.Params["param13"] is object) param13 = Request.Params["param13"].ToString(); String param14 = ""; if (Request.Params["param14"] is object) param14 = Request.Params["param14"].ToString(); String param15 = ""; if (Request.Params["param15"] is object) param15 = Request.Params["param15"].ToString(); String param16 = ""; if (Request.Params["param16"] is object) param16 = Request.Params["param16"].ToString(); //String sql = ""; String output = ""; try { output = param1; if (output == "E" || output == "D" || output == "A") { ALMIS.ExecuteSTP eSTP = new ALMIS.ExecuteSTP(); eSTP.Datas(); DataSet ds = new DataSet(); ds = eSTP.List16("P_BERKS1", "X", param2, "", "", "", "", "", "", "", "", "", "", "", "", "", ""); dt = ds.Tables[0]; if (dt.Rows.Count > 0) { if (output == "E") output = "noedit"; if (output == "D") output = "nodelete"; if (output == "A") output = "noadd"; return output; } } if (output == "I" || output == "E" || output == "D") { ALMIS.ExecuteSTP eSTP = new ALMIS.ExecuteSTP(); eSTP.Datas(); DataSet ds = new DataSet(); eSTP.save16("P_BERKS1", param1, param2, param3, param4, param5, param6, param7, param8, param9, param10, param11, param12, userid, param14, param15, "0"); return output; } else output = "gagal"; } catch (Exception ex) { Response.Write(ex.Message); Response.End(); return ex.Message; } return output; }
private String SaveUploadKlaimUser() { string IDKlaimUser = Request.Params["IDKlaimUser"].ToString(); string _stNamaFile = Request.Params["NAMA"].ToString(); string _stKeterangan = Request.Params["KETERANGAN"].ToString(); string _stNomor = Request.Params["NOMOR"].ToString(); ALMIS.UploadFile uf = new ALMIS.UploadFile(); uf.Datas(); string _stDates = DateTime.Today.ToString("yyyyMMdd"); string param1 = Request.Params["param1"].ToString(); string param5 = Request.Params["param5"].ToString(); string user = Request.Params["user"].ToString(); string wilayah = Request.Params["wilay"].ToString(); string param11 = Request.Params["param11"].ToString(); string NmrSem = Request.Params["NmrSem"].ToString(); string _stUploadKeterangan = ""; _stUploadKeterangan = _stKeterangan; string uploadFolder = Request.PhysicalApplicationPath + "uploadDocument\\"; string extension = Path.GetExtension(_stNamaFile); ALMIS.paramz ext = new ALMIS.paramz(); ALMIS.ExecuteSTP eSTP = new ALMIS.ExecuteSTP(); eSTP.Datas(); DataSet ds = new DataSet(); if (IDKlaimUser == null) { if (NmrSem == "0") { string txtNmrIdn = this.txtNmrIdn.Text; string txtNama = this.txtNama.Text; string txtAlamat = this.txtAlamat.Text; string txtNoHandphone = this.txtNoHandphone.Text; string ddKabupaten = this.ddKabupaten.SelectedValue.ToString(); ////param13 = ddprs.SelectedValue.ToString(); eSTP.Datas(); eSTP.save16("P_CLAUSR", "I", NmrSem, "", txtNmrIdn, txtNama, txtAlamat, txtNoHandphone, "", "", "", userid, "", "", "", "", ""); } } eSTP.save7("P_CLAUSR_D", param1, IDKlaimUser, "", param5, _stKeterangan, param11, "0"); if (extension != ".exe") { //eSTP.save12("P_HDOCUM", "I", user, _stDates, "Claim User", param5, uploadFolder, IDKlaimUser, _stNomor + extension, _stNamaFile, _stUploadKeterangan, param11, "0"); uf.UploadFilesWeb("I", user, _stDates, "Claim User", param5, uploadFolder, IDKlaimUser, _stNomor + extension, _stNamaFile, _stUploadKeterangan, param11, "0"); //uf.UploadFilesWeb("I", user, _stDates, "Claim User", param5, uploadFolder, IDKlaimUser, _stNomor + extension, _stNamaFile, _stUploadKeterangan, param11, "0"); } var _stOutput = ID; return _stOutput; }