/*__________________________________________________________________________________________*/ private Boolean ReadSupportCommentFromDb() { Boolean retValue = true; if (!_custToEdit.SupportComments.Any()) { var customerDBProceduresForSupport = new Support.Controllers.Database.Procedures.CustomerDBProcedures(GlobalDataAccessor.Instance.DesktopSession); var comments = new DataTable(); retValue = customerDBProceduresForSupport.getSupportCustomerCommentsFromDBData( this.CustomerNumber, out comments, out DBReturnCode, out errorMessage); if (retValue) { _custToEdit.SupportComments.Clear(); CustomerProcedures.getCustomerCommentsDataInObject(comments, _custToEdit); } } LoadCommentsDateToGrid(); return(retValue); }
/*__________________________________________________________________________________________*/ private Boolean WriteCustomerStatusChangeToDB() { Boolean retValue = false; var customerDBProceduresForSupport = new Support.Controllers.Database.Procedures.CustomerDBProcedures(GlobalDataAccessor.Instance.DesktopSession); retValue = customerDBProceduresForSupport.GetChangeCustomerStatusDBData(CustomerNumber, CustomerStatusChanged ? "Y": "N", ChangeStatusTo, CustomerReasonChanged ? "Y" : "N", ChangeReasonTo, out DBReturnCode, out errorMessage); return(retValue); }
/*__________________________________________________________________________________________*/ private Boolean ReadSupportCommentFromDb() { Boolean retValue = false; var customerDBProceduresForSupport = new Support.Controllers.Database.Procedures.CustomerDBProcedures(GlobalDataAccessor.Instance.DesktopSession); if ((retValue = customerDBProceduresForSupport.ReadSupportCustomerCommentToDBData( this.CustomerNumber, _supportCommentRecord, out DBReturnCode, out errorMessage))) { MapFormDataFromGlobalProperties(); } return(retValue); }
/*__________________________________________________________________________________________*/ private Boolean WriteSupportCommetToDb() { Boolean retValue = false; Support.Controllers.Database.Procedures.CustomerDBProcedures DBProceduresForSupport = new Support.Controllers.Database.Procedures.CustomerDBProcedures(GlobalDataAccessor.Instance.DesktopSession); //Prep the message PrepMessageBeforeSave(); retValue = DBProceduresForSupport.WriteSupportCustomerCommentToDBData( this.CustomerNumber, this.TxbComment.Text, this.UserId, out DBReturnCode, out errorMessage); return(retValue); }