Ejemplo n.º 1
0
 /// <summary>
 /// 构造函数
 /// </summary>
 public clsControlMedStoreAcct()
 {
     //
     // TODO: 在此处添加构造函数逻辑
     //
     m_objManage    = new clsDomainControlMedStore();
     m_objMedStore  = new clsMedStore_VO();
     m_objOperator  = new clsEmployeeVO();
     m_objCurPeriod = new clsPeriod_VO();
 }
Ejemplo n.º 2
0
        public long m_lngGetPeriodList(System.Security.Principal.IPrincipal p_objPrincipal, out clsPeriod_VO[] p_objResultArr)
        {
            long lngRes = 0;

            p_objResultArr = new clsPeriod_VO[0];

            clsPrivilegeHandleService objPrivilege = new clsPrivilegeHandleService();

            lngRes = objPrivilege.m_lngCheckCallPrivilege(p_objPrincipal, "com.digitalwave.iCare.middletier.HIS.clsHisMedInOrderStatisticSvc", "m_lngGetPeriodList");
            if (lngRes < 0)
            {
                return(-1);
            }

            string strSQL = @"Select PERIODID_CHR,STARTDATE_DAT,ENDDATE_DAT From t_bse_period order by PERIODID_CHR";

            try
            {
                DataTable dtbResult = new DataTable();
                com.digitalwave.iCare.middletier.HRPService.clsHRPTableService objHRPSvc = new clsHRPTableService();
                lngRes = objHRPSvc.DoGetDataTable(strSQL, ref dtbResult);
                if (lngRes > 0 && dtbResult.Rows.Count > 0)
                {
                    p_objResultArr = new com.digitalwave.iCare.ValueObject.clsPeriod_VO[dtbResult.Rows.Count];
                    for (int i1 = 0; i1 < p_objResultArr.Length; i1++)
                    {
                        p_objResultArr[i1] = new com.digitalwave.iCare.ValueObject.clsPeriod_VO();
                        p_objResultArr[i1].m_strPeriodID  = dtbResult.Rows[i1]["PERIODID_CHR"].ToString().Trim();
                        p_objResultArr[i1].m_strStartDate = dtbResult.Rows[i1]["STARTDATE_DAT"].ToString().Trim();
                        p_objResultArr[i1].m_strEndDate   = dtbResult.Rows[i1]["ENDDATE_DAT"].ToString().Trim();
                    }
                }
                objHRPSvc.Dispose();
            }
            catch (Exception objEx)
            {
                string strTmp = objEx.Message;
                com.digitalwave.Utility.clsLogText objLogger = new clsLogText();
                bool blnRes = objLogger.LogError(objEx);
            }
            return(lngRes);
        }
Ejemplo n.º 3
0
 /// <summary>
 /// 获得当前帐务期
 /// </summary>
 private void m_mthGetCurPeriod()
 {
     this.m_objCurPeriod = clsPublicParm.s_GetCurPeriod();
     this.m_objViewer.m_txtCurPeriod.Text = this.m_objCurPeriod.m_strStartDate + " 至 " + this.m_objCurPeriod.m_strEndDate;
     this.m_objViewer.m_txtCurPeriod.Tag  = this.m_objCurPeriod;
 }