Beispiel #1
0
        /// <summary>
        /// 初始化门诊改费主参数
        /// </summary>
        /// <param name="ds"></param>
        private void InitMZ_ChangeMainParameter(DataSet ds)
        {
            if (this._mz_ChangeParameter != null)
            {
                this._mz_ChangeParameter = null;
            }

            this._mz_ChangeParameter = new InterfaceClass.HN.MZ.MZ_ChangeParameter();

            InterfaceClass.HN.MZ.MZRegChange mzRegChange = new InterfaceClass.HN.MZ.MZRegChange();

            List <Parameter> listParameter = GetProperties <InterfaceClass.HN.MZ.MZRegChange>(mzRegChange);

            for (int i = 0; i < ds.Tables[0].Rows.Count; i++)
            {
                mzRegChange = null;
                mzRegChange = new InterfaceClass.HN.MZ.MZRegChange();

                foreach (Parameter p in listParameter)
                {
                    string value = ds.Tables[0].Rows[i][p.Name].ToString().Trim();

                    mzRegChange.SetAttributeValue(p.Name, value);
                }
            }

            this._mz_ChangeParameter.MZRegChange = mzRegChange;
        }
Beispiel #2
0
        /// <summary>
        ///
        /// </summary>
        private void ThreadCancelOrders()
        {
            try
            {
                SendUIMsg(UIMsg.Display, "正在撤销结算单【" + this._serial_no + "】,请稍后......");

                DataTable dt = GetSerial_no_MZRegChargeInfo();

                InterfaceClass.HN.MZ.MZ_ChangeParameter mz_changeParameter = new InterfaceClass.HN.MZ.MZ_ChangeParameter();

                InterfaceClass.HN.MZ.MZRegChange mzRegChange = new InterfaceClass.HN.MZ.MZRegChange();

                List <Parameter> listParameter = GetProperties <InterfaceClass.HN.MZ.MZRegChange>(mzRegChange);

                foreach (Parameter p in listParameter)
                {
                    string value = dt.Rows[0][p.Name].ToString().Trim();

                    mzRegChange.SetAttributeValue(p.Name, value);
                }
                mzRegChange.save_flag  = "1"; //改费
                mzRegChange.query_flag = "1"; //退费

                mz_changeParameter.MZRegChange = mzRegChange;
                mz_changeParameter.ListFeeInfo = new List <InterfaceClass.HN.MZ.FeeInfo>();

                InterfaceClass.HN.MZ.CheckAndSaveFeeDetails inter = new InterfaceClass.HN.MZ.CheckAndSaveFeeDetails(baseInterfaceHN);

                inter.CheckCalcAndSaveWrittenFeeDetails(mz_changeParameter);

                SendUIMsg(UIMsg.Close);
            }
            catch (Exception ex)
            {
                SendUIMsg(UIMsg.Close);
                SendUIMsg(UIMsg.MsgError, "撤销订单【" + this._serial_no + "】发生错误,错误原因:" + ex.Message);
            }
        }