Example #1
0
        private static string GetCID(string slbh, string fileName)
        {
            string cid = ImportDAL.GetCID(slbh);

            if (cid == "")
            {
                WFM_ATTACHLST att = new WFM_ATTACHLST();
                att.CID   = Guid.NewGuid().ToString();
                att.CNAME = fileName;
                att.PID   = ImportDAL.GetCID(slbh);
                att.PNODE = slbh;
                cid       = ImportDAL.InserAttachlst(att);
            }
            return(cid);
        }
Example #2
0
        private static string GetCID(string slbh, string fileName, string fileType, string user, string pid)
        {
            string cid = ImportDAL.GetCID(slbh, fileName, fileType);

            if (cid == "")
            {
                WFM_ATTACHLST att = new WFM_ATTACHLST();
                att.CID   = Guid.NewGuid().ToString();
                att.CNAME = fileName;
                if (fileType == "文件夹")
                {
                    att.PID = ImportDAL.GetCID(slbh);
                }
                else
                {
                    att.PID = pid;
                }
                att.PNODE = slbh;
                cid       = ImportDAL.InserAttachlst(att, fileType, user);
            }
            return(cid);
        }