Example #1
0
 //To chnage `user` - `IsApprover` to false
 public static void SetIsApproverStatus(long userId)
 {
     DataLayer.ApprovalOrder approvalOrder = new DataLayer.ApprovalOrder();
     approvalOrder.SetIsApproverStatus(userId, false);
 }
Example #2
0
 //To append already saved approver name and order into 'table': Edit click
 public static List <CLayer.ApprovalOrder> GetAssignedB2bApproversList(long userID)
 {
     DataLayer.ApprovalOrder approvalOrder = new DataLayer.ApprovalOrder();
     return(approvalOrder.GetAssignedB2bApproversList(userID));
 }
Example #3
0
 //To get selected b2b_approver_id in b2b_approvers table
 public static int GetB2BApproverID(long userId)
 {
     DataLayer.ApprovalOrder approvalOrder = new DataLayer.ApprovalOrder();
     return(approvalOrder.GetB2BApproverID(userId));
 }
Example #4
0
 //To get selected approval order in drop-down list
 public static CLayer.Role.CorporateRoles GetApprovalOrder(long userId)
 {
     DataLayer.ApprovalOrder approvalOrder = new DataLayer.ApprovalOrder();
     return(approvalOrder.GetApprovalOrder(userId));
 }
Example #5
0
 //To delete present records from table'b2b_approvers'
 public static void DeleteB2bApproversRecords(long userID)
 {
     DataLayer.ApprovalOrder approvalOrder = new DataLayer.ApprovalOrder();
     approvalOrder.DeleteB2bApproversRecords(userID);
 }
Example #6
0
 public static void SaveApprovalOrder(CLayer.ApprovalOrder data)
 {
     DataLayer.ApprovalOrder approvalOrder = new DataLayer.ApprovalOrder();
     approvalOrder.SaveApprovalOrder(data);
 }