public Task <ResponseMessage> SendHistory(History history) { if (APIInvalid) { LastCallResult = NetworkResult.AuthenticationFailed; return(Task.FromResult(new ResponseMessage() { IsSuccess = false })); } if (FailNetwork) { LastCallResult = NetworkResult.NetworkError; throw new IOException(); } if (UnknownError) { LastCallResult = NetworkResult.UnknownError; throw new Exception("ups"); } if (history != null) { HistoryEvents.AddRange(history.Events); HistoryActions.AddRange(history.Actions); } LastCallResult = NetworkResult.Success; return(Task.FromResult(new ResponseMessage() { IsSuccess = true })); }
DataSet IFundAllowanceDataLayer.GetAllowanceHistory(string sFiscalYear, HistoryActions code1, HistoryActions code2) { var arrParams = new SqlParameter[3]; arrParams[0] = new SqlParameter("@FiscalYear", SqlDbType.VarChar); arrParams[0].Value = sFiscalYear; arrParams[1] = new SqlParameter("@Code1", SqlDbType.Int); arrParams[1].Value = (int)code1; arrParams[2] = new SqlParameter("@Code2", SqlDbType.Int); arrParams[2].Value = (int)code2; return(Da.GetDataSet("spGetAllowanceHistory", arrParams)); }
DataSet IFundAllowanceDataLayer.GetFundStatusUpdateHistory2(HistoryActions code, string sFisalYear, string sBookMonth, string sOrg) { var da = new DataAccess(Settings.Default.DefaultConn); var arrParams = new SqlParameter[4]; arrParams[0] = new SqlParameter("@HistoryAction", SqlDbType.Int); arrParams[0].Value = code; arrParams[1] = new SqlParameter("@FiscalYear", SqlDbType.VarChar); arrParams[1].Value = sFisalYear; arrParams[2] = new SqlParameter("@BookMonth", SqlDbType.VarChar); arrParams[2].Value = sBookMonth; arrParams[3] = new SqlParameter("@OrgCode", SqlDbType.VarChar); arrParams[3].Value = sOrg; return(Da.GetDataSet("spGetFundStatusUpdateHistory2", arrParams)); }
public static string OrderHistoryAction(HistoryActions action) { switch (action) { case HistoryActions.Created: return Loc.Dic.Created; case HistoryActions.Edited: return Loc.Dic.Edited; case HistoryActions.PartiallyApproved: return Loc.Dic.PartiallyApproved; case HistoryActions.Declined: return Loc.Dic.Declined; case HistoryActions.ReturnedToCreator: return Loc.Dic.ReturnedToCreator; case HistoryActions.PassedApprovalRoute: return Loc.Dic.PassedApprovalRoute; case HistoryActions.Canceled: return Loc.Dic.Canceled; case HistoryActions.InvoiceScanned: return Loc.Dic.InvoiceScanned; case HistoryActions.InvoiceApproved: return Loc.Dic.InvoiceApproved; case HistoryActions.ExportedToFile: return Loc.Dic.ExportedToFile; case HistoryActions.ReceiptScanned: return Loc.Dic.ReceiptScanned; case HistoryActions.AddedToInventory: return Loc.Dic.AddedToInventory; case HistoryActions.OrderPrinted: return Loc.Dic.OrderPrinted; default: return Loc.Dic.Unknown; } }
public static string OrderHistoryAction(HistoryActions action) { switch (action) { case HistoryActions.Created: return(Loc.Dic.Created); case HistoryActions.Edited: return(Loc.Dic.Edited); case HistoryActions.PartiallyApproved: return(Loc.Dic.PartiallyApproved); case HistoryActions.Declined: return(Loc.Dic.Declined); case HistoryActions.ReturnedToCreator: return(Loc.Dic.ReturnedToCreator); case HistoryActions.PassedApprovalRoute: return(Loc.Dic.PassedApprovalRoute); case HistoryActions.Canceled: return(Loc.Dic.Canceled); case HistoryActions.InvoiceScanned: return(Loc.Dic.InvoiceScanned); case HistoryActions.InvoiceApproved: return(Loc.Dic.InvoiceApproved); case HistoryActions.ExportedToFile: return(Loc.Dic.ExportedToFile); case HistoryActions.ReceiptScanned: return(Loc.Dic.ReceiptScanned); case HistoryActions.AddedToInventory: return(Loc.Dic.AddedToInventory); case HistoryActions.OrderPrinted: return(Loc.Dic.OrderPrinted); default: return(Loc.Dic.Unknown); } }
public DataSet GetFundStatusUpdateHistory(HistoryActions code, string sFisalYear, string sBookMonth, string sOrg) { return(Dal.GetFundStatusUpdateHistory2(code, sFisalYear, sBookMonth, sOrg)); }
public DataSet GetAllowanceHistory(string sFiscalYear, HistoryActions code1, HistoryActions code2) { return(Dal.GetAllowanceHistory(sFiscalYear, code1, code2)); }