Beispiel #1
0
    protected void GridView1_RowDataBound1(object sender, GridViewRowEventArgs e)
    {
        if (e.Row.RowType == DataControlRowType.DataRow)
        {
            TakeOutDataInfo obj = (TakeOutDataInfo)e.Row.DataItem;

            e.Row.Cells[1].Text = bll.timeKor(obj.TakeOutItemDataList[0].TakeOutTime);                              //반출일 ngày mang ra
            e.Row.Cells[2].Text = obj.RequestUserDisplayName;                                                       //신청자 người đăng ký
            e.Row.Cells[3].Text = StringUtil.GetShortString(obj.CompanyName, 12, "...");                            //반출처 nơi mang đến/ nơi nhận
            e.Row.Cells[4].Text = StringUtil.GetShortString(obj.RecieveName, 7, "");                                //수령자 người nhận
            e.Row.Cells[5].Text = bll.requireKor(obj.RequireIN);                                                    //반입여부 có mang vào hay không
            e.Row.Cells[6].Text = StringUtil.GetShortString(obj.TakeOutItemDataList[0].TakeOutItemName, 18, "..."); //반출항목 hạng mục mang ra

            //반입일 표시  hiển thị ngày mang vào
            if (obj.RequireIN == 2)
            {
                e.Row.Cells[10].Text = "Không thể mang vào 반입불가";
            }
            else
            {
                e.Row.Cells[10].Text = bll.timeKor(obj.TakeOutItemDataList[0].TakeINTime); //반입일 ngày mang vào
            }

            e.Row.Cells[11].Text = bll.getApproveStringKOR(obj); //결재상태 tình trạng phê duyệt

            for (int i = 0; i < e.Row.Cells.Count; i++)
            {
                e.Row.Cells[i].Attributes.Add("onclick", "window.location='takeOutDataView.aspx?takeOutDataCode=" + obj.TakeOutDataCode + "';");
                e.Row.Cells[i].Attributes.Add("style", "cursor:hand;");
            }

            //반입예정일이 지난 것들 색상 표시 hiển thị màu nếu qua ngày dự định mang vào
            if (obj.RequireIN == 1 && obj.TakeOutItemDataList[0].TakeINTime == "-" && obj.TakeOutItemDataList[0].TakeOutTime != "-")
            {
                if (Convert.ToDateTime(obj.ScheduleInDate) < DateTime.Now)
                {
                    e.Row.Attributes.Add("style", "background-color:#FFF7A2;");
                    e.Row.Attributes.Add("onmouseover", "this.style.backgroundColor='#C0C0C0'");
                    e.Row.Attributes.Add("onmouseout", "this.style.backgroundColor='#FFF7A2'");
                }
                else
                {
                    e.Row.Attributes.Add("onmouseover", "this.style.backgroundColor='#C0C0C0'");
                    e.Row.Attributes.Add("onmouseout", "this.style.backgroundColor='#FFFFFF'");
                }
            }
            else
            {
                e.Row.Attributes.Add("onmouseover", "this.style.backgroundColor='#C0C0C0'");
                e.Row.Attributes.Add("onmouseout", "this.style.backgroundColor='#FFFFFF'");
            }
        }
    }
