Ejemplo n.º 1
0
        /// <summary>
        /// Save2
        /// </summary>
        void Save2()
        {
            if (this.txtPathName.Text.Trim() == string.Empty || this.txtPathName.Tag == null)
            {
                MessageBox.Show("请选择路径(名称)", "系统提示", MessageBoxButtons.OK, MessageBoxIcon.Error);
                this.txtPathName.Focus();
                return;
            }
            DataRow            dr    = this.txtPathName.Tag as DataRow;
            int                isFit = this.rdoYes.Checked ? 1 : 0;
            clsBIHOrderService svc   = new clsDcl_GetSvcObject().m_GetOrderSvcObject();

            if (svc.SaveIsFitCp(patVo.m_strRegisterID, isFit, dr["cpname"].ToString()) > 0)
            {
                MessageBox.Show("保存成功!", "系统提示", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
            }
            else
            {
                MessageBox.Show("保存失败。", "系统提示", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }