Exemplo n.º 1
0
        private void m_mthDeleteGroupDetail(clsGroupDetail_VO obj_VO)
        {
            string strSQL = "INSERT INTO T_AID_RPT_GOP_DEF (RPTID_CHR,GROUPID_CHR,GROUPNAME_CHR) VALUES (?,?,?)";

            try
            {
                com.digitalwave.iCare.middletier.HRPService.clsHRPTableService objHRPSvc = new clsHRPTableService();
                long lngRes = objHRPSvc.DoExcute(strSQL);
                objHRPSvc.Dispose();
            }
            catch (Exception objEx)
            {
                string strTmp = objEx.Message;
                com.digitalwave.Utility.clsLogText objLogger = new clsLogText();
                bool blnRes = objLogger.LogError(objEx);
            }
        }
Exemplo n.º 2
0
        public long m_mthGetGroupDetailByID(System.Security.Principal.IPrincipal p_objPrincipal,
                                            string strReportID, string strGroupID, string strflag, out clsGroupDetail_VO[] objResult)
        {
            long lngRes = 0;

            objResult = null;
            //权限类
            clsPrivilegeHandleService objPrivilege = new clsPrivilegeHandleService();

            //检查是否有使用些函数的权限
            lngRes = objPrivilege.m_lngCheckCallPrivilege(p_objPrincipal, "com.digitalwave.iCare.middletier.HIS.clsReportMaintenanceSvc", "m_mthGetGroupDetailByID");
            if (lngRes < 0)            //没有使用的权限
            {
                return(-1);
            }
            string strSQL = "select * from T_AID_RPT_GOP_RLA where RPTID_CHR ='" + strReportID + "' and GROUPID_CHR ='" + strGroupID + "'and FLAG_INT like '" + strflag + "%'";


            try
            {
                DataTable dtResult = new DataTable();
                com.digitalwave.iCare.middletier.HRPService.clsHRPTableService objHRPSvc = new clsHRPTableService();
                lngRes = objHRPSvc.lngGetDataTableWithoutParameters(strSQL, ref dtResult);
                objHRPSvc.Dispose();
                if (lngRes > 0 && dtResult.Rows.Count > 0)
                {
                    objResult = new clsGroupDetail_VO[dtResult.Rows.Count];
                    for (int i1 = 0; i1 < objResult.Length; i1++)
                    {
                        objResult[i1]             = new clsGroupDetail_VO();
                        objResult[i1].strReportID = dtResult.Rows[i1]["RPTID_CHR"].ToString().Trim();
                        objResult[i1].strGroupID  = dtResult.Rows[i1]["GROUPID_CHR"].ToString().Trim();
                        objResult[i1].strTypeID   = dtResult.Rows[i1]["TYPEID_CHR"].ToString().Trim();
                        objResult[i1].intFlag     = int.Parse(dtResult.Rows[i1]["FLAG_INT"].ToString().Trim());
                    }
                }
            }
            catch (Exception objEx)
            {
                com.digitalwave.Utility.clsLogText objLogger = new clsLogText();
                bool blnRes = objLogger.LogError(objEx);
            }
            return(lngRes);
        }
Exemplo n.º 3
0
 /// <summary>
 /// 获取信息
 /// </summary>
 /// <param name="obj_VO"></param>
 private void m_mthGetReportInfo3(out clsGroupDetail_VO[] obj_VO)
 {
     obj_VO = new clsGroupDetail_VO[this.m_objViewer.listView3.CheckedItems.Count];
     if (this.m_objViewer.listView3.CheckedItems.Count == 0)
     {
         obj_VO                = new clsGroupDetail_VO[1];
         obj_VO[0]             = new clsGroupDetail_VO();
         obj_VO[0].strReportID = this.m_objViewer.btChangeA.Tag.ToString();
         obj_VO[0].intFlag     = int.Parse(this.m_objViewer.ra1.Tag.ToString());
         obj_VO[0].strGroupID  = this.m_objViewer.btChangeB.Tag.ToString();
         obj_VO[0].strTypeID   = null;
     }
     else
     {
         for (int i = 0; i < this.m_objViewer.listView3.CheckedItems.Count; i++)
         {
             obj_VO[i]             = new clsGroupDetail_VO();
             obj_VO[i].strReportID = this.m_objViewer.btChangeA.Tag.ToString();
             obj_VO[i].intFlag     = int.Parse(this.m_objViewer.ra1.Tag.ToString());
             obj_VO[i].strGroupID  = this.m_objViewer.btChangeB.Tag.ToString();
             obj_VO[i].strTypeID   = this.m_objViewer.listView3.CheckedItems[i].Tag.ToString();
         }
     }
 }