Beispiel #1
0
        public static Requisition_Record ConvertFromRequisitionRecord(WCFRequisitionRecord wcfRecRecord)
        {
            Requisition_Record recRecord = new Requisition_Record();

            recRecord.requisitionNo             = wcfRecRecord.RequisitionNo;
            recRecord.deptCode                  = wcfRecRecord.DeptCode;
            recRecord.Department.departmentName = wcfRecRecord.DeptName;
            recRecord.requesterID               = wcfRecRecord.RequesterID;
            recRecord.User.name                 = wcfRecRecord.RequesterName;
            recRecord.approvingStaffID          = wcfRecRecord.ApprovingStaffID;
            recRecord.User.name                 = wcfRecRecord.ApprovingStaffName;
            recRecord.approveDate               = wcfRecRecord.ApproveDate;
            recRecord.status      = wcfRecRecord.Status;
            recRecord.requestDate = wcfRecRecord.RequestDate;

            return(recRecord);
        }
Beispiel #2
0
        public static WCFRequisitionRecord ConvertToWCFRequisitionRecord(Requisition_Record requisitionRecord)
        {
            WCFRequisitionRecord wcf_requisitionRecord = new WCFRequisitionRecord();

            wcf_requisitionRecord.RequisitionNo      = requisitionRecord.requisitionNo;
            wcf_requisitionRecord.DeptCode           = requisitionRecord.deptCode;
            wcf_requisitionRecord.DeptName           = requisitionRecord.Department.departmentName;
            wcf_requisitionRecord.RequesterID        = requisitionRecord.requesterID;
            wcf_requisitionRecord.RequesterName      = requisitionRecord.User.name;
            wcf_requisitionRecord.ApprovingStaffID   = requisitionRecord.approvingStaffID;
            wcf_requisitionRecord.ApprovingStaffName = requisitionRecord.User.name;
            wcf_requisitionRecord.ApproveDate        = requisitionRecord.approveDate;
            wcf_requisitionRecord.Status             = requisitionRecord.status;
            wcf_requisitionRecord.RequestDate        = requisitionRecord.requestDate;

            return(wcf_requisitionRecord);
        }