Beispiel #2
0
    protected void GridView1_RowDataBound1(object sender, GridViewRowEventArgs e)
    {
        if (e.Row.RowType == DataControlRowType.DataRow)
        {
            TakeOutDataInfo obj = (TakeOutDataInfo)e.Row.DataItem;

            e.Row.Cells[1].Text = bll.timeKor(obj.TakeOutItemDataList[0].TakeOutTime);                              //반출일 ngày mang ra
            e.Row.Cells[2].Text = StringUtil.GetShortString(obj.CompanyName, 50, "...");                            //반출처 nơi nhận
            e.Row.Cells[3].Text = StringUtil.GetShortString(obj.RecieveName, 50, "...");                            //수령자 người nhận
            e.Row.Cells[4].Text = bll.requireKor(obj.RequireIN);                                                    //반입여부
            e.Row.Cells[5].Text = StringUtil.GetShortString(obj.TakeOutItemDataList[0].TakeOutItemName, 18, "..."); //반출항목 hạng mục mang ra

            //반입일 표시 hiển thị ngày vào
            if (obj.RequireIN == 2)
            {
                e.Row.Cells[8].Text = "Không thể mang vào (반입불가))"; // Không đồng ý ra
            }
            else
            {
                e.Row.Cells[8].Text = bll.timeKor(obj.TakeOutItemDataList[0].TakeINTime); //반입일
            }

            //반려 일 경우 삭제 xóa ngày trả lại
            if (obj.ApprovalState == 3)
            {
                e.Row.Cells[11].Text  = "<a href='#;' onclick=\"javascript:confirmDelete('deleteTakeOut.aspx?takeOutDataCode=" + obj.TakeOutDataCode + "');\">";
                e.Row.Cells[11].Text += "<img src='/COMS/images/icon/delete.gif'></a>";
            }
            // 임시저장일 경우 수정과 삭제 보이기 sửa và xóa ngày lưu tạm thời
            if (obj.ApprovalState == 0)
            {
                e.Row.Cells[10].Text  = "<a href='inputTakeOut.aspx?takeOutDataCode=" + obj.TakeOutDataCode + "&mode=modify'>";
                e.Row.Cells[10].Text += "<img src='/COMS/images/icon/edit.gif'></a>";

                e.Row.Cells[11].Text  = "<a href='#;' onclick=\"javascript:confirmDelete('deleteTakeOut.aspx?takeOutDataCode=" + obj.TakeOutDataCode + "');\">";
                e.Row.Cells[11].Text += "<img src='/COMS/images/icon/delete.gif'></a>";

                // e.Row.Cells[1].Text = bll.timeKor(obj.TakeINTime);
                //HyperLink colModify = (HyperLink)e.Row.Cells[11].Controls[0];
                //colModify.NavigateUrl = "inputTakeOut.aspx?takeOutDataCode=" + obj.TakeOutDataCode + "&mode=modify";
                //colModify.ImageUrl = "~/images/icon/edit.gif";

                //HyperLink colDelete = (HyperLink)e.Row.Cells[12].Controls[0];
                //colDelete.NavigateUrl = "#";
                //colDelete.Attributes.Add("onclick", "javascript:confirmDelete('deleteTakeOut.aspx?takeOutDataCode=" + obj.TakeOutDataCode + "');");
                //colDelete.ImageUrl = "~/images/icon/delete.gif";
            }

            //    e.Row.Cells[1].Text = bll.timeKor(obj.TakeOutTime);
            e.Row.Cells[9].Text = bll.getApproveStringKOR(obj);

            for (int i = 0; i < e.Row.Cells.Count; i++)
            {
                if (i < 11)
                {
                    e.Row.Cells[i].Attributes.Add("onclick", "window.location='viewTakeOut.aspx?takeOutDataCode=" + obj.TakeOutDataCode + "';");
                    e.Row.Cells[i].Attributes.Add("style", "cursor:hand;");
                }
            }

            //반입예정일이 지난 것들 색상 표시biểu thì màu sắc cho quá hạn ngày dự định vào
            if (obj.RequireIN == 1 && obj.TakeOutItemDataList[0].TakeINTime == "-" && obj.TakeOutItemDataList[0].TakeOutTime != "-")
            {
                if (Convert.ToDateTime(obj.ScheduleInDate) < DateTime.Now.Date)
                {
                    e.Row.Attributes.Add("style", "background-color:#FFF7A2;");
                    e.Row.Attributes.Add("onmouseover", "this.style.backgroundColor='#C0C0C0'");
                    e.Row.Attributes.Add("onmouseout", "this.style.backgroundColor='#FFF7A2'");
                }
                else
                {
                    e.Row.Attributes.Add("onmouseover", "this.style.backgroundColor='#C0C0C0'");
                    e.Row.Attributes.Add("onmouseout", "this.style.backgroundColor='#FFFFFF'");
                }
            }
            else
            {
                e.Row.Attributes.Add("onmouseover", "this.style.backgroundColor='#C0C0C0'");
                e.Row.Attributes.Add("onmouseout", "this.style.backgroundColor='#FFFFFF'");
            }

            //e.Row.Attributes.Add("onmouseover", "this.style.backgroundColor='#C0C0C0'");
            //e.Row.Attributes.Add("onmouseout", "this.style.backgroundColor='#FFFFFF'");
        }
    }
