Пример #1
0
    protected void ibtnDelete_Click(object sender, ImageClickEventArgs e)
    {
        ApprovalLines   app = new ApprovalLines();
        CheckBox        chk;
        UltraGridRow    row;
        TemplatedColumn col;
        bool            isRemoved = false;

        for (int i = 0; i < this.UltraWebGrid1.Rows.Count; i++)
        {
            row = UltraWebGrid1.Rows[i];
            col = (TemplatedColumn)row.Band.Columns.FromKey("selchk");
            chk = (CheckBox)((CellItem)col.CellItems[row.BandIndex]).FindControl("selchk");

            if (chk.Checked)
            {
                isRemoved = app.RemoveApprovalLine(row.Cells.FromKey("BIZ_TYPE_CODE").Value.ToString(), (int)row.Cells.FromKey("REP_EMP_ID").Value);
            }
        }

        if (!isRemoved)
        {
            Literal1.Text = JSHelper.GetAlertScript("삭제할 결제선을 선택해 주세요.", false);
        }
        else
        {
            Literal1.Text = JSHelper.GetAlertScript("결제선이 삭제 되었습니다.", false);
            ApprovalDatabind(ddlBizInfoList.SelectedValue, txtEmpName.Text, (txtDeptID.Text.Equals("")) ? 0 : int.Parse(txtDeptID.Text));
        }
    }
Пример #2
0
    protected void ibtnRemove_Click(object sender, ImageClickEventArgs e)
    {
        bool          isRemoved = false;
        ApprovalLines app       = new ApprovalLines();

        isRemoved = app.RemoveApprovalLine(biz_type_code, EmpID);

        if (!isRemoved)
        {
            Literal1.Text = JSHelper.GetAlertScript("삭제할 결제선이 없습니다.", false);
        }
        else
        {
            Literal1.Text = JSHelper.GetAlertOpenerControlCallBackScript("결제선이 삭제 되었습니다.", "ibtnSearch", false);
        }
        DataLoad();
    }