private void btSelect_Click(object sender, EventArgs e)
        {
            if (dgList.CurrentRow == null)
            {
                return;
            }
            object objWaterUserID = dgList.CurrentRow.Cells["waterUserNO"].Value;

            if (objWaterUserID != null && objWaterUserID != DBNull.Value)
            {
                if (strFormType == "1")
                {
                    frmWaterUserSearchAll frm = (frmWaterUserSearchAll)this.Owner;
                    frm.strSelectWaterUser = objWaterUserID.ToString();
                }
                this.DialogResult = DialogResult.OK;
                if (strFormType == "2")
                {
                    frmWaterUserSearchAll_CanModify frm = (frmWaterUserSearchAll_CanModify)this.Owner;
                    frm.strSelectWaterUser = objWaterUserID.ToString();
                }
                this.DialogResult = DialogResult.OK;
            }
            else
            {
                mes.Show("获取用户号失败,请重新选择!");
                return;
            }
        }
Exemplo n.º 2
0
        private void 台账编辑ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmWaterUserSearchAll_CanModify frm = new frmWaterUserSearchAll_CanModify();

            frm.Show(this.dockPanel1);
        }