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

                if (!editForm.EditState)
                {
                    DataRow dr = gridViewCollectionType.GetFocusedDataRow();
                    FrmCollectionTypeList ctList = new FrmCollectionTypeList(DataTypeConvert.GetString(dr["CollectionTypeNo"]), DataTypeConvert.GetString(dr["CollectionTypeNoText"]));
                    ctList.ShowDialog();
                }
                else
                {
                    MessageHandler.ShowMessageBox(f.tsmiQxbchzjx.Text);// ("请先保存后再进行其他操作。");
                }
            }
            catch (Exception ex)
            {
                ExceptionHandler.HandleException(this.Text + "--设定收款类型信息错误。", ex);
            }
        }
Exemplo n.º 2
0
 /// <summary>
 /// 设定收款类型信息
 /// </summary>
 private void btnCollectionTypeList_Click(object sender, EventArgs e)
 {
     if (!editForm.EditState)
     {
         DataRow dr = gridViewCollectionType.GetFocusedDataRow();
         FrmCollectionTypeList ctList = new FrmCollectionTypeList(DataTypeConvert.GetString(dr["CollectionTypeNo"]), DataTypeConvert.GetString(dr["CollectionTypeNoText"]));
         ctList.ShowDialog();
     }
     else
     {
         MessageHandler.ShowMessageBox(f.tsmiQxbchzjx.Text);// ("请先保存后再进行其他操作。");
     }
 }