コード例 #1
0
        public bool T_NyuukinMeisai_T_Tesuuryou_Delete(T_NyuukinMeisai_Entity NyuukinMeisai_data, T_Tesuuryou_Entity Tessuryou_data, L_Log_Entity log_data)
        {
            NyuukinMeisaiDL.StartTransaction();
            if (NyuukinMeisaiDL.T_NyuukinMeisai_Tesuuryou_Delete(log_data))
            {
                if (LogDL.L_Log_Insert(log_data))
                {
                    NyuukinMeisaiDL.CommitTransaction();

                    return(true);
                }
            }
            return(false);
        }
コード例 #2
0
        public bool MakerZaiko_Insert(M_MakerZaiko_H_Entity makerH_data, MakerZaiko_D_Entity makerD_data, M_NoukiHenkan_Entity nouki_data, L_Log_Entity l_log, SuuryoHenKan_Entity suuryo_data)
        {
            hdl.StartTransaction();
            DataRow[] dtrowMaker  = makerD_data.dtKamoKu.Select("ItemName IS NOT NULL OR ItemName <> ' '");
            DataRow[] dtrowNouki  = nouki_data.dtNouki.Select("Maker IS NOT NULL OR Maker <> ' '");
            DataRow[] dtrowSuuryo = suuryo_data.dtSuuryo.Select("MakerSuuryo IS NOT NULL OR MakerSuuryo <> ' '");

            if (dtrowMaker.Count() > 0)
            {
                DataTable dtMaker = makerD_data.dtKamoKu.Select("ItemName IS NOT NULL OR ItemName <> ' '").CopyToDataTable();
                makerD_data.KamokuXML = DataTableToXml(dtMaker);
            }
            if (dtrowNouki.Count() > 0)
            {
                DataTable dtNouki = nouki_data.dtNouki.Select("Maker IS NOT NULL OR Maker <> ' '").CopyToDataTable();
                nouki_data.NoukiXML = DataTableToXml(dtNouki);
            }

            if (dtrowSuuryo.Count() > 0)
            {
                DataTable dtSuuryo = suuryo_data.dtSuuryo.Select("MakerSuuryo IS NOT NULL OR MakerSuuryo <> ' '").CopyToDataTable();
                suuryo_data.SuuryoXML = DataTableToXml(dtSuuryo);
            }

            if (hdl.M_MakerZaiko_H_Update(makerH_data))
            {
                ddl.Transaction = hdl.Transaction;
                if (ddl.M_MakerZaiko_D_Insert(makerD_data))
                {
                    ndl.Transaction = hdl.Transaction;
                    if (ndl.M_NoukiHenkan_Insert(nouki_data))
                    {
                        sydl.Transaction = hdl.Transaction;
                        if (sydl.SuuryoHenKan_Insert(suuryo_data))
                        {
                            LogDL.Transaction = hdl.Transaction;
                            if (LogDL.L_Log_Insert(l_log))
                            {
                                hdl.CommitTransaction();
                                return(true);
                            }
                        }
                    }
                }
            }

            return(false);
        }
コード例 #3
0
 public bool T_Zaiko_INSERT_UPDATE(T_Zaiko_Entity tze, L_Log_Entity lle)
 {
     if (tzdl.T_Zaiko_INSERT_UPDATE(tze))
     {
         return(lldl.L_Log_Insert(lle));
     }
     return(false);
 }
コード例 #4
0
 public bool M_MultiPorpose_Num1_Update(M_MultiPorpose_Entity mme, L_Log_Entity lle)
 {
     mmdl.StartTransaction();
     if (mmdl.M_MultiPorpose_Num1_Update(mme))
     {
         lldl.Transaction = mmdl.Transaction;
         if (lldl.L_Log_Insert(lle))
         {
             mmdl.CommitTransaction();
             return(true);
         }
     }
     return(false);
 }
コード例 #5
0
        public Youshi(DataTable dt, params string[] loginfo)
        {
            InitializeComponent();
            lle = new L_Log_Entity();
            lst = loginfo;
            tdl = new TempoRegiFurikomiYoushi_DL();
            HideAllLine();
            bdl      = new Base_DL();
            dtreport = dt;
            L_Log_DL ldl = new L_Log_DL();

            ldl.L_Log_Insert(lst);
            // AllEvent_PrintLog();
        }
コード例 #6
0
        public bool PSKS0120S_Update(M_Zaiko_Kanri_Entity zaikokanri, L_Log_Entity lle)
        {
            zaikokanri.UpdateDateTime = lle.OperateDate = System.DateTime.Now.ToString();
            zaikokanridl.StartTransaction();
            logdl.Transaction = zaikokanridl.Transaction;

            if (zaikokanridl.PSKS0120S_Update(zaikokanri))
            {
                if (logdl.L_Log_Insert(lle))
                {
                    zaikokanridl.CommitTransaction();
                    return(true);
                }
            }
            return(false);
        }
コード例 #7
0
        public bool M_MakerBrand_Insert_Xml(M_MakerBrand_Entity mmbe, L_Log_Entity lle)
        {
            mmbe.xml = DataTableToXml(mmbe.dt1);

            makerbrandDL.StartTransaction();

            if (makerbrandDL.M_MakerBrand_InsertXML(mmbe))
            {
                LogDL.Transaction = makerbrandDL.Transaction;
                if (LogDL.L_Log_Insert(lle))
                {
                    makerbrandDL.CommitTransaction();
                    return(true);
                }
            }

            return(false);
        }
コード例 #8
0
        /// <summary>
        /// log insert
        /// </summary>
        /// <param name="lle"></param>
        public void L_Log_Insert(L_Log_Entity lle)
        {
            L_Log_DL lldl = new L_Log_DL();

            lldl.L_Log_Insert(lle);
        }