Exemple #1
0
        /// <summary>
        /// 设定付款类型信息
        /// </summary>
        private void btnPayTypeList_Click(object sender, EventArgs e)
        {
            try
            {
                if (!FrmMainDAO.QueryUserButtonPower(this.Name, this.Text, sender, true))
                {
                    return;
                }

                if (!editForm.EditState)
                {
                    DataRow        dr     = gridViewPayType.GetFocusedDataRow();
                    FrmPayTypeList ptList = new FrmPayTypeList(DataTypeConvert.GetString(dr["PayTypeNo"]), DataTypeConvert.GetString(dr["PayTypeNoText"]));
                    ptList.ShowDialog();
                }
                else
                {
                    MessageHandler.ShowMessageBox(f.tsmiQxbchzjx.Text);// ("请先保存后再进行其他操作。");
                }
            }
            catch (Exception ex)
            {
                ExceptionHandler.HandleException(this.Text + "--设定付款类型信息错误。", ex);
            }
        }
Exemple #2
0
 /// <summary>
 /// 设定付款类型信息
 /// </summary>
 private void btnPayTypeList_Click(object sender, EventArgs e)
 {
     if (!editForm.EditState)
     {
         DataRow        dr     = gridViewPayType.GetFocusedDataRow();
         FrmPayTypeList ptList = new FrmPayTypeList(DataTypeConvert.GetString(dr["PayTypeNo"]), DataTypeConvert.GetString(dr["PayTypeNoText"]));
         ptList.ShowDialog();
     }
     else
     {
         MessageHandler.ShowMessageBox(f.tsmiQxbchzjx.Text);// ("请先保存后再进行其他操作。");
     }
 }