Exemplo n.º 1
0
        public Delegation(Models.FreightManagement freightManagement, SPWeb currentWeb = null) : this(currentWeb)
        {
            //ModuleName = "Freight Management";
            //VietnameseModuleName = "Quản Lý Vận Chuyển Hàng Hóa";
            ListItemID          = freightManagement.ID;
            ListUrl             = StringConstant.FreightManagementList.ListUrl;
            ListItemCreatedDate = freightManagement.Created;
            Requester           = freightManagement.Requester;
            Department          = freightManagement.Department;

            string bringerVal = string.Empty;
            if (freightManagement.CompanyVehicle == true)
            {
                bringerVal = ResourceHelper.GetLocalizedString("FreightManagement_CompanyVehicle", StringConstant.ResourcesFileLists, CultureInfo.CurrentUICulture.LCID);
            }
            else
            {
                LookupItem bringerLookupItem = freightManagement.Bringer;
                if (bringerLookupItem != null && bringerLookupItem.LookupId > 0)
                {
                    bringerVal = bringerLookupItem.LookupValue;
                }
                else
                {
                    bringerVal = freightManagement.BringerName;
                }
            }
            ListItemDescription = string.Format("{0} - {1}", bringerVal, freightManagement.Reason);
            ListItemApprovalUrl = DelegationManager.BuildListItemApprovalUrl2(this.ListUrl, freightManagement.ID);
            this.InitModuleName(FreightManagementList.ListUrl);
        }
Exemplo n.º 2
0
 public ShiftManagementDetail()
 {
     ShiftTime1  = new LookupItem();
     ShiftTime2  = new LookupItem();
     ShiftTime3  = new LookupItem();
     ShiftTime4  = new LookupItem();
     ShiftTime5  = new LookupItem();
     ShiftTime6  = new LookupItem();
     ShiftTime7  = new LookupItem();
     ShiftTime8  = new LookupItem();
     ShiftTime9  = new LookupItem();
     ShiftTime10 = new LookupItem();
     ShiftTime11 = new LookupItem();
     ShiftTime12 = new LookupItem();
     ShiftTime13 = new LookupItem();
     ShiftTime14 = new LookupItem();
     ShiftTime15 = new LookupItem();
     ShiftTime16 = new LookupItem();
     ShiftTime17 = new LookupItem();
     ShiftTime18 = new LookupItem();
     ShiftTime19 = new LookupItem();
     ShiftTime20 = new LookupItem();
     ShiftTime21 = new LookupItem();
     ShiftTime22 = new LookupItem();
     ShiftTime23 = new LookupItem();
     ShiftTime24 = new LookupItem();
     ShiftTime25 = new LookupItem();
     ShiftTime26 = new LookupItem();
     ShiftTime27 = new LookupItem();
     ShiftTime28 = new LookupItem();
     ShiftTime29 = new LookupItem();
     ShiftTime30 = new LookupItem();
     ShiftTime31 = new LookupItem();
 }
Exemplo n.º 3
0
        public FilterTask(Models.FreightManagement freightManagement)
        {
            string bringerVal = string.Empty;

            if (freightManagement.CompanyVehicle == true)
            {
                bringerVal = ResourceHelper.GetLocalizedString("FreightManagement_CompanyVehicle", StringConstant.ResourcesFileLists, CultureInfo.CurrentUICulture.LCID);
            }
            else
            {
                LookupItem bringerLookupItem = freightManagement.Bringer;
                if (bringerLookupItem != null && bringerLookupItem.LookupId > 0)
                {
                    bringerVal = bringerLookupItem.LookupValue;
                }
                else
                {
                    bringerVal = freightManagement.BringerName;
                }
            }

            this.Description     = string.Format("{0} - {1}", bringerVal, freightManagement.Reason);
            this.Requester       = freightManagement.Requester;
            this.Department      = freightManagement.Department;
            this.CreatedDate     = freightManagement.Created;
            this.DueDate         = freightManagement.RequestDueDate == DateTime.MinValue ? freightManagement.TransportTime : freightManagement.RequestDueDate; // TODO
            this.ItemId          = freightManagement.ID;
            this.ItemApprovalUrl = $"{DelegationManager.BuildListItemApprovalUrl2(FreightManagementList.ListUrl, freightManagement.ID)}&Source=/SitePages/Overview.aspx";
            this.InitModule(FreightManagementList.ListUrl);
        }
Exemplo n.º 4
0
 public BusinessTripEmployeeDetail()
 {
     BusinessTripManagementID = new LookupItem();
     ApprovalStatus           = new LookupItem();
     Employee   = new LookupItem();
     EmployeeID = new LookupItem();
 }
Exemplo n.º 5
0
 public OverTimeManagementDetail()
 {
     Employee             = new LookupItem();
     EmployeeID           = new LookupItem();
     OvertimeManagementID = new LookupItem();
     ApprovalStatus       = new LookupItem();
 }
