示例#1
0
文件: frmYB_CS.cs 项目: iamwsx05/HIS
        private void btnReceive_Click(object sender, EventArgs e)
        {
            this.Cursor = Cursors.WaitCursor;

            clsDcl_Charge objCharge = new clsDcl_Charge();

            long l = objCharge.m_lngGetResult(this.DSN, "S" + this.lblZyh.Text.Trim(), out dtyb);

            if (l > 0 && dtyb.Rows.Count > 0)
            {
                this.lblYBMoney.Text  = dtyb.Rows[0]["sbzfje"].ToString();
                this.lblGovMoney.Text = dtyb.Rows[0]["gwybzje"].ToString();

                //this.sbmny = clsPublic.ConvertObjToDecimal(dtyb.Rows[0]["grzfje"]);
                this.sbmny           = clsPublic.ConvertObjToDecimal(this.lblTotalMoney.Text) - clsPublic.ConvertObjToDecimal(this.lblYBMoney.Text) - clsPublic.ConvertObjToDecimal(this.lblGovMoney.Text);
                this.lblSbMoeny.Text = this.sbmny.ToString();

                this.btnOk.Enabled  = true;
                this.lblStatus.Text = "接收医保结算数据成功!";
            }
            else
            {
                this.Cursor = Cursors.Default;
                MessageBox.Show("接收医保结算数据失败,请重新接收。", "系统提示", MessageBoxButtons.OK, MessageBoxIcon.Stop);
                return;
            }

            this.Cursor = Cursors.Default;
        }