public JsonResult UpdateData(string Lino1, string Lino2, string ObjKy, string isUpdate, string TrnKy) { int UsrKy = HTNSession.UsrKy; int CKy = HTNSession.CKy; bool isupdate = isUpdate == "1"; CheqSaveDetail SaveDetail = new CheqSaveDetail(); SaveDetail = apiOpr.ChequeRetrunUpdate(CKy, UsrKy, ObjKy, Lino1, Lino2, TrnKy, HTNSession.Environment); return(Json(SaveDetail, JsonRequestBehavior.AllowGet)); }
public JsonResult InsertData(string Lino1, string Lino2, string ObjKy, string isUpdate, string trntypKy) { int UsrKy = HTNSession.UsrKy; int CKy = HTNSession.CKy; bool isupdate = isUpdate == "1"; CheqSaveDetail SaveDetail = new CheqSaveDetail(); SaveDetail = apiOpr.ChequeReturnInsert(HTNSession.Environment, CKy, UsrKy, Lino1, Lino2, isupdate, trntypKy, ObjKy); return(Json(SaveDetail, JsonRequestBehavior.AllowGet)); }
public CheqSaveDetail ChequeRetrunUpdate(int CKy, int UsrKy, string ObjKy, string Lino1, string Lino2, string TrnKy, string EnvironmentName) { var actionUri = "ChequeUpdate"; var paramDictionary = new Dictionary <string, object>(); paramDictionary.Add("CKy", CKy); paramDictionary.Add("UsrKy", UsrKy); paramDictionary.Add("TrnKy", TrnKy); paramDictionary.Add("ObjKy", ObjKy); paramDictionary.Add("Lino1", Lino1); paramDictionary.Add("Lino2", Lino2); CheqSaveDetail Obj = new CheqSaveDetail(); Obj = RunApiOperation( ChequeRtnBaseUri, actionUri, EnvironmentName, paramDictionary, Obj.GetType()) as CheqSaveDetail; return(Obj); }
public CheqSaveDetail ChequeReturnInsert(string EnvironmentName, int CKy, int UsrKy, string Lino1, string Lino2, bool isUpdate, string trntypKy, string objKy) { var actionUri = "ChequeInsert"; var paramDictionary = new Dictionary <string, object>(); paramDictionary.Add("CKy", CKy); paramDictionary.Add("UsrKy", UsrKy); paramDictionary.Add("ObjKy", objKy); paramDictionary.Add("Lino1", Lino1); paramDictionary.Add("Lino2", Lino2); paramDictionary.Add("trntypKy", trntypKy); CheqSaveDetail list = new CheqSaveDetail(); list = RunApiOperation( ChequeRtnBaseUri, actionUri, EnvironmentName, paramDictionary, list.GetType()) as CheqSaveDetail; return(list); }