Exemplo n.º 6
0
 public ShiftManagement()
 {
     Requester          = new LookupItem();
     CommonAddApprover1 = new List <User>();
     ApprovalStatus     = string.Empty;
     Department         = new LookupItem();
     Location           = new LookupItem();
     ApprovedBy         = new User();
     ModifiedBy         = new User();
 }
Exemplo n.º 7
0
 public FreightDetails()
 {
     FreightManagementID = new LookupItem();
     GoodsName           = string.Empty;
     Unit       = string.Empty;
     Quantity   = 0.0;
     Remarks    = string.Empty;
     CheckInBy  = new LookupItem();
     CheckOutBy = new LookupItem();
 }
Exemplo n.º 8
0
        public OverTimeManagement()
        {
            OverTimeManagementDetailList = new List <OverTimeManagementDetail>();

            CommonDepartment = new LookupItem();
            CommonLocation   = new LookupItem();
            Requester        = new LookupItem();
            ApprovedBy       = new User();
            FirstApprovedBy  = new User();
            ColForSort       = 0;
        }
Exemplo n.º 9
0
 public BusinessTripManagement()
 {
     Requester          = new LookupItem();
     CommonDepartment   = new LookupItem();
     DepartmentName1066 = new LookupItem();
     CommonLocation     = new LookupItem();
     Driver             = new LookupItem();
     Cashier            = new LookupItem();
     DH        = new User();
     DirectBOD = new User();
     BOD       = new User();
     AdminDept = new User();
 }
Exemplo n.º 10
0
 public LeaveManagement()
 {
     Requester      = new LookupItem();
     RequestFor     = new LookupItem();
     TransferworkTo = new LookupItem();
     ApprovalStatus = string.Empty;
     Department     = new LookupItem();
     Location       = new LookupItem();
     TLE            = new User();
     DH             = new User();
     BOD            = new User();
     Approver       = new User();
     AdditionalUser = new List <User>();
     CreatedBy      = new User();
     ModifiedBy     = new User();
 }
Exemplo n.º 11
0
 public Request()
 {
     RequestTypeRef         = new LookupItem();
     ReceviedBy             = new LookupItem();
     ReferRequest           = new LookupItem();
     CommonCreator          = new LookupItem();
     PendingAt              = new List <LookupItem>();
     CurrentStep            = new LookupItem();
     NextStep               = new LookupItem();
     Location               = new LookupItem();
     Department             = new LookupItem();
     AdditionalPreviousStep = new LookupItem();
     AdditionalNextStep     = new LookupItem();
     AdditionalStep         = new LookupItem();
     AssignTo               = new LookupItem();
     AssignFrom             = new LookupItem();
     AdditionalDepartment   = new LookupItem();
 }
Exemplo n.º 12
0
 public FreightManagement()
 {
     RequestNo                = string.Empty;
     Requester                = new LookupItem();
     Department               = new LookupItem();
     Location                 = new LookupItem();
     Bringer                  = new LookupItem();
     BringerDepartment        = new LookupItem();
     BringerLocation          = new LookupItem();
     BringerName              = string.Empty;
     CompanyName              = string.Empty;
     CompanyVehicle           = false;
     Reason                   = string.Empty;
     Receiver                 = string.Empty;
     ReceiverDepartmentLookup = new LookupItem();
     ReceiverDepartmentVN     = new LookupItem();
     ReceiverDepartmentText   = string.Empty;
     ReceiverPhone            = string.Empty;
     FreightType              = true; //true == out, false == in
     ReturnedGoods            = false;
     HighPriority             = false;
     OtherReason              = string.Empty;
     TransportTime            = new DateTime();
     VehicleLookup            = new LookupItem();
     VehicleVN                = new LookupItem();
     IsValidRequest           = true;
     IsFinished               = false;
     SecurityNotes            = string.Empty;
     Comment                  = string.Empty;
     ApprovalStatus           = string.Empty;
     DH         = new User();
     BOD        = new User();
     AdminDept  = new User();
     CreatedBy  = new User();
     ModifiedBy = new User();
 }
Exemplo n.º 13
0
 /// <summary>
 /// RequestRepairDetails
 /// </summary>
 public RequestRepairDetails() : base()
 {
     Request = new LookupItem();
 }
Exemplo n.º 14
0
 public AdditionalEmployeePosition()
 {
     Employee   = new LookupItem();
     EmployeeID = new LookupItem();
 }
Exemplo n.º 15
0
 public BusinessTripSchedule()
 {
     BusinessTripManagementID = new LookupItem();
     ApprovalStatus           = new LookupItem();
 }
Exemplo n.º 16
0
 /// <summary>
 /// RequestBuyDetails
 /// </summary>
 public RequestBuyDetails() : base()
 {
     Request = new LookupItem();
 }
Exemplo n.º 17
0
 public ShiftTime()
 {
     UnexpectedLeaveFirstApprovalRole = new LookupItem();
 }
Exemplo n.º 18
0
 /// <summary>
 /// RequestOtherDetails
 /// </summary>
 public RequestOtherDetails() : base()
 {
     Request = new LookupItem();
 }