Ejemplo n.º 1
0
        void dataGView1_RowToXml(RowToXmlEvent e)
        {
            if (e.Data["卡片ID"].IsNull)
            {
                e.IsValid = false;
                WJs.alert("第" + (e.Row.Index + 1) + "行必须输入【卡片ID】!");
                this.dataGView1.setFocus(e.Row.Index, "卡片ID");
                return;
            }
            if (e.Data["卡片设备"].IsNull)
            {
                e.IsValid = false;
                WJs.alert("第" + (e.Row.Index + 1) + "行必须输入【卡片设备】");
                this.dataGView1.setFocus(e.Row.Index, "卡片设备");
                return;
            }

            if (!WJs.IsNum(e.Data["本月折旧"].ToString()) || e.Data["本月折旧"].ToFloat() <= 0)
            {
                e.IsValid = false;
                WJs.alert("第" + (e.Row.Index + 1) + "行【本月折旧】只能输入数字,并且必须大于0!");
                this.dataGView1.setFocus(e.Row.Index, "本月折旧");
                return;
            }
            if (!WJs.IsNum(e.Data["本月工作量"].ToString()) || e.Data["本月工作量"].ToFloat() <= 0)
            {
                e.IsValid = false;
                WJs.alert("第" + (e.Row.Index + 1) + "行【本月工作量】只能输入数字,并且必须大于0!");
                this.dataGView1.setFocus(e.Row.Index, "本月工作量");
                return;
            }
        }
Ejemplo n.º 2
0
        private void UpdateMoney(int row)
        {
            //数量不为0 或者空
            //成本单价>=<单价>+<运杂费>/<数量>
            //运杂费>= 所选库存流水记录里的运杂费/库存流水记录里的数量*本次出库数量;
            //<成本金额>=<成本单价>×<数量>
            DataGridViewRow r = this.dataGView1.Rows[row];

            if (r.Cells["EqIdName_Column"].Value == null)
            {
                return;
            }
            double result;

            if (!WJs.IsNum(r.Cells["shuliang_Column"].Value.ToString()) || !WJs.IsD0Zs(r.Cells["shuliang_Column"].Value.ToString()))
            {
                WJs.alert("数量必须为正整数,已设置为默认值1 !");
                r.Cells["shuliang_Column"].Value = 1;
                return;
            }

            DataTable YunZaShuLiang = LData.LoadDataTable("FindYunZaFeiInEQDiaoBO", null, new object[] { dataGView1.Rows[row].Cells["KuCunLiuShui_Column"].Value, His.his.Choscode });

            if (YunZaShuLiang == null)
            {
                WJs.alert("该库存流水记录内不包含运杂费,设备数量等数据,无法继续操作!");
                return;
            }

            DataRow drr = YunZaShuLiang.Rows[0];
            double  ChangeYunZaFei;

            //分别为对应的库存流水里面的数量和对应的运杂费       运杂费>= 所选库存流水记录里的运杂费/库存流水记录里的数量*本次出库数量;
            if (double.TryParse(drr["NUM"].ToString(), out result) && double.TryParse(drr["OTHERMONEY"].ToString(), out ChangeYunZaFei))
            {
                if (r.Cells["shuliang_Column"].Value != null && WJs.IsZs(r.Cells["shuliang_Column"].Value.ToString().Trim()) && r.Cells["danjia_Column"].Value != null)
                {
                    this.dataGView1.jsBds("金额=数量*单价");
                    r.Cells["yunzafei_Column"].Value = (ChangeYunZaFei * (Convert.ToDouble(r.Cells["shuliang_Column"].Value.ToString().Trim())) / result).ToString("f" + XiaoShuWei);
                    this.dataGView1.jsBds("成本单价=单价+运杂费/数量");
                    this.dataGView1.jsBds("成本金额=成本单价*数量");
                }
                else
                {
                    r.Cells["jine_Column"].Value     = 0.ToString("f" + XiaoShuWei);
                    r.Cells["danjia_Column"].Value   = 0.ToString("f" + XiaoShuWei);
                    r.Cells["yunzafei_Column"].Value = 0.ToString("f" + XiaoShuWei);
                }
            }
            this.TotalMoney_textBox1.Text = this.dataGView1.Sum("金额").ToString();
        }
