示例#1
0
文件: NunitTest.cs 项目: sywymj/NCMS
        public void InpatientRegister()
        {
            HisComponent hisComponent = new HisComponent();

            try
            {
                //string hr = hisComponent.HisBalanceDel(45094);
                //Assert.AreEqual(string.Empty, hr);

                ParamBalance pbalance = new ParamBalance()
                {
                    zyh = 45094, outDate = DateTime.Now
                };
                string hr = hisComponent.HisBalance(pbalance);
                Assert.AreEqual(string.Empty, hr);

                //int hr=hisComponent.JzdToNhFeeListByZyh(45094);
                //Assert.AreEqual(0, hr);
                //List<string> ls = (List<string>)hisComponent.ProcessFeeListByZyh(45094,true);
                //Assert.AreEqual(0,ls.Count);
            }
            catch (System.Exception ex)
            {
                Assert.Fail(ex.Message);
            }
        }
示例#2
0
文件: NunitTest.cs 项目: sywymj/NCMS
 public void UpLoadFee()
 {
     HisComponent hisComponent = new HisComponent();
     int iHr=hisComponent.JzdToNhFeeListByZyh(45094);
     Assert.AreEqual(0, iHr);
     var errors=hisComponent.ProcessFeeListByZyh(45094, true);
     Assert.AreEqual(errors.Count(), 0);
 }
示例#3
0
文件: NunitTest.cs 项目: sywymj/NCMS
        public void UpLoadFee()
        {
            HisComponent hisComponent = new HisComponent();
            int          iHr          = hisComponent.JzdToNhFeeListByZyh(45094);

            Assert.AreEqual(0, iHr);
            var errors = hisComponent.ProcessFeeListByZyh(45094, true);

            Assert.AreEqual(errors.Count(), 0);
        }
示例#4
0
文件: FormMaster.cs 项目: sywymj/NCMS
 private void FormMaster_Load(object sender, EventArgs e)
 {
     try
     {
         HisCom = new HisComponent();
         StringBuilder sb = new StringBuilder(256);
         int hr = NhLocalWrap.InitDLL(sb);
         if (hr < 0)
         {
             throw new Exception(sb.ToString());
         }
     }
     catch (System.Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }
示例#5
0
文件: NunitTest.cs 项目: sywymj/NCMS
        public void InpatientRegister()
        {
            HisComponent hisComponent = new HisComponent();
            try
            {
                //string hr = hisComponent.HisBalanceDel(45094);
                //Assert.AreEqual(string.Empty, hr);

                ParamBalance pbalance = new ParamBalance() { zyh = 45094, outDate = DateTime.Now };
                string hr = hisComponent.HisBalance(pbalance);
                Assert.AreEqual(string.Empty, hr);

                //int hr=hisComponent.JzdToNhFeeListByZyh(45094);
                //Assert.AreEqual(0, hr);
                //List<string> ls = (List<string>)hisComponent.ProcessFeeListByZyh(45094,true);
                //Assert.AreEqual(0,ls.Count);
            }
            catch (System.Exception ex)
            {
                Assert.Fail(ex.Message);
            }
        }
示例#6
0
文件: GOperator.cs 项目: sywymj/NCMS
        static GSettings()
        {
            HisComponent his=new HisComponent();

            Doctors = his.GetDoctors();
        }
示例#7
0
        static GSettings()
        {
            HisComponent his = new HisComponent();

            Doctors = his.GetDoctors();
        }
示例#8
0
文件: NunitTest.cs 项目: sywymj/NCMS
        //取消结算
        public void CancelCal()
        {
            HisComponent hisComponent = new HisComponent();

            hisComponent.HisBalanceDel(45094);
        }
示例#9
0
文件: NunitTest.cs 项目: sywymj/NCMS
        public void ClearFee()
        {
            HisComponent hisComponent = new HisComponent();

            hisComponent.ClearAllUploadedFeeByZyh(45094);
        }
示例#10
0
文件: NunitTest.cs 项目: sywymj/NCMS
 public void ClearFee()
 {
     HisComponent hisComponent = new HisComponent();
     hisComponent.ClearAllUploadedFeeByZyh(45094);
 }
示例#11
0
文件: NunitTest.cs 项目: sywymj/NCMS
 public void CancelCal()
 {
     HisComponent hisComponent = new HisComponent();
     hisComponent.HisBalanceDel(45094);
 }