Example #1
0
        /// <summary> 编辑
        /// </summary>
        void UCAcountSet_EditEvent(object sender, EventArgs e)
        {
            if (dgvAccList.CurrentRow == null)
            {
                return;
            }
            string code = dgvAccList.CurrentRow.Cells["setbook_code"].Value.ToString();

            if (code == GlobalStaticObj_Server.CommAccCode)
            {
                MessageBoxEx.Show("通用库不能编辑!");
                return;
            }
            int            currRowIndex = dgvAccList.CurrentRow.Index;
            frmAccountEdit frm          = new frmAccountEdit();

            frm.isAdd = false;
            frm.id    = dgvAccList.CurrentRow.Cells["id"].Value.ToString();
            frm.isAdd = false;
            DialogResult result = frm.ShowDialog();

            if (result == DialogResult.OK)
            {
                BindData(where);
                dgvAccList.CurrentCell = dgvAccList.Rows[currRowIndex].Cells[0];
            }
        }
Example #2
0
 /// <summary> 查看
 /// </summary>
 void dgvAccList_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
 {
     if (dgvAccList.CurrentRow == null)
     {
         return;
     }
     try
     {
         string code = dgvAccList.CurrentRow.Cells["setbook_code"].Value.ToString();
         if (code == GlobalStaticObj_Server.CommAccCode)
         {
             MessageBoxEx.Show("当前账套是服务端使用,无相关参数信息,不能预览!");
             return;
         }
         int            currRowIndex = dgvAccList.CurrentRow.Index;
         frmAccountEdit frm          = new frmAccountEdit();
         frm.OpType = 2;
         frm.id     = dgvAccList.CurrentRow.Cells["id"].Value.ToString();
         frm.ShowDialog();
     }
     catch (Exception ex)
     {
         GlobalStaticObj_Server.GlobalLogService.WriteLog("帐套设置", ex);
         MessageBoxEx.ShowWarning("程序异常");
     }
 }
Example #3
0
 /// <summary> 编辑
 /// </summary>
 void UCAcountSet_EditEvent(object sender, EventArgs e)
 {
     if (dgvAccList.CurrentRow == null)
     {
         return;
     }
     try
     {
         string code = dgvAccList.CurrentRow.Cells["setbook_code"].Value.ToString();
         if (code == GlobalStaticObj_Server.CommAccCode)
         {
             MessageBoxEx.Show("通用库不能编辑!");
             return;
         }
         int            currRowIndex = dgvAccList.CurrentRow.Index;
         frmAccountEdit frm          = new frmAccountEdit();
         frm.OpType = 1;
         frm.id     = dgvAccList.CurrentRow.Cells["id"].Value.ToString();
         DialogResult result = frm.ShowDialog();
         if (result == DialogResult.OK)
         {
             BindData(where);
             dgvAccList.CurrentCell = dgvAccList.Rows[currRowIndex].Cells[0];
         }
     }
     catch (Exception ex)
     {
         GlobalStaticObj_Server.GlobalLogService.WriteLog("帐套设置", ex);
         MessageBoxEx.ShowWarning("程序异常");
     }
 }
Example #4
0
        /// <summary> 新增
        /// </summary>
        void UCAcountSet_AddEvent(object sender, EventArgs e)
        {
            if (dgvAccList.Rows.Count >= 5)
            {
                MessageBoxEx.Show("对不起,系统只支持创建五个帐套", "系统提示");
                return;
            }
            frmAccountEdit frm = new frmAccountEdit();

            frm.isAdd = true;
            DialogResult result = frm.ShowDialog();

            if (result == DialogResult.OK)
            {
                BindData(where);
                dgvAccList.CurrentCell = dgvAccList.Rows[dgvAccList.RowCount - 1].Cells[0];
            }
        }
Example #5
0
        /// <summary> 编辑
        /// </summary>
        void UCAcountSet_EditEvent(object sender, EventArgs e)
        {
            if (dgvAccList.CurrentRow == null)
            {
                return;
            }
            int            currRowIndex = dgvAccList.CurrentRow.Index;
            frmAccountEdit frm          = new frmAccountEdit();

            frm.isAdd = false;
            frm.id    = dgvAccList.CurrentRow.Cells["id"].Value.ToString();
            frm.isAdd = false;
            DialogResult result = frm.ShowDialog();

            if (result == DialogResult.OK)
            {
                BindData(where);
                dgvAccList.CurrentCell = dgvAccList.Rows[currRowIndex].Cells[0];
            }
        }
Example #6
0
 /// <summary> 新增
 /// </summary>
 void UCAcountSet_AddEvent(object sender, EventArgs e)
 {
     if (dgvAccList.Rows.Count >= 5)
     {
         MessageBoxEx.Show("对不起,系统只支持创建五个帐套", "系统提示");
         return;
     }
     try
     {
         frmAccountEdit frm = new frmAccountEdit();
         frm.OpType = 0;
         DialogResult result = frm.ShowDialog();
         if (result == DialogResult.OK)
         {
             BindData(where);
             dgvAccList.CurrentCell = dgvAccList.Rows[dgvAccList.RowCount - 1].Cells[0];
         }
     }
     catch (Exception ex)
     {
         GlobalStaticObj_Server.GlobalLogService.WriteLog("帐套设置", ex);
         MessageBoxEx.ShowWarning("程序异常");
     }
 }