Ejemplo n.º 3
0
        void dataGView1_RowToXml(RowToXmlEvent e) //将所有数据生产xml类型数据
        {
            if (e.Data["设备ID"].IsNull)
            {
                e.IsValid = false;
                WJs.alert("第" + (e.Row.Index + 1) + "行必须输入【设备名称】!");
                this.dataGView1.setFocus(e.Row.Index + 1, "设备名称");
                return;
            }
            if (e.Data["国别"].IsNull)
            {
                e.IsValid = false;
                WJs.alert("第" + (e.Row.Index + 1) + "行必须输入【国别】!");
                this.dataGView1.setFocus(e.Row.Index, "国别");
                return;
            }
            if (!WJs.IsZs(e.Data["采购数量"].ToString()) || e.Data["采购数量"].ToDouble() <= 0)
            {
                e.IsValid = false;
                WJs.alert("第" + (e.Row.Index + 1) + "行【采购数量】只能输入整数,并且必须大于0!");
                this.dataGView1.setFocus(e.Row.Index, "数量");
                return;
            }
            if (!WJs.MaxNumOver(e.Data["采购数量"].ToString(), "第" + (e.Row.Index + 1) + "行【采购数量】设定值太大,请更改"))
            {
                e.IsValid = false;
                this.dataGView1.setFocus(e.Row.Index, "采购数量");
                return;
            }
            if (!WJs.IsNum(e.Data["采购单价"].ToString()) || e.Data["采购单价"].ToFloat() <= 0)
            {
                e.IsValid = false;
                WJs.alert("第" + (e.Row.Index + 1) + "行【采购单价】只能输入数字,并且必须大于0!");
                this.dataGView1.setFocus(e.Row.Index, "采购单价");
                return;
            }

            if (!e.Data["备注"].IsNull && e.Data["备注"].ToString().Length > 500)
            {
                e.IsValid = false;
                WJs.alert("第" + (e.Row.Index + 1) + "行输入的【备注】最多只允许500个字符!");
                this.dataGView1.setFocus(e.Row.Index, "备注");
                return;
            }
        }
Ejemplo n.º 4
0
        private void Save_button_Click(object sender, EventArgs e)
        {
            if (deptid_selTextInpt.Text == "" || deptid_selTextInpt.Value == "")
            {
                WJs.alert("请选择一个科室");
                deptid_selTextInpt.Focus();
                return;
            }
            if (ytComboBox1.SelectedIndex < 0)
            {
                WJs.alert("请选择一个状态!");
                ytComboBox1.Focus();
                return;
            }
            if (useman_textBox.Text.Trim() == "")
            {
                WJs.alert("请填写使用人!");
                useman_textBox.Focus();
                return;
            }
            if (usenum_textBox.Text.Trim() == "")
            {
                WJs.alert("请填写使用次数!");
                usenum_textBox.Focus();
                return;
            }

            if (!WJs.IsD0Zs(usenum_textBox.Text) || Convert.ToInt32(usenum_textBox.Text) < 0)
            {
                WJs.alert("使用次数:请输入一个正整数!");
                usenum_textBox.Focus();
                return;
            }
            if (CLfare_textBox.Text.Trim() != "" && CLfare_textBox.Text.Trim() != null)
            {
                if (!WJs.IsNum(CLfare_textBox.Text.Trim()) || Convert.ToDouble(CLfare_textBox.Text.Trim()) < 0)
                {
                    WJs.alert("材料费必须为正数!");
                    CLfare_textBox.Focus();
                    return;
                }
            }
            if (NHfare_textBox.Text.Trim() != "" && NHfare_textBox.Text.Trim() != null)
            {
                if (!WJs.IsNum(NHfare_textBox.Text.Trim()) || Convert.ToDouble(NHfare_textBox.Text.Trim()) < 0)
                {
                    WJs.alert("能耗费必须为正数!");
                    NHfare_textBox.Focus();
                    return;
                }
            }
            if (OtherFare_textBox.Text.Trim() != "" && OtherFare_textBox.Text.Trim() != null)
            {
                if (!WJs.IsNum(OtherFare_textBox.Text.Trim()) || Convert.ToDouble(OtherFare_textBox.Text.Trim()) < 0)
                {
                    WJs.alert("其他费用必须为正数!");
                    OtherFare_textBox.Focus();
                    return;
                }
            }
            if (Income_textBox.Text.Trim() != "" && Income_textBox.Text.Trim() != null)
            {
                if (!WJs.IsNum(Income_textBox.Text.Trim()) || Convert.ToDouble(Income_textBox.Text.Trim()) < 0)
                {
                    WJs.alert("营业收入必须为正数!");
                    Income_textBox.Focus();
                    return;
                }
            }

            ActionLoad ac = ActionLoad.Conn();

            ac.Action = "LKWZSVR.lkeq.UseingEQ.EQUseManagSvr";
            ac.Sql    = "AddOrSaveEQUseManage";
            AddInfoForSave(ac);
            ac.ServiceLoad += new YtClient.data.events.LoadEventHandle(ac_ServiceLoad);
            ac.Post();
            if (isOK)
            {
                WJs.alert("保存使用信息成功,即将关闭本窗口……");
                this.Close();
            }
        }
