Ejemplo n.º 1
0
    public static void takeEmptyDuty(int userID, string week, int shiftID, int locationID, string day, int status, int orderNumber)
    {
        technical_assistant newTA = new technical_assistant();

        object[] requestDetails = new object[11];
        requestDetails[0]  = week;
        requestDetails[1]  = shiftID;
        requestDetails[2]  = locationID;
        requestDetails[3]  = day;
        requestDetails[4]  = string.Format("HH:mm:ss", DateTime.Now);
        requestDetails[5]  = DateTime.Now.ToString("yyy-MM-dd");
        requestDetails[6]  = getDayDate(day);
        requestDetails[7]  = status;
        requestDetails[8]  = 0;  //0 means request type is duty request
        requestDetails[9]  = "Added after draft is out";
        requestDetails[10] = orderNumber;

        newTA.requestDuty(userID, requestDetails);
    }
Ejemplo n.º 2
0
    //query duty request into database
    protected void queryDutyRequest(int shift_id, int location_id, string day)
    {
        int userID = int.Parse(Session["id"].ToString());

        object[] requestDetails = new object[11];
        requestDetails[0]  = commonMethods.getNextMondayDate();
        requestDetails[1]  = shift_id;
        requestDetails[2]  = location_id;
        requestDetails[3]  = day;
        requestDetails[4]  = string.Format("HH:mm:ss", DateTime.Now);
        requestDetails[5]  = DateTime.Now.ToString("yyy-MM-dd");
        requestDetails[6]  = getDayDate(weekDaysList.SelectedValue);
        requestDetails[7]  = 0;  //0 means request status is pending
        requestDetails[8]  = 0;  //0 means request type is duty request
        requestDetails[9]  = remark.Text;
        requestDetails[10] = 0;

        technical_assistant TA_obj = new technical_assistant();

        TA_obj.requestDuty(userID, requestDetails);
    }