Esempio n. 1
0
        internal void PrintOrSentTsd(Guid useroid, DEBusinessItem item, string action, out StringBuilder strErr)
        {
            DBParameter dbParameter = DBUtil.GetDbParameter(true);

            try
            {
                dbParameter.Open();
                new DaArchivManager(dbParameter).PrintOrSentTsd(useroid, item, action, out strErr);
                if (strErr.Length > 0)
                {
                    dbParameter.Rollback();
                }
                else
                {
                    dbParameter.Commit();
                }
            }
            catch (Exception exception)
            {
                dbParameter.Rollback();
                throw new PLMException("托晒单发送打印失败", exception);
            }
            finally
            {
                dbParameter.Close();
            }
        }
Esempio n. 2
0
        internal ArrayList CheckTsdRight(ArrayList lstItems, string action, out StringBuilder strInfo, string clslb)
        {
            ArrayList   list2;
            DBParameter dbParameter = DBUtil.GetDbParameter(true);

            try
            {
                dbParameter.Open();
                ArrayList list = new DaArchivManager(dbParameter).CheckTsdRight(lstItems, action, out strInfo, clslb);
                dbParameter.Commit();
                list2 = list;
            }
            catch (Exception exception)
            {
                throw new PLMException("验证是否可处理出错", exception);
            }
            finally
            {
                dbParameter.Close();
            }
            return(list2);
        }
Esempio n. 3
0
        internal DataSet GetTsdFsdwByDoc(Guid useroid, string doccode, string clsname, string docname, string yct, string ftlx)
        {
            DataSet     set2;
            DBParameter dbParameter = DBUtil.GetDbParameter(true);

            try
            {
                dbParameter.Open();
                DataSet set = new DaArchivManager(dbParameter).GetTsdFsdwByDoc(useroid, doccode, clsname, docname, yct, ftlx);
                dbParameter.Commit();
                set2 = set;
            }
            catch (Exception exception)
            {
                dbParameter.Rollback();
                throw new PLMException("获取托晒单发送单位失败", exception);
            }
            finally
            {
                dbParameter.Close();
            }
            return(set2);
        }
Esempio n. 4
0
        internal DataSet GetTSDForPrint(string docId, Guid useroid, string wkName)
        {
            DataSet     set2;
            DBParameter dbParameter = DBUtil.GetDbParameter(true);

            try
            {
                dbParameter.Open();
                DataSet set = new DaArchivManager(dbParameter).GetTSDForPrint(useroid, docId, wkName);
                dbParameter.Commit();
                set2 = set;
            }
            catch (Exception exception)
            {
                dbParameter.Rollback();
                throw new PLMException("获取用于打印的托晒单失败", exception);
            }
            finally
            {
                dbParameter.Close();
            }
            return(set2);
        }