Example #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;
        }
Example #2
0
        private void CreateCancelOrderParameter()
        {
            try
            {
                if (this.c1FlexGridFeeDetails.Cols.Contains("stat_type"))
                {
                    this.parameter = new InterfaceClass.HN.MZ.MZ_ChangeParameter();

                    parameter.MZRegChange.center_id      = baseInterfaceHN.Oper_centerid;
                    parameter.MZRegChange.hospital_id    = baseInterfaceHN.Oper_hospitalid;
                    parameter.MZRegChange.serial_no      = this.txtBox_serial_no.Text.Trim();
                    parameter.MZRegChange.indi_id        = this._info.indi_id;
                    parameter.MZRegChange.biz_type       = this._info.biz_type;
                    parameter.MZRegChange.treatment_type = this._info.treatment_type;
                    parameter.MZRegChange.reg_staff      = this._userID.ToString();
                    parameter.MZRegChange.reg_man        = this._info.reg_man;
                    parameter.MZRegChange.save_flag      = "1";//收费
                    parameter.MZRegChange.bill_no        = string.Empty;
                    parameter.MZRegChange.trade_no       = string.Empty;
                    parameter.MZRegChange.diagnose       = this._info.disease;
                    parameter.MZRegChange.diagnose_date  = this._info.fin_date;
                    parameter.MZRegChange.query_flag     = "1";//退费

                    for (int i = 1; i < this.c1FlexGridFeeDetails.Rows.Count; i++)
                    {
                        InterfaceClass.HN.MZ.FeeInfo feeInfo = new InterfaceClass.HN.MZ.FeeInfo();

                        feeInfo.medi_item_type = GetMedi_Item_Type(this.c1FlexGridFeeDetails.Rows[i]["item_code"].ToString().Trim());
                        feeInfo.stat_type      = this.c1FlexGridFeeDetails.Rows[i]["stat_type"].ToString().Trim();
                        feeInfo.his_item_code  = this.c1FlexGridFeeDetails.Rows[i]["item_code"].ToString().Trim();
                        feeInfo.his_item_name  = this.c1FlexGridFeeDetails.Rows[i]["his_item_name"].ToString().Trim();
                        feeInfo.model          = string.Empty;
                        feeInfo.factory        = string.Empty;
                        feeInfo.standard       = string.Empty;
                        feeInfo.fee_date       = this._info.fin_date;
                        feeInfo.unit           = this.c1FlexGridFeeDetails.Rows[i]["unit"].ToString().Trim();
                        feeInfo.price          = this.c1FlexGridFeeDetails.Rows[i]["price"].ToString().Trim();
                        feeInfo.dosage         = (-double.Parse(this.c1FlexGridFeeDetails.Rows[i]["dosage"].ToString().Trim())).ToString();
                        feeInfo.money          = (-double.Parse(this.c1FlexGridFeeDetails.Rows[i]["money"].ToString().Trim())).ToString();
                        feeInfo.usage_flag     = "0";
                        feeInfo.usage_days     = "";
                        feeInfo.opp_serial_fee = this.c1FlexGridFeeDetails.Rows[i]["serial_fee"].ToString().Trim();
                        feeInfo.hos_serial     = "";
                        feeInfo.input_staff    = this._userID.ToString();
                        feeInfo.input_man      = this._userName;
                        feeInfo.input_date     = this._info.fin_date;
                        feeInfo.recipe_no      = "";
                        feeInfo.doctor_no      = "";
                        feeInfo.doctor_name    = "";

                        parameter.AddFeeInfo(feeInfo);
                    }
                }
            }
            catch (Exception ex)
            {
                CommonFunctions.MsgError("创建取消订单参数发生错误,错误原因:" + ex.Message);
            }
        }
Example #3
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);
            }
        }