Example #7
0
 /// <summary> 新增
 /// </summary>
 void UCAcountSet_AddEvent(object sender, EventArgs e)
 {
     if (dgvAccList.Rows.Count >= 5)
     {
         MessageBoxEx.Show("对不起,系统只支持创建五个帐套", "系统提示");
         return;
     }
     frmAccountEdit frm = new frmAccountEdit();
     frm.isAdd = true;
     DialogResult result = frm.ShowDialog();
     if (result == DialogResult.OK)
     {
         BindData(where);
         dgvAccList.CurrentCell = dgvAccList.Rows[dgvAccList.RowCount - 1].Cells[0];
     }
 }
Example #8
0
 /// <summary> 编辑
 /// </summary>
 void UCAcountSet_EditEvent(object sender, EventArgs e)
 {
     if (dgvAccList.CurrentRow == null)
     {
         return;
     }
     int currRowIndex = dgvAccList.CurrentRow.Index;
     frmAccountEdit frm = new frmAccountEdit();
     frm.isAdd = false;
     frm.id = dgvAccList.CurrentRow.Cells["id"].Value.ToString();
     frm.isAdd = false;
     DialogResult result = frm.ShowDialog();
     if (result == DialogResult.OK)
     {
         BindData(where);
         dgvAccList.CurrentCell = dgvAccList.Rows[currRowIndex].Cells[0];
     }
 }
Example #9
0
 /// <summary> 新增
 /// </summary>
 void UCAcountSet_AddEvent(object sender, EventArgs e)
 {
     if (dgvAccList.Rows.Count >= 6)
     {
         MessageBoxEx.Show("对不起,系统只支持创建五个帐套", "系统提示");
         return;
     }
     try
     {
         frmAccountEdit frm = new frmAccountEdit();
         frm.OpType = 0;
         DialogResult result = frm.ShowDialog();
         if (result == DialogResult.OK)
         {
             BindData(where);
             dgvAccList.CurrentCell = dgvAccList.Rows[dgvAccList.RowCount - 1].Cells[0];
         }
     }
     catch (Exception ex)
     {
         GlobalStaticObj_Server.GlobalLogService.WriteLog("帐套设置", ex);
         MessageBoxEx.ShowWarning("程序异常");
     }
 }
Example #10
0
 /// <summary> 查看
 /// </summary>
 void dgvAccList_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
 {
     if (dgvAccList.CurrentRow == null)
     {
         return;
     }
     try
     {
         string code = dgvAccList.CurrentRow.Cells["setbook_code"].Value.ToString();
         if (code == GlobalStaticObj_Server.CommAccCode)
         {
             MessageBoxEx.Show("当前账套是服务端使用,无相关参数信息,不能预览!");
             return;
         }
         int currRowIndex = dgvAccList.CurrentRow.Index;
         frmAccountEdit frm = new frmAccountEdit();
         frm.OpType = 2;
         frm.id = dgvAccList.CurrentRow.Cells["id"].Value.ToString();
         frm.ShowDialog();
     }
     catch (Exception ex)
     {
         GlobalStaticObj_Server.GlobalLogService.WriteLog("帐套设置", ex);
         MessageBoxEx.ShowWarning("程序异常");
     }
 }
Example #11
0
 /// <summary> 编辑
 /// </summary>
 void UCAcountSet_EditEvent(object sender, EventArgs e)
 {
     if (dgvAccList.CurrentRow == null)
     {
         return;
     }
     try
     {
         string code = dgvAccList.CurrentRow.Cells["setbook_code"].Value.ToString();
         if (code == GlobalStaticObj_Server.CommAccCode)
         {
             MessageBoxEx.Show("通用库不能编辑!");
             return;
         }
         int currRowIndex = dgvAccList.CurrentRow.Index;
         frmAccountEdit frm = new frmAccountEdit();
         frm.OpType = 1;
         frm.id = dgvAccList.CurrentRow.Cells["id"].Value.ToString();
         DialogResult result = frm.ShowDialog();
         if (result == DialogResult.OK)
         {
             BindData(where);
             dgvAccList.CurrentCell = dgvAccList.Rows[currRowIndex].Cells[0];
         }
     }
     catch (Exception ex)
     {
         GlobalStaticObj_Server.GlobalLogService.WriteLog("帐套设置", ex);
         MessageBoxEx.ShowWarning("程序异常");
     }
 }
Example #12
0
 /// <summary> 编辑
 /// </summary>
 void UCAcountSet_EditEvent(object sender, EventArgs e)
 {
     if (dgvAccList.CurrentRow == null)
     {
         return;
     }
     string code = dgvAccList.CurrentRow.Cells["setbook_code"].Value.ToString();
     if (code == GlobalStaticObj_Server.CommAccCode)
     {
         MessageBoxEx.Show("通用库不能编辑!");
         return;
     }
     int currRowIndex = dgvAccList.CurrentRow.Index;
     frmAccountEdit frm = new frmAccountEdit();
     frm.isAdd = false;
     frm.id = dgvAccList.CurrentRow.Cells["id"].Value.ToString();
     frm.isAdd = false;
     DialogResult result = frm.ShowDialog();
     if (result == DialogResult.OK)
     {
         BindData(where);
         dgvAccList.CurrentCell = dgvAccList.Rows[currRowIndex].Cells[0];
     }
 }