Beispiel #1
0
 /// <summary>
 /// 根据主键删除费用管理
 /// </summary>
 /// <param name="costManageId"></param>
 public static void DeleteCostManageById(string costManageId)
 {
     Model.SUBHSSEDB            db         = Funs.DB;
     Model.CostGoods_CostManage costManage = db.CostGoods_CostManage.FirstOrDefault(e => e.CostManageId == costManageId);
     if (costManage != null)
     {
         CodeRecordsService.DeleteCodeRecordsByDataId(costManageId);    //删除编号
         ProjectDataFlowSetService.DeleteFlowSetByDataId(costManageId); //删除流程
         CommonService.DeleteFlowOperateByID(costManageId);             //删除审核流程
         CommonService.DeleteAttachFileById(costManageId);              //删除附件
         db.CostGoods_CostManage.DeleteOnSubmit(costManage);
         db.SubmitChanges();
     }
 }
Beispiel #2
0
 /// <summary>
 /// 根据主键删除物资出库管理
 /// </summary>
 /// <param name="goodsOutId"></param>
 public static void DeleteGoodsOutById(string goodsOutId)
 {
     Model.SUBHSSEDB          db       = Funs.DB;
     Model.CostGoods_GoodsOut goodsOut = db.CostGoods_GoodsOut.FirstOrDefault(e => e.GoodsOutId == goodsOutId);
     if (goodsOut != null)
     {
         CodeRecordsService.DeleteCodeRecordsByDataId(goodsOutId);    //删除编号
         ProjectDataFlowSetService.DeleteFlowSetByDataId(goodsOutId); //删除流程
         ////删除审核流程表
         BLL.CommonService.DeleteFlowOperateByID(goodsOutId);
         db.CostGoods_GoodsOut.DeleteOnSubmit(goodsOut);
         db.SubmitChanges();
     }
 }
Beispiel #3
0
 /// <summary>
 /// 根据主键删除违章曝光台
 /// </summary>
 /// <param name="exposureId"></param>
 public static void DeleteExposureById(string exposureId)
 {
     Model.SUBHSSEDB db = Funs.DB;
     Model.InformationProject_Exposure exposure = db.InformationProject_Exposure.FirstOrDefault(e => e.ExposureId == exposureId);
     if (exposure != null)
     {
         CommonService.DeleteAttachFileById(exposureId);              //删除附件
         CodeRecordsService.DeleteCodeRecordsByDataId(exposureId);    //删除编号
         ProjectDataFlowSetService.DeleteFlowSetByDataId(exposureId); //删除流程
         ////删除审核流程表
         BLL.CommonService.DeleteFlowOperateByID(exposureId);
         db.InformationProject_Exposure.DeleteOnSubmit(exposure);
         db.SubmitChanges();
     }
 }
 /// <summary>
 /// 根据法律法规辨识编号删除一个法律法规辨识信息
 /// </summary>
 /// <param name="lawRegulationIdentifyCode">法律法规辨识编号</param>
 public static void DeleteLawRegulationIdentify(string lawRegulationIdentifyId)
 {
     Model.SUBHSSEDB db = Funs.DB;
     Model.Law_LawRegulationIdentify lawRegulationIdentify = db.Law_LawRegulationIdentify.FirstOrDefault(e => e.LawRegulationIdentifyId == lawRegulationIdentifyId);
     if (lawRegulationIdentify != null)
     {
         ///删除编码表记录
         BLL.CodeRecordsService.DeleteCodeRecordsByDataId(lawRegulationIdentifyId);
         //CommonService.DeleteAttachFileById(lawRegulationIdentifyId);//删除附件
         ProjectDataFlowSetService.DeleteFlowSetByDataId(lawRegulationIdentifyId);//删除流程
         ////删除审核流程表
         BLL.CommonService.DeleteFlowOperateByID(lawRegulationIdentifyId);
         db.Law_LawRegulationIdentify.DeleteOnSubmit(lawRegulationIdentify);
         db.SubmitChanges();
     }
 }