Beispiel #1
0
 public FrmCheckQueryControl(IFrmCheckQuery frmCheckQuery)
 {
     _frmCheckQuery = frmCheckQuery;
     _drugInfo      = YP_Loader.LoadUseDrug();
     _drugDeptList  = YP_Loader.GetAllDrugDept();
     _frmCheckQuery.RefreshDrugInfo(_drugInfo);
 }
 /// <summary>
 /// 加载汇总头表
 /// </summary>
 /// <param name="beginTime"></param>
 /// <param name="endTime"></param>
 /// <param name="isRefund"></param>
 /// <param name="drugType"></param>
 /// <param name="statWay"></param>
 /// <param name="makerDicId"></param>
 /// <param name="isMZZY"></param>
 public void LoadDispMaster(DateTime beginTime, DateTime endTime, bool isRefund,
                            int drugType, string statWay, int makerDicId, int isMZZYQY)
 {
     try
     {
         _totalFee = 0;
         _statType = statWay;
         _dispMaster.Rows.Clear();
         if (_dispOrder != null)
         {
             _dispOrder.Rows.Clear();
         }
         //加载明细
         _dispOrder = YP_Loader.LoadDispInfo(beginTime, endTime, drugType, isRefund,
                                             makerDicId, isMZZYQY);
         //生成汇总数据
         GetDispMaster();
         _frmdispstatquery.RefreshDispMaster(_dispMaster);
         _frmdispstatquery.SetTotalFee(_totalFee);
     }
     catch (Exception error)
     {
         throw error;
     }
 }
Beispiel #3
0
 public void LoadCheckOrder(int auditNo, YP_DeptDic drugDept)
 {
     try
     {
         _checkInfoDt = YP_Loader.LoadCheckInfo(auditNo, drugDept.DeptID, drugDept.DeptType1, _drugType, _queryMakerId);
         _frmCheckQuery.RefreshCheckOrder(_checkInfoDt);
     }
     catch (Exception error)
     {
         throw error;
     }
 }
Beispiel #4
0
        private decimal GetTotalTradeFee()
        {
            decimal totalTradeFee = 0;

            if (_listDeptStore.Count > 0)
            {
                foreach (QueryStoreDept storeDept in _listDeptStore)
                {
                    totalTradeFee += YP_Loader.LoadTradelFee(storeDept.DeptDic);
                }
            }
            return(totalTradeFee);
        }
Beispiel #5
0
 public void LoadData(string drugType, DateTime beginDate, DateTime endDate, string rptPath)
 {
     try
     {
         _checkAuditInfo = YP_Loader.LoadCheckBillFee(beginDate, endDate, drugType, _queryMakerId);
         _drugType       = drugType;
         _frmCheckQuery.ShowCheckMaster(_checkAuditInfo, _drugDeptList);
     }
     catch (Exception error)
     {
         throw error;
     }
 }
 public FrmDispQueryControl(IFrmDispStatQuery frmdispstatquery)
 {
     _frmdispstatquery = frmdispstatquery;
     _dispMaster       = new DataTable();
     _dispMaster.Columns.Add("PRJID", new Int32().GetType());
     _dispMaster.Columns.Add("PRJNAME");
     _dispMaster.Columns.Add("PRJFEE", new Decimal().GetType());
     _dispMaster.Columns.Add("TOTALNUM", new Decimal().GetType());
     _dispMaster.Columns.Add("productname");
     _dispMaster.Columns.Add("spec");
     _dispMaster.PrimaryKey = new DataColumn[] { _dispMaster.Columns["PRJID"] };
     _drugInfo = YP_Loader.LoadUseDrug();
     _frmdispstatquery.RefreshDrugInfo(_drugInfo);
 }
Beispiel #7
0
 private void GetAllDrugDept()
 {
     try
     {
         List <YP_DeptDic> listDept = YP_Loader.GetAllDrugDept();
         foreach (YP_DeptDic dept in listDept)
         {
             QueryStoreDept queryDept = new QueryStoreDept();
             queryDept.DeptDic = dept;
             _listDeptStore.Add(queryDept);
         }
     }
     catch (Exception error)
     {
         throw error;
     }
 }
 public void LoadOutMasterData(DateTime beginDate, DateTime endDate, int deptId, string opType)
 {
     try
     {
         _totalOutRetailFee = 0;
         _totalOutTradeFee  = 0;
         _totalOutStoreInfo.Rows.Clear();
         _outStoreInfo = YP_Loader.LoadOutStoreInfo(beginDate, endDate, deptId, opType);
         GetTotalOutStoreInfo(opType);
         _frmInOutQuery.RefreshOutMaster(_totalOutStoreInfo);
         _frmInOutQuery.SetTotalFee(_totalOutRetailFee, _totalOutTradeFee);
     }
     catch (Exception error)
     {
         throw error;
     }
 }
 public void LoadInMasterData(DateTime beginDate, DateTime endDate, int deptId, string getType, string opType)
 {
     try
     {
         _queryType        = getType;
         _totalInRetailFee = 0;
         _totalInStockFee  = 0;
         _totalInStoreInfo.Rows.Clear();
         _inStoreInfo = YP_Loader.LoadInStoreInfo(beginDate, endDate, deptId, opType);
         GetTotalInStoreInfo(_queryType);
         _frmInOutQuery.RefreshInMaster(_totalInStoreInfo);
         _frmInOutQuery.SetTotalFee(_totalInRetailFee, _totalInStockFee);
     }
     catch (Exception error)
     {
         throw error;
     }
 }
        public FrmInOutQueryControl(IFrmInOutQuery frmInOutQuery)
        {
            _frmInOutQuery    = frmInOutQuery;
            _totalInStoreInfo = new DataTable();
            _totalInStoreInfo.Columns.Add("PRJNAME");
            _totalInStoreInfo.Columns.Add("PRJID", new Int32().GetType());
            _totalInStoreInfo.Columns.Add("RETAILFEE", new Decimal().GetType());
            _totalInStoreInfo.Columns.Add("XYRETAILFEE", new Decimal().GetType());
            _totalInStoreInfo.Columns.Add("ZYRETAILFEE", new Decimal().GetType());
            _totalInStoreInfo.Columns.Add("ZCYRETAILFEE", new Decimal().GetType());
            _totalInStoreInfo.Columns.Add("WZRETAILFEE", new Decimal().GetType());
            _totalInStoreInfo.Columns.Add("TRADEFEE", new Decimal().GetType());
            _totalInStoreInfo.Columns.Add("XYTRADEFEE", new Decimal().GetType());
            _totalInStoreInfo.Columns.Add("ZYTRADEFEE", new Decimal().GetType());
            _totalInStoreInfo.Columns.Add("ZCYTRADEFEE", new Decimal().GetType());
            _totalInStoreInfo.Columns.Add("WZTRADEFEE", new Decimal().GetType());
            _totalOutStoreInfo = _totalInStoreInfo.Clone();
            TypeFee typeFee = new TypeFee();

            typeFee.RetailFeeName = "XYRETAILFEE";
            typeFee.TradeFeeName  = "XYTRADEFEE";
            _typeName.Add(1, typeFee);
            typeFee = new TypeFee();
            typeFee.RetailFeeName = "ZCYRETAILFEE";
            typeFee.TradeFeeName  = "ZCYTRADEFEE";
            _typeName.Add(2, typeFee);
            typeFee = new TypeFee();
            typeFee.RetailFeeName = "ZYRETAILFEE";
            typeFee.TradeFeeName  = "ZYTRADEFEE";
            _typeName.Add(3, typeFee);
            typeFee = new TypeFee();
            typeFee.RetailFeeName = "WZRETAILFEE";
            typeFee.TradeFeeName  = "WZTRADEFEE";
            _typeName.Add(4, typeFee);
            _totalInStoreInfo.PrimaryKey  = new DataColumn[] { _totalInStoreInfo.Columns["PRJID"] };
            _totalOutStoreInfo.PrimaryKey = new DataColumn[] { _totalOutStoreInfo.Columns["PRJID"] };
            _deptDt = YP_Loader.GetYKDept();
            _frmInOutQuery.AddDrugDept(_deptDt);
        }
Beispiel #11
0
 private void LoadAllDeptStore(string drugType, string queryCode)
 {
     try
     {
         if (_listDeptStore.Count > 0)
         {
             foreach (QueryStoreDept storeDept in _listDeptStore)
             {
                 storeDept.StoreDt = YP_Loader.LoadDrugStore(storeDept.DeptDic,
                                                             drugType,
                                                             queryCode);
                 if (storeDept.StoreDt != null)
                 {
                     storeDept.StoreDt.PrimaryKey = new DataColumn[] { storeDept.StoreDt.Columns["MAKERDICID"] };
                 }
             }
         }
     }
     catch (Exception error)
     {
         throw error;
     }
 }