Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public String SaveFinanceInfoPTJ(ConsultationViewModel model)
- {
- string result = "Success";
- var user = LoginUser.GetLogin();
- int StafPk = user.STAF_FK;
- string ID = model.regpk2;
- CONS_UTMFIN_TABLE obj = new CONS_UTMFIN_TABLE();
- try
- {
- if (model.cekUTMFINPart == "Yes")
- {
- foreach (string dtUTMFIN in model.source_no_utmfin)
- {
- ConsultationModel consModel = new ConsultationModel();
- CONS_UTMFIN_TABLE obj2 = new CONS_UTMFIN_TABLE();
- obj.SOURCE_NO_UTMFIN = dtUTMFIN;
- obj2 = consDB.getDataUTMFIN(obj);
- consModel.REGISTRATION_PK = ID;
- consModel.SOURCE_NO = obj2.SOURCE_NO;
- consModel.SODO = obj2.SODO;
- consModel.TOTAL_AMOUNT_FIN = obj2.TOTAL_AMOUNT_FIN;
- consModel.UTMFIN_DATE = obj2.UTMFIN_DATE;
- consDB.AddViewTableFinPTJ(consModel);
- }
- }
- else
- {
- }
- }
- catch (Exception ex)
- {
- throw ex;
- }
- return result;
- }
Add Comment
Please, Sign In to add comment