Beispiel #3
0
    protected void Page_Load(object sender, EventArgs e)
    {
        // 로그인 체크 check login
        //EmployeeInfo loginEmployee = new EmployeeInfo();
        //loginEmployee = (EmployeeInfo)Session["loginMember"];
        //if (loginEmployee == null)
        //{
        //    Response.Redirect("~/login.aspx", true);
        //}

        if (this.Context.User.Identity.Name == null)
        {
            Response.Redirect("~/login.aspx", true);
        }
        EmployeeInfo               requestEmployee = new EmployeeInfo();
        List <ElecStatusInfo>      elecApproveInfo = new List <ElecStatusInfo>();
        List <TakeOutItemDataInfo> takeOutItem     = new List <TakeOutItemDataInfo>();

        Employee        bllEmployee    = new Employee();
        ElecApprove     bllElecApprove = new ElecApprove();
        TakeOutItemData bllTakeOutItem = new TakeOutItemData();

        //반출정보 thông tin tài sản ra cổng
        TakeOutDataInfo takeOutDataInfo = bll.selectTakeOutData(Request.QueryString["takeOutDataCode"]);

        // 전자결재
        elecApproveInfo = bllElecApprove.SelectStatus(takeOutDataInfo.ElecApproveCode);

        //반출 항목 hạng mục tài sản ra cổng
        takeOutItem = bllTakeOutItem.selectTakeOutItemDataList(takeOutDataInfo.TakeOutDataCode);

        //요청자 người yêu cầu
        requestEmployee = bllEmployee.selectEmployee(takeOutDataInfo.RequestUserCode);

        requestEmployeeDepartmentName = requestEmployee.Dep_name;
        requestEmployeeDisplayName    = requestEmployee.DisplayName;
        requestEmployeeUpnid          = requestEmployee.Upnid;
        requestEmployeeTitle          = requestEmployee.Title_name;

        // 신청자 보이기
        lblDepartment.Text  = takeOutDataInfo.RequestUserDepartment;
        lblUpnid.Text       = takeOutDataInfo.RequestUserCode;
        lblDisplayName.Text = takeOutDataInfo.RequestUserDisplayName;
        lblTitle.Text       = takeOutDataInfo.RequestUserTitleName;

        if (String.IsNullOrEmpty(requestEmployee.OfficePhoneNumber))
        {
            lblPhone.Text = "-";
        }
        else
        {
            lblPhone.Text = requestEmployee.OfficePhoneNumber;
        }

        // 반출 정보 보이기 thông tin tài sản ra cổng
        lblTakeOutDataCode.Text = takeOutDataInfo.TakeOutDataCode;
        lblScheduleOutDate.Text = takeOutDataInfo.ScheduleOutDate;
        lblTakeOutObject.Text   = takeOutDataInfo.TakeOutObjectName;
        lblCompanyName.Text     = takeOutDataInfo.CompanyName;
        lblReceiveName.Text     = takeOutDataInfo.RecieveName;
        lblRequireIN.Text       = bll.requireKor(takeOutDataInfo.RequireIN);

        if (String.IsNullOrEmpty(takeOutDataInfo.ScheduleInDate))
        {
            lblScheduleDate.Text = "-";
        }
        else
        {
            lblScheduleDate.Text = takeOutDataInfo.ScheduleInDate;
        }

        if (String.IsNullOrEmpty(takeOutDataInfo.ObjectContents))
        {
            lblTakeOutObjectContents.Text = "-";
        }
        else
        {
            lblTakeOutObjectContents.Text = takeOutDataInfo.ObjectContents;
        }

        if (String.IsNullOrEmpty(takeOutDataInfo.DisApprovalCategoryName))
        {
            lblDisApproveName.Text = "-";
        }
        else
        {
            lblDisApproveName.Text = takeOutDataInfo.DisApprovalCategoryName;
        }

        if (String.IsNullOrEmpty(takeOutDataInfo.Note))
        {
            lblNote.Text = "-";
        }
        else
        {
            lblNote.Text = takeOutDataInfo.Note;
        }


        // 결재정보 보이기 thông tin phê duyệt
        int count = elecApproveInfo.Count;

        for (int i = 0; i < count; i++)
        {
            // 결재의견이 없을때 "-" 채워줌. 셀의 border 때문에...  nếu không có ý kiến phê duyệt thì chèn "-"
            if (String.IsNullOrEmpty(elecApproveInfo[i].UserOpi))
            {
                elecApproveInfo[i].UserOpi = "-";
            }

            elecApporveHtml += "<tr align=\"center\">";
            elecApporveHtml += "<td style=\"border-color:Black;border-style:solid\" rowspan=\"2\">" + bllElecApprove.ElecApproveKor(elecApproveInfo[i].Decision) + "</td>";
            elecApporveHtml += "<td style=\"border-color:Black;border-style:solid\">" + elecApproveInfo[i].UserName + " " + elecApproveInfo[i].UserTitle + "</td>";
            elecApporveHtml += "<td style=\"border-color:Black;border-style:solid\" rowspan=\"2\">" + elecApproveInfo[i].DepName + "</td>";
            elecApporveHtml += "<td style=\"border-color:Black;border-style:solid\" rowspan=\"2\">" + elecApproveInfo[i].UserOpi + "</td>";
            elecApporveHtml += "</tr>";
            elecApporveHtml += "<tr align=\"center\">";
            elecApporveHtml += "<td style=\"border-color:Black;border-style:solid\">" + HanaMicron.COMS.Utility.DateUtility.getDateFormat2(Convert.ToDateTime(elecApproveInfo[i].ViewDate)) + "</td>";
            elecApporveHtml += "</tr>";
        }

        // 반출 항목 보이기 hạng mịc tài sản ra cổng
        int seq = 0;

        for (int i = 0; i < 10; i++) //항목 10개 만듬
        {
            seq = i + 1;
            if (i < takeOutItem.Count) //데이타 있는 만큼 데이타 뿌려줌. Đẩy dữ liệu tương ứng vào ô nhận dữ liệu
            {
                takeOutItemListHtml += "<tr align=\"center\">";
                takeOutItemListHtml += "<td style=\"border-color:Black;border-style:solid\">" + seq + "</td>";
                takeOutItemListHtml += "<td style=\"border-color:Black;border-style:solid\">" + takeOutItem[i].ParentCodeName + "</td>";
                takeOutItemListHtml += "<td style=\"border-color:Black;border-style:solid\">" + takeOutItem[i].SubCodeName + "</td>";
                takeOutItemListHtml += "<td style=\"border-color:Black;border-style:solid\">" + takeOutItem[i].TakeOutItemName + "</td>";
                takeOutItemListHtml += "<td style=\"border-color:Black;border-style:solid\">" + takeOutItem[i].TakeOutItemType + "</td>";
                takeOutItemListHtml += "<td style=\"border-color:Black;border-style:solid\">" + takeOutItem[i].UnitName + "</td>";
                takeOutItemListHtml += "<td style=\"border-color:Black;border-style:solid\">" + takeOutItem[i].Account + "</td>";
                takeOutItemListHtml += "<td style=\"border-color:Black;border-style:solid\">&nbsp;</td>";
                takeOutItemListHtml += "</tr>";
            }
            else //데이타 없는 부분 공백으로 채움. Cho khoảng trống vào những ô không có dữ liệu
            {
                takeOutItemListHtml += "<tr align=\"center\">";
                takeOutItemListHtml += "<td style=\"border-color:Black;border-style:solid\">" + seq + "</td>";
                takeOutItemListHtml += "<td style=\"border-color:Black;border-style:solid\">&nbsp;</td>";
                takeOutItemListHtml += "<td style=\"border-color:Black;border-style:solid\">&nbsp;</td>";
                takeOutItemListHtml += "<td style=\"border-color:Black;border-style:solid\">&nbsp;</td>";
                takeOutItemListHtml += "<td style=\"border-color:Black;border-style:solid\">&nbsp;</td>";
                takeOutItemListHtml += "<td style=\"border-color:Black;border-style:solid\">&nbsp;</td>";
                takeOutItemListHtml += "<td style=\"border-color:Black;border-style:solid\">&nbsp;</td>";
                takeOutItemListHtml += "<td style=\"border-color:Black;border-style:solid\">&nbsp;</td>";
                takeOutItemListHtml += "</tr>";
            }
        }
    }
Beispiel #4
0
    protected void Page_Load(object sender, EventArgs e)
    {
        // 로그인 체크
        //EmployeeInfo loginEmployee = new EmployeeInfo();
        //loginEmployee = (EmployeeInfo)Session["loginMember"];
        //if (loginEmployee == null)
        //{
        //    Response.Redirect("~/login.aspx", true);
        //}

        if (this.Context.User.Identity.Name == null)
        {
            Response.Redirect("~/login.aspx", true);
        }
        EmployeeInfo loginEmployee   = new EmployeeInfo();
        EmployeeInfo requestEmployee = new EmployeeInfo();
        Employee     bllEmployee     = new Employee();

        loginEmployee = bllEmployee.selectEmployee(this.Context.User.Identity.Name);

        loginEmploeeDepartmentName = loginEmployee.Dep_name;
        loginEmploeeDisplayName    = loginEmployee.DisplayName;
        loginEmployeeUpnid         = loginEmployee.Upnid;
        loginEmployeeTitle         = loginEmployee.Title_name;

        TakeOutDataInfo takeOutDataInfo = bll.selectTakeOutData(Request.QueryString["takeOutDataCode"]);

        //요청자
        requestEmployee = bllEmployee.selectEmployee(takeOutDataInfo.RequestUserCode);

        // 신청자 보이기 -Hiển thị người đăng ký
        lblDepartment.Text  = takeOutDataInfo.RequestUserDepartment;
        lblUpnid.Text       = takeOutDataInfo.RequestUserCode;
        lblOfficeName.Text  = takeOutDataInfo.RequestUserOfficeName;
        lblDisplayName.Text = takeOutDataInfo.RequestUserDisplayName;
        lblTitle.Text       = takeOutDataInfo.RequestUserTitleName;
        lblPhone.Text       = requestEmployee.MobilePhoneNumber;

        // 결재 정보의 기안제목 신청자로 변경 (2009.08.27 임종우)
        reqEmploeeDisplayName = takeOutDataInfo.RequestUserDisplayName;

        // 반출 정보 보이기 -Hiển thị thông tin xuất
        lblTakeOutDataCode.Text       = takeOutDataInfo.TakeOutDataCode;
        lblScheduleDate.Text          = takeOutDataInfo.ScheduleInDate;
        lblScheduleOutDate.Text       = takeOutDataInfo.ScheduleOutDate;
        lblTakeOutObject.Text         = takeOutDataInfo.TakeOutObjectName;
        lblTakeOutObjectContents.Text = takeOutDataInfo.ObjectContents;
        lblTakeOutPathStart.Text      = takeOutDataInfo.TakeOutPathStartName;
        lblTakeOutPathEnd.Text        = takeOutDataInfo.TakeOutPathEndName;
        lblCompanyName.Text           = takeOutDataInfo.CompanyName;
        lblReceiveName.Text           = takeOutDataInfo.RecieveName;
        lblRequireIN.Text             = bll.requireKor(takeOutDataInfo.RequireIN);
        lblOutTime.Text = takeOutDataInfo.TakeOutItemDataList[0].TakeOutTime;
        lblINTime.Text  = takeOutDataInfo.TakeOutItemDataList[0].TakeINTime;
        lblNote.Text    = takeOutDataInfo.Note;

        viewimage1.Visible = false;
        viewimage2.Visible = false;
        viewimage3.Visible = false;

        if (takeOutDataInfo.UserFile1.Length > 0)
        {
            viewimage1.Visible = true;

            viewimage1.ImageUrl = "~/image/" + takeOutDataInfo.UserFile1.ToString();
        }
        if (takeOutDataInfo.UserFile2.Length > 0)
        {
            viewimage2.Visible  = true;
            viewimage2.ImageUrl = "~/image/" + takeOutDataInfo.UserFile2.ToString();
        }
        if (takeOutDataInfo.UserFile3.Length > 0)
        {
            viewimage3.Visible  = true;
            viewimage3.ImageUrl = "~/image/" + takeOutDataInfo.UserFile3.ToString();
        }
        // 결재 코드
        elecApproveCode = takeOutDataInfo.ElecApproveCode;
        // 반입필이면 반입불가사유 안보임.
        if (takeOutDataInfo.RequireIN == 1)
        {
            lblDisApproveName.Text   = string.Empty;
            lblDisApproveDetail.Text = string.Empty;
        }
        else
        {
            lblDisApproveName.Text   = takeOutDataInfo.DisApprovalCategoryName;
            lblDisApproveDetail.Text = takeOutDataInfo.DisApprovalCategoryDetail;
        }

        lblCarNumber.Text = takeOutDataInfo.CarNumber;
        //lblINTime.Text = bll.timeKor(takeOutDataInfo.TakeINTime);
        //lblOutTime.Text = bll.timeKor(takeOutDataInfo.TakeOutTime);

        // 결재 상신 전이라면
        if (takeOutDataInfo.ApprovalState == 0)
        {
            // 결재라인 변경 이미지
            btnElecApproveLine.Visible = true;

            // 결재 상신 버튼
            btnApproveStart.Visible = true;

            // 결재 상태 보기
            //    btnElectStatus.Visible = false;

            // 반출증 출력
            //   btnPrint.Visible = false;

            // 반입일자 연장 신청
            btnReElecApproveLine.Visible = false;
        }
        else if (takeOutDataInfo.ApprovalState == 2) // 결재완료시
        {
            //  btnElectStatus.Visible = false;
            btnApproveStart.Visible    = false;
            btnElecApproveLine.Visible = false;
            //    btnPrint.Visible = true;

            // 반출예정일이 지난 것들 반입일자 연장 신청 표시 --> 반입예정일 7일전부터 연장 표시로 변경
            if (takeOutDataInfo.RequireIN == 1 && takeOutDataInfo.TakeOutItemDataList[0].TakeINTime == "-" && takeOutDataInfo.TakeOutItemDataList[0].TakeOutTime != "-")
            {
                if (Convert.ToDateTime(takeOutDataInfo.ScheduleInDate) < DateTime.Now.AddDays(7))
                {
                    btnReElecApproveLine.Visible = true;
                }
                else
                {
                    btnReElecApproveLine.Visible = false;
                }
            }
            else
            {
                btnReElecApproveLine.Visible = false;
            }
        }
        else // 그 외에
        {
            // btnElectStatus.Visible = false;
            btnApproveStart.Visible    = false;
            btnElecApproveLine.Visible = false;
            // btnPrint.Visible = false;
            btnReElecApproveLine.Visible = false;
        }
    }
Beispiel #5
0
    protected void GridView1_RowDataBound1(object sender, GridViewRowEventArgs e)
    {
        if (e.Row.RowType == DataControlRowType.DataRow)
        {
            TakeOutDataInfo obj = (TakeOutDataInfo)e.Row.DataItem;

            e.Row.Cells[1].Text = bll.timeKor(obj.TakeOutItemDataList[0].TakeOutTime);                              //반출일 ngày mang ra
            e.Row.Cells[2].Text = obj.RequestUserDisplayName;                                                       //신청자  người đăng ký
            e.Row.Cells[3].Text = StringUtil.GetShortString(obj.CompanyName, 100, "...");                           //반출처   địa điểm mang ra
            e.Row.Cells[4].Text = StringUtil.GetShortString(obj.RecieveName, 50, "...");                            //수령자 người nhận
            e.Row.Cells[5].Text = bll.requireKor(obj.RequireIN);                                                    // 반입여부
            e.Row.Cells[6].Text = StringUtil.GetShortString(obj.TakeOutItemDataList[0].TakeOutItemName, 18, "..."); //반출항목  hạng mục tài sản ra

            //반입일 표시  hiển thị ngày mang vào
            if (obj.RequireIN == 2)
            {
                e.Row.Cells[10].Text = "Không thể mang vào 반입불가";
            }
            else
            {
                e.Row.Cells[10].Text = bll.timeKor(obj.TakeOutItemDataList[0].TakeINTime); //반입일 ngày mang vào
            }

            e.Row.Cells[11].Text = bll.getApproveStringKOR(obj); //결재상태 tình trạng phê duyệt

            for (int i = 0; i < e.Row.Cells.Count; i++)
            {
                if (i < 12)
                {
                    e.Row.Cells[i].Attributes.Add("onclick", "window.location='../takeOut/viewTakeOut.aspx?takeOutDataCode=" + obj.TakeOutDataCode + "';");
                    e.Row.Cells[i].Attributes.Add("style", "cursor:hand;");
                }
            }

            if (obj.ApprovalState == 2) //결재상태(결재완료)  tình trạng phê duyệt (hoàn thành phê duyệt )
            {
                //stKeyWord = Request.Form["keyWord"];
                //stKey = Request.Form["key"];

                if (obj.TakeOutItemDataList[0].TakeOutTime == "-") //반출시간데이터 유무 확인
                {
                    //HyperLink colINTime = (HyperLink)e.Row.Cells[11].Controls[0];
                    //colINTime.NavigateUrl = "javascript:confirmMove('반출 처리 하시겠습니까?','takeOutTimeUpdate.aspx?takeOutDataCode=" + obj.TakeOutDataCode + "&mode=outTime')";
                    //colINTime.Text = "<span style=\"color:blue\">반출 처리</span>";
                    //if (Convert.ToDateTime(obj.ScheduleOutDate) >= DateTime.Now.Date) // 반출예정일 지나지 않은것만 반출처리
                    //{
                    e.Row.Cells[12].Text = "<a href='#;' onClick=\"javascript:confirmMove('Bạn có muốn xử lý tài sản ra cổng không? (일괄 반출 처리 하시겠습니까?)','takeOutTimeUpdate.aspx?takeOutDataCode=" + obj.TakeOutDataCode + "&keyWord=" + Request["keyWord"] + "&key=" + Request["key"] + "&mode=outTime')\">";
                    //e.Row.Cells[12].Text = "<a href='#;' onClick=\"javascript:confirmMove('일괄 반출 처리 하시겠습니까?','takeOutTimeUpdate.aspx?takeOutDataCode=" + obj.TakeOutDataCode + "&mode=outTime')\">";
                    e.Row.Cells[12].Text += "<span style=\"color:blue\">Xử lý mang ra (반출 처리)</span></a>";
                    //}
                }
                else
                {
                    if (obj.RequireIN == 1 && obj.TakeOutItemDataList[0].TakeINTime == "-") //반입필  Cần mang vào
                    {
                        e.Row.Cells[12].Text = "<a href='#;' onClick=\"javascript:confirmMove('Bạn có muốn xử lý vào cổng không? (반입 처리 하시겠습니까?)','takeOutTimeUpdate.aspx?takeOutItemDataCode=" + obj.TakeOutItemDataList[0].TakeOutItemDataCode + "&keyWord=" + Request["keyWord"] + "&key=" + Request["key"] + "&mode=inTime')\">";
                        //e.Row.Cells[12].Text = "<a href='#;' onClick=\"javascript:confirmMove('반입 처리 하시겠습니까?','takeOutTimeUpdate.aspx?takeOutItemDataCode=" + obj.TakeOutItemDataList[0].TakeOutItemDataCode + "&mode=inTime')\">";
                        e.Row.Cells[12].Text += "<span style=\"color:red\">Xử lý mang vào (반입 처리)</span></a>";
                    }
                    else
                    {
                        e.Row.Cells[12].Text = "<span style=\"color:blue\">Kết thúc (종료)</span></a>";
                    }
                }
            }
            // 2017-09-06-임종우 : 그룹웨어 Interface 오류가 많아 수동으로 결재승인 처리 로직 추가. 결재상신중이면 강제 결재 승인 가능하도록 추가.
            else if (obj.ApprovalState == 1)
            {
                e.Row.Cells[12].Text  = "<a href='#;' onClick=\"javascript:confirmMove('Bạn có muốn xử lý phê duyệt điện tử không? (결재 승인 처리 하시겠습니까?)','elecApproveUpdate.aspx?takeOutDataCode=" + obj.TakeOutDataCode + "&status=2" + "&keyWord=" + Request["keyWord"] + "&key=" + Request["key"] + "&mode=takeOut')\">";
                e.Row.Cells[12].Text += "<span style=\"color:Green\">Đồng ý phê duyệt (결재 승인)</span></a>";
            }
            else
            {
                e.Row.Cells[12].Text = "";
            }

            //반입예정일이 지난 것들 색상 표시
            if (obj.RequireIN == 1 && obj.TakeOutItemDataList[0].TakeINTime == "-" && obj.TakeOutItemDataList[0].TakeOutTime != "-")
            {
                if (Convert.ToDateTime(obj.ScheduleInDate) < DateTime.Now.Date)
                {
                    e.Row.Attributes.Add("style", "background-color:#FFF7A2;");
                    e.Row.Attributes.Add("onmouseover", "this.style.backgroundColor='#C0C0C0'");
                    e.Row.Attributes.Add("onmouseout", "this.style.backgroundColor='#FFF7A2'");
                }
                else
                {
                    e.Row.Attributes.Add("onmouseover", "this.style.backgroundColor='#C0C0C0'");
                    e.Row.Attributes.Add("onmouseout", "this.style.backgroundColor='#FFFFFF'");
                }
            }
            else
            {
                e.Row.Attributes.Add("onmouseover", "this.style.backgroundColor='#C0C0C0'");
                e.Row.Attributes.Add("onmouseout", "this.style.backgroundColor='#FFFFFF'");
            }
        }
    }