Beispiel #1
0
    protected void ibtnAdd3_Click(object sender, ImageClickEventArgs e)
    {
        DoInsertEmp(ugrdEmpList, ugrdDraftEmp);
        if (ugrdSignerEmp.Rows.Count > 0)
        {
            Biz_Com_Approval_Info bizComApp = new Biz_Com_Approval_Info();
            int objCount = GetEmpCount(ugrdEmpList);
            object[,] objAppEmp = new object[ugrdSignerEmp.Rows.Count, 2];
            objAppEmp           = GetInsertEmpList(ugrdSignerEmp, 0);

            object[] objDraftEmp = new object[objCount];
            objDraftEmp = GetInsertDraftEmpList(objCount);
            if (bizComApp.InsertAppEmp(this.IBIZ_TYPE, objDraftEmp, objAppEmp, gUserInfo.Emp_Ref_ID))
            {
                MsgOnUP(UpdatePanel1, "추가하였습니다.");
            }
            else
            {
                DoDeleteEmp(ugrdDraftEmp, objCount);
                MsgOnUP(UpdatePanel1, "실패하였습니다!\\n" + bizComApp.Transaction_Message);
                return;
            }
        }
        DoBindingEmp();
    }