Ejemplo n.º 5
0
        void dataGView1_RowToXml(RowToXmlEvent e)
        {
            if (e.Data["设备ID"].IsNull)
            {
                e.IsValid = false;
                WJs.alert("第" + (e.Row.Index + 1) + "行必须输入【设备】!");
                this.dataGView1.setFocus(e.Row.Index, "设备");
                return;
            }

            if (!WJs.IsZs(e.Data["数量"].ToString()) || e.Data["数量"].ToDouble() <= 0)
            {
                e.IsValid = false;
                WJs.alert("第" + (e.Row.Index + 1) + "行【数量】只能输入整数,并且必须大于0!");
                this.dataGView1.setFocus(e.Row.Index, "数量");
                return;
            }
            if (!WJs.MaxNumOver(e.Data["数量"].ToString(), "第" + (e.Row.Index + 1) + "行【数量】"))
            {
                e.IsValid = false;
                WJs.alert("第" + (e.Row.Index + 1) + "行【数量】太大,请重新输入!");
                this.dataGView1.setFocus(e.Row.Index, "数量");

                return;
            }
            if (!WJs.IsNum(e.Data["发票单价"].ToString()) || e.Data["发票单价"].ToFloat() <= 0)
            {
                e.IsValid = false;
                WJs.alert("第" + (e.Row.Index + 1) + "行【发票单价】只能输入数字,并且必须大于0!");
                this.dataGView1.setFocus(e.Row.Index, "发票单价");
                return;
            }
            if (!WJs.IsNum(e.Data["运杂费"].ToString()) || e.Data["运杂费"].ToFloat() <= 0)
            {
                e.IsValid = false;
                WJs.alert("第" + (e.Row.Index + 1) + "行【运杂费】只能输入数字,并且必须大于0!");
                this.dataGView1.setFocus(e.Row.Index, "运杂费");
                return;
            }
            if (e.Data["生产日期"].ToDateTime() > DateTime.Now)
            {
                e.IsValid = false;
                WJs.alert("第" + (e.Row.Index + 1) + "行【生产日期】不能大于当前日期!");
                this.dataGView1.setFocus(e.Row.Index, "生产日期");
                return;
            }
            if (e.Data["生产日期"].IsNull)
            {
                e.IsValid = false;
                WJs.alert("请设置第" + (e.Row.Index + 1) + "行【生产日期】,且不能大于当前日期!");
                this.dataGView1.setFocus(e.Row.Index, "生产日期");
                return;
            }
            if (e.Data["有效期"].ToDateTime() < DateTime.Now)
            {
                e.IsValid = false;
                WJs.alert("第" + (e.Row.Index + 1) + "行【有效期】不能小于当前日期!");
                this.dataGView1.setFocus(e.Row.Index, "有效期");
                return;
            }

            if (!e.Data["备注"].IsNull && e.Data["备注"].ToString().Length > 500)
            {
                e.IsValid = false;
                WJs.alert("第" + (e.Row.Index + 1) + "行输入的【备注】最多只允许500个字符!");
                this.dataGView1.setFocus(e.Row.Index, "备注");
                return;
            }
            if (!e.Data["条形码"].IsNull && e.Data["条形码"].ToString().Length > 100)
            {
                e.IsValid = false;
                WJs.alert("第" + (e.Row.Index + 1) + "行输入的【条形码】最多只允许100个字符!");
                this.dataGView1.setFocus(e.Row.Index, "条形码");
                return;
            }
            if (!e.Data["生产厂家"].IsNull && e.Data["生产厂家"].ToString().Length > 100)
            {
                e.IsValid = false;
                WJs.alert("第" + (e.Row.Index + 1) + "行输入的【生产厂家】最多只允许100个字符!");
                this.dataGView1.setFocus(e.Row.Index, "生产厂家");
                return;
            }
        }
Ejemplo n.º 6
0
        //验证细表信息
        private int YanZhengXiXinXi()
        {
            int n = dataGView1.RowCount;

            if (n <= 0)
            {
                WJs.alert("细表信息不能为空!");
                return(1);
            }

            for (int i = 0; i < n; i++)
            {
                Num++;
                DataGridViewCellCollection dgvc = dataGView1.Rows[i].Cells;
                if (dgvc != null)
                {
                    if (dgvc["SheBeiMingChen"].Value == null || dgvc["SheBeiMingChen"].Value.ToString().Trim() == "")
                    {
                        WJs.alert("第" + Num + "行,必填项:设备名称,请选择好之后进行保存!");
                        return(1);
                    }

                    if (dgvc["KCYLColumn"].Value == null || dgvc["KCYLColumn"].Value.ToString().Trim() == "")
                    {
                        WJs.alert("第" + Num + "行,必填项:流水号,请选择好之后进行保存!");
                        return(1);
                    }

                    if (dgvc["shuliang_Column"].Value == null || dgvc["shuliang_Column"].Value.ToString().Trim() == "")
                    {
                        WJs.alert("第" + Num + "行,必填项:数量,请选择好之后进行保存!");
                        return(1);
                    }

                    //if (!WJs.IsNum(dgvc["shuliang_Column"].Value.ToString()) || Convert.ToInt32(dgvc["shuliang_Column"].Value.ToString()) < 0 || WJs.IsZs(dgvc["shuliang_Column"].Value.ToString()))
                    if (!WJs.IsNum(dgvc["shuliang_Column"].Value.ToString()) || !WJs.IsD0Zs(dgvc["shuliang_Column"].Value.ToString()))
                    {
                        WJs.alert("第" + Num + "行,数量必须为正整数 !");
                        return(1);
                    }

                    if (dgvc["Unitcode_Column"].Value == null || dgvc["Unitcode_Column"].Value.ToString().Trim() == "")
                    {
                        WJs.alert("第" + Num + "行,必填项:单位编码,请选择好之后进行保存!");
                        return(1);
                    }

                    if (isCanFKC == "0")
                    {
                        if (Convert.ToInt32(dgvc["shuliang_Column"].Value) > Convert.ToInt32(dgvc["KCYLColumn"].Value))
                        {
                            WJs.alert("由系统参数决定,不能进行负库存出库操作!");
                            return(1);
                        }
                    }
                }
                else
                {
                    WJs.alert("存在空行!");//此种情况基本不会出现,因为默认的添加行就是存在内容的
                    return(1);
                }
            }
            return(0);
        }
Ejemplo n.º 7
0
        private int YanZhengInfo()
        {
            if (ChangeType_ytComboBox.SelectedIndex < 0)
            {
                WJs.alert("请选择变动类型!");
                ChangeType_ytComboBox.Focus();
                return(1);
            }
            if (Status_ytComboBox.SelectedIndex < 0)
            {
                WJs.alert("请选择状态!");
                Status_ytComboBox.Focus();
                return(1);
            }
            if (OldYZ_textBox.Text.Trim() != "")
            {
                if (NewYZ_textBox.Text.Trim() == "")
                {
                    WJs.alert("请填入原值");
                    NewYZ_textBox.Focus();
                    return(1);
                }
                if (!WJs.IsNum(NewYZ_textBox.Text.Trim()) || Convert.ToDouble(NewYZ_textBox.Text.Trim()) < 0)
                {
                    WJs.alert("原值必须为正数!");
                    NewYZ_textBox.Focus();
                    return(1);
                }
            }
            if (OldUseStatus_selText.Value != "" || OldUseStatus_selText.Text != "")
            {
                if (NewUseStatus_selText.Value == "" || NewUseStatus_selText.Text == "")
                {
                    WJs.alert("请选择现使用状态!");
                    NewUseStatus_selText.Focus();
                    return(1);
                }
            }

            if (OldDeptid_selText.Value != "" || OldDeptid_selText.Text != "")
            {
                if (NewDeptid_selText.Value == "" || NewDeptid_selText.Text == "")
                {
                    WJs.alert("请选择现使用科室!");
                    NewDeptid_selText.Focus();
                    return(1);
                }
            }


            if (OldMan_textBox.Text.Trim() != "")
            {
                if (NewMan_textBox.Text.Trim() == "")
                {
                    WJs.alert("请填写现保管人!");
                    NewMan_textBox.Focus();
                    return(1);
                }
            }
            return(0);
        }
Ejemplo n.º 8
0
        private int ModifyWXYanZheng()
        {
            if (RepairDeptId_selText.Text.Trim() == "" || RepairDeptId_selText.Value.Trim() == "")
            {
                WJs.alert("维修必填项:维修科室ID!");
                RepairDeptId_selText.Focus();
                return(1);
            }

            if (repairMan_textBox.Text.Trim() == "")
            {
                WJs.alert("维修必填项:维修人");
                repairMan_textBox.Focus();
                return(1);
            }
            if (RepairTime_textBox.Text.Trim() == "")
            {
                WJs.alert("维修必填项:维修工时");
                RepairTime_textBox.Focus();
                return(1);
            }
            if (!WJs.IsNum(RepairTime_textBox.Text.Trim()) || Convert.ToDouble(RepairTime_textBox.Text.Trim()) < 0)
            {
                WJs.alert("维修工时必须为正数!");
                RepairTime_textBox.Focus();
                return(1);
            }
            if (Repairfare_textBox.Text.Trim() == "")
            {
                WJs.alert("维修必填项:维修费");
                Repairfare_textBox.Focus();
                return(1);
            }

            if (Repairfare_textBox.Text.Trim() != "" && Repairfare_textBox.Text.Trim() != null)
            {
                if (!WJs.IsNum(Repairfare_textBox.Text.Trim()) || Convert.ToDouble(Repairfare_textBox.Text.Trim()) < 0)
                {
                    WJs.alert("维修费必须为正数!");
                    Repairfare_textBox.Focus();
                    return(1);
                }
            }
            if (CLfare_textBox.Text.Trim() != "" && CLfare_textBox.Text.Trim() != null)
            {
                if (!WJs.IsNum(CLfare_textBox.Text.Trim()) || Convert.ToDouble(CLfare_textBox.Text.Trim()) < 0)
                {
                    WJs.alert("材料费必须为正数!");
                    CLfare_textBox.Focus();
                    return(1);
                }
            }
            if (OtherFare_textBox.Text.Trim() != "" && OtherFare_textBox.Text.Trim() != null)
            {
                if (!WJs.IsNum(OtherFare_textBox.Text.Trim()) || Convert.ToDouble(OtherFare_textBox.Text.Trim()) < 0)
                {
                    WJs.alert("其他费用必须为正数!");
                    OtherFare_textBox.Focus();
                    return(1);
                }
            }

            if (CLfare_textBox.Text.Trim() == "")
            {
                WJs.alert("维修必填项:材料费");
                CLfare_textBox.Focus();
                return(1);
            }

            if (OtherFare_textBox.Text.Trim() == "")
            {
                WJs.alert("维修必填项:其他");
                OtherFare_textBox.Focus();
                return(1);
            }
            if (RepairPass_textBox.Text.Trim() == "")
            {
                WJs.alert("维修必填项:维修经过");
                RepairPass_textBox.Focus();
                return(1);
            }
            if (RepairResult_textBox.Text.Trim() == "")
            {
                WJs.alert("维修必填项:维修结果");
                RepairResult_textBox.Focus();
                return(1);
            }
            if (ChangeParts_textBox.Text.Trim() == "")
            {
                WJs.alert("维修必填项:更换部件");
                ChangeParts_textBox.Focus();
                return(1);
            }
            if (Repairdate_dateTimePicker.Value == null)
            {
                WJs.alert("维修必填项:维修日期");
                Repairdate_dateTimePicker.Focus();
                return(1);
            }
            return(0);
        }
Ejemplo n.º 9
0
        public static string PDError(string RetInfo)
        {  // 判断返回的信息是否错误
            int    ErrID;
            string ErrStr = "SYSTEM_";
            string tt     = null;

            if (RetInfo.Length >= ErrStr.Length && RetInfo.Substring(0, 7).Equals(ErrStr) && !"0000".Equals(RetInfo.Replace(ErrStr, "")))
            {
                string error = RetInfo.Replace(ErrStr, "");
                if (WJs.IsNum(error))
                {
                    ErrID = int.Parse(error);
                    switch (ErrID)
                    {
                    case 0: break;

                    case 1: RetInfo = "病人医疗证号错误-nh"; break;

                    case 2: RetInfo = "病人姓名错误-nh"; break;

                    case 3: RetInfo = "病人姓名参合状态错误-nh"; break;

                    case 4: RetInfo = "成员编号在列表中不存在-nh"; break;

                    case 5: RetInfo = "判断暂存错误-nh"; break;

                    case 6: RetInfo = "获取暂存错误-nh"; break;

                    case 7: RetInfo = "获取成员信息错误-nh"; break;

                    case 8: RetInfo = "获取成员信息不存在-nh"; break;

                    case 9: RetInfo = "成员当前状态为空-nh"; break;

                    case 10: RetInfo = "成员当前状态(0. 正常 1. 注销)不正常-nh"; break;

                    case 11: RetInfo = "获取家庭信息错误-nh"; break;

                    case 12: RetInfo = "获取年龄出错-nh"; break;

                    case 13: RetInfo = "住院信息为空-nh"; break;

                    case 14: RetInfo = "上传时住院信息中个人编码错误-nh"; break;

                    case 15: RetInfo = "上传时住院信息中家庭编码错误-nh"; break;

                    case 16: RetInfo = "就诊类型错误-nh"; break;

                    case 17: RetInfo = "入院时间为空-nh"; break;

                    case 18: RetInfo = "出院时间不能在入院时间前-nh"; break;

                    case 19: RetInfo = "就医机构代码错误-nh"; break;

                    case 20: RetInfo = "就医机构类别:不能为空-nh"; break;

                    case 21: RetInfo = "入院科室代码错误-nh"; break;

                    case 22: RetInfo = "出院科室代码错误-nh"; break;

                    case 23: RetInfo = "入院状态代码错误-nh"; break;

                    case 24: RetInfo = "出院状态代码错误-nh"; break;

                    case 25: RetInfo = "疾病代码错误-nh"; break;

                    case 26: RetInfo = "补助账户类别错误-nh"; break;

                    case 27: RetInfo = "补助类别错误-nh"; break;

                    case 28: RetInfo = "核算机构错误-nh"; break;

                    case 29: RetInfo = "要删除的明细的主记录不存在-nh"; break;

                    case 30: RetInfo = "要删除的明细的主记录不是暂存状态-nh"; break;

                    case 31: RetInfo = "计算失败-nh"; break;

                    case 32: RetInfo = "结算失败-nh"; break;

                    case 33: RetInfo = "冲红失败-nh"; break;

                    case 34: RetInfo = "要上传的门诊明细对应的主记录不存在-nh"; break;

                    case 35: RetInfo = "要上传的住院明细对应的主记录不存在-nh"; break;

                    case 36: RetInfo = "病人在其它医院有没有结算的记录-nh"; break;

                    case 37: RetInfo = "计算的住院记录不存在,请检查是否已被删除-nh"; break;

                    case 38: RetInfo = "结算的住院记录不存在,请检查是否已被删除-nh"; break;

                    case 39: RetInfo = "要冲红的记录不存在-nh"; break;

                    case 40: RetInfo = "已结算数据无法进行预结算-nh"; break;

                    case 41: RetInfo = "计算的门诊记录不存在-nh"; break;

                    case 42: RetInfo = "记录已结算或冲毁,不能再上传明细-nh"; break;

                    case 43: RetInfo = "住院数据不存在或者未结算-nh"; break;

                    case 44: RetInfo = "优抚计算失败-nh"; break;

                    case 45: RetInfo = "未进行优抚住院申请 -nh"; break;

                    case 46: RetInfo = "不是优抚补偿定点医疗机构或者定点医疗机构优抚补偿未启用 -nh"; break;

                    case 98: RetInfo = "住院号重复,核实是否已结算-nh"; break;

                    case 99: RetInfo = "机构已禁用-nh"; break;

                    default:  RetInfo = "未知错误"; break;
                    }
                }
                tt = RetInfo;
            }

            return(tt);
        }