Exemplo n.º 1
0
        public bool Delete_BeforeImoprt(T_MakerZaiko_Entity tmze)//取込前データ削除
        {
            M_SiiresakiZaiko_DL     mszdl = new M_SiiresakiZaiko_DL();
            M_SiiresakiZaiko_Entity msze  = new M_SiiresakiZaiko_Entity();
            T_MakerZaiko_DL         tmzdl = new T_MakerZaiko_DL();

            msze.SiiresakiCD = tmze.MakerCD;
            DataTable dt = mszdl.M_SiiresakiZaiko_Select(msze);//確定済の判断

            if (dt.Rows.Count > 0)
            {
                if (dt.Rows[0]["TorikomiFixedFLG"].ToString() == "1")//TorikomiFixedFLG == 1なら(確定済)
                {
                    tmzdl.Transaction = psks0103idl.Transaction;
                    if (tmzdl.T_MakerZaiko_DELETE(tmze))//既存データ削除
                    {
                        tmze.InsertDateTime = DateTime.Now.ToString("yyyy/MM/dd HH:mm:ss");
                        if (!tmzdl.T_MakerZaiko_Insert(tmze))
                        {
                            return(false);
                        }
                    }
                    else
                    {
                        return(false);
                    }
                }
            }
            return(true);
        }
Exemplo n.º 2
0
 public PSKS0103I_BL()
 {
     bdl         = new Base_DL();
     mmpdl       = new M_MultiPorpose_DL();
     tmirdl      = new T_MakerInportRireki_DL();
     psks0103idl = new PSKS0103I_DL();
     tmidl       = new T_MakerInport_DL();
     mmzddl      = new M_MakerZaiko_D_DL();
     mszdl       = new M_SiiresakiZaiko_DL();
 }
        public DataTable M_SiiresakiZaiko_Select(M_SiiresakiZaiko_Entity MSiireiSaki_Data)
        {
            M_SiiresakiZaiko_DL mszdl = new M_SiiresakiZaiko_DL();

            return(mszdl.PSKS0116I_M_SiiresakiZaiko_Select(MSiireiSaki_Data));
        }