Пример #1
0
        private void ImportUFProjectSingle(string s, SingleEntityDAO dao, EntityData entity)
        {
            string[] m_strSub = s.Replace("\"", "").Split(',');

            if (m_strSub.Length < 2)
            {
                return;
            }

            //为空时,不导
            if ((m_strSub[0].Trim() == "") || (m_strSub[1].Trim() == ""))
            {
                return;
            }

            string code = m_strSub[0].Trim();

            DataRow dr = entity.CurrentTable.NewRow();

            dr["UFProjectCode"] = code;
            dr["UFProjectName"] = m_strSub[1].Trim();

            entity.CurrentTable.Rows.Add(dr);
            dao.InsertEntity(entity);
        }
Пример #2
0
 public static void Add(EntityData entity)
 {
     using (SingleEntityDAO ydao = new SingleEntityDAO("StampDuty"))
     {
         ydao.InsertEntity(entity);
     }
 }
Пример #3
0
 private void InsertOAComputerMaintenance(EntityData entity)
 {
     try
     {
         using (SingleEntityDAO ydao = new SingleEntityDAO("OAComputerMaintenance"))
         {
             ydao.InsertEntity(entity);
         }
     }
     catch (Exception exception)
     {
         throw exception;
     }
 }
Пример #4
0
 public static void InsertRiskType(EntityData entity)
 {
     try
     {
         using (SingleEntityDAO ydao = new SingleEntityDAO("RiskType"))
         {
             ydao.InsertEntity(entity);
         }
     }
     catch (Exception exception)
     {
         throw exception;
     }
 }
Пример #5
0
 public static void InsertConstructProgressStep(EntityData entity)
 {
     try
     {
         using (SingleEntityDAO ydao = new SingleEntityDAO("ConstructProgressStep"))
         {
             ydao.InsertEntity(entity);
         }
     }
     catch (Exception exception)
     {
         throw exception;
     }
 }
Пример #6
0
 public static void InsertSubjectSet(EntityData entity)
 {
     try
     {
         using (SingleEntityDAO ydao = new SingleEntityDAO("SubjectSet"))
         {
             ydao.InsertEntity(entity);
         }
     }
     catch (Exception exception)
     {
         throw exception;
     }
 }
Пример #7
0
 private void InsertBidding_SupplierDepartmentIdea(EntityData entity)
 {
     try
     {
         using (SingleEntityDAO ydao = new SingleEntityDAO("Bidding_SupplierDepartmentIdea"))
         {
             ydao.InsertEntity(entity);
         }
     }
     catch (Exception exception)
     {
         throw exception;
     }
 }
Пример #8
0
 public static void InsertBiddingLog(EntityData entity)
 {
     try
     {
         using (SingleEntityDAO ydao = new SingleEntityDAO("BiddingLog"))
         {
             ydao.InsertEntity(entity);
         }
     }
     catch (Exception exception)
     {
         throw exception;
     }
 }
Пример #9
0
 public static void InsertSupplierLinkman(EntityData entity)
 {
     try
     {
         using (SingleEntityDAO ydao = new SingleEntityDAO("SupplierLinkman"))
         {
             ydao.InsertEntity(entity);
         }
     }
     catch (Exception exception)
     {
         throw exception;
     }
 }
Пример #10
0
 private void InsertSendMsg(EntityData entity)
 {
     try
     {
         using (SingleEntityDAO ydao = new SingleEntityDAO("SendMsg"))
         {
             ydao.InsertEntity(entity);
         }
     }
     catch (Exception exception)
     {
         throw exception;
     }
 }
Пример #11
0
 public static void InsertContractor(EntityData entity)
 {
     try
     {
         using (SingleEntityDAO ydao = new SingleEntityDAO("Contractor"))
         {
             ydao.InsertEntity(entity);
         }
     }
     catch (Exception exception)
     {
         throw exception;
     }
 }
Пример #12
0
 public static void InsertBiddingGradeConsiderDiathesis(EntityData entity)
 {
     try
     {
         using (SingleEntityDAO ydao = new SingleEntityDAO("BiddingGradeConsiderDiathesis"))
         {
             ydao.InsertEntity(entity);
         }
     }
     catch (Exception exception)
     {
         throw exception;
     }
 }
Пример #13
0
 public static void InsertRemindStrategy(EntityData entity)
 {
     try
     {
         using (SingleEntityDAO ydao = new SingleEntityDAO("RemindStrategy"))
         {
             ydao.InsertEntity(entity);
         }
     }
     catch (Exception exception)
     {
         throw exception;
     }
 }
Пример #14
0
 public static void InsertNoticeAttachMent(EntityData entity)
 {
     try
     {
         using (SingleEntityDAO ydao = new SingleEntityDAO("NoticeAttachMent"))
         {
             ydao.InsertEntity(entity);
         }
     }
     catch (Exception exception)
     {
         throw exception;
     }
 }
Пример #15
0
 public static void InsertEnquiryDetail(EntityData entity)
 {
     try
     {
         using (SingleEntityDAO ydao = new SingleEntityDAO("EnquiryDetail"))
         {
             ydao.InsertEntity(entity);
         }
     }
     catch (Exception exception)
     {
         throw exception;
     }
 }
Пример #16
0
 private void InsertV_BiddingSupplier(EntityData entity)
 {
     try
     {
         using (SingleEntityDAO ydao = new SingleEntityDAO("V_BiddingSupplier"))
         {
             ydao.InsertEntity(entity);
         }
     }
     catch (Exception exception)
     {
         throw exception;
     }
 }
Пример #17
0
 public static void InsertMaterialCost(EntityData entity)
 {
     try
     {
         using (SingleEntityDAO ydao = new SingleEntityDAO("MaterialCost"))
         {
             ydao.InsertEntity(entity);
         }
     }
     catch (Exception exception)
     {
         throw exception;
     }
 }
Пример #18
0
 public static void InsertTCheckPayment(EntityData entity)
 {
     try
     {
         using (SingleEntityDAO ydao = new SingleEntityDAO("TCheckPayment"))
         {
             ydao.InsertEntity(entity);
         }
     }
     catch (Exception exception)
     {
         throw exception;
     }
 }
Пример #19
0
 public static void InsertGradeDepartmentPercentage(EntityData entity)
 {
     try
     {
         using (SingleEntityDAO ydao = new SingleEntityDAO("GradeDepartmentPercentage"))
         {
             ydao.InsertEntity(entity);
         }
     }
     catch (Exception exception)
     {
         throw exception;
     }
 }
Пример #20
0
 public static void InsertPurchaseBiddingBook(EntityData entity)
 {
     try
     {
         using (SingleEntityDAO ydao = new SingleEntityDAO("PurchaseBiddingBook"))
         {
             ydao.InsertEntity(entity);
         }
     }
     catch (Exception exception)
     {
         throw exception;
     }
 }
Пример #21
0
 public static void InsertWorkFlow_Leave(EntityData entity)
 {
     try
     {
         using (SingleEntityDAO ydao = new SingleEntityDAO("WorkFlow_Leave"))
         {
             ydao.InsertEntity(entity);
         }
     }
     catch (Exception exception)
     {
         throw exception;
     }
 }
Пример #22
0
 public static void InsertPurchaseFlowSelSupply(EntityData entity)
 {
     try
     {
         using (SingleEntityDAO ydao = new SingleEntityDAO("PurchaseFlowSelSupply"))
         {
             ydao.InsertEntity(entity);
         }
     }
     catch (Exception exception)
     {
         throw exception;
     }
 }
Пример #23
0
 private void InsertOACachet(EntityData entity)
 {
     try
     {
         using (SingleEntityDAO ydao = new SingleEntityDAO("OACachet"))
         {
             ydao.InsertEntity(entity);
         }
     }
     catch (Exception exception)
     {
         throw exception;
     }
 }
Пример #24
0
 public static void InsertPBSTypeLayout(EntityData entity)
 {
     try
     {
         using (SingleEntityDAO ydao = new SingleEntityDAO("PBSTypeLayout"))
         {
             ydao.InsertEntity(entity);
         }
     }
     catch (Exception exception)
     {
         throw exception;
     }
 }
Пример #25
0
 public static void InsertConstructAnnualPlan(EntityData entity)
 {
     try
     {
         using (SingleEntityDAO ydao = new SingleEntityDAO("ConstructAnnualPlan"))
         {
             ydao.InsertEntity(entity);
         }
     }
     catch (Exception exception)
     {
         throw exception;
     }
 }
Пример #26
0
 public static void InsertUserDesktop(EntityData entity)
 {
     try
     {
         using (SingleEntityDAO ydao = new SingleEntityDAO("UserDesktop"))
         {
             ydao.InsertEntity(entity);
         }
     }
     catch (Exception exception)
     {
         throw exception;
     }
 }
Пример #27
0
 public static void InsertGroundWork(EntityData entity)
 {
     try
     {
         using (SingleEntityDAO ydao = new SingleEntityDAO("GroundWork"))
         {
             ydao.InsertEntity(entity);
         }
     }
     catch (Exception exception)
     {
         throw exception;
     }
 }
Пример #28
0
 private void InsertBiddingPrejudication(EntityData entity)
 {
     try
     {
         using (SingleEntityDAO ydao = new SingleEntityDAO("BiddingPrejudication"))
         {
             ydao.InsertEntity(entity);
         }
     }
     catch (Exception exception)
     {
         throw exception;
     }
 }
Пример #29
0
 public static void InsertVisualProgress(EntityData entity)
 {
     try
     {
         using (SingleEntityDAO ydao = new SingleEntityDAO("VisualProgress"))
         {
             ydao.InsertEntity(entity);
         }
     }
     catch (Exception exception)
     {
         throw exception;
     }
 }
Пример #30
0
 public static void InsertClaimsExpressions(EntityData entity)
 {
     try
     {
         using (SingleEntityDAO ydao = new SingleEntityDAO("ClaimsExpressions"))
         {
             ydao.InsertEntity(entity);
         }
     }
     catch (Exception exception)
     {
         throw exception;
     }
 }