Esempio n. 1
0
        public Boolean SaveDataToStp(String strMode, TFactoryMs facVo)
        {
            Boolean         rtnValue = true;
            LoginUserInfoVo uservo   = (LoginUserInfoVo)SessionUtils.GetSession(SessionUtils.COMMON_LOGIN_USER_INFO);

            TFcConditionStp facStp = new TFcConditionStp();

            PropertiesCopier.CopyProperties(facVo, facStp);
            facStp.Id.IJournalNo = 10001;
            facStp.Id.ICompanyCd = facVo.ICompanyCd;
            facStp.IPrcsCls      = CommonUtil.GET_I_PRCS_CLS(strMode);
            facStp.IUserId       = uservo.Userid;
            facStp.IPrcsDate     = DateTime.Now;
            facStp.IPrcsTime     = DateTime.Now.ToShortTimeString();
            facStp.IUpdCls       = "0";

            facStp.IConditionCd = "000001";
            //facStp.IDlCurrCd = card.C4_DL_CURR_CD;//取引通貨
            facStp.IDelWhInCd         = "";
            facStp.IDelWhOutCd        = "";
            facStp.IRjtWhCd           = "";
            facStp.INonAllocLocation  = "";
            facStp.IOsWhCd            = "";
            facStp.IInspectonLocation = "";
            facStp.IPlanCycCls        = CommonUtil.NullToSpace(facStp.IPlanCycCls);
            facStp.IWkTime            = CommonUtil.NullToZero(facStp.IWkTime);
            facStp.IPoCreateCls       = CommonUtil.NullToSpace(facStp.IPoCreateCls);
            facStp.ISalesCls          = CommonUtil.NullToSpace(facStp.ISalesCls);
            facStp.IPoSlcCls          = CommonUtil.NullToSpace(facStp.IPoSlcCls);
            facStp.IMrpCls            = CommonUtil.NullToSpace(facStp.IMrpCls);
            facStp.ILinkFlg           = CommonUtil.NullToSpace(facStp.ILinkFlg);
            facStp.IShipInvCls        = CommonUtil.NullToSpace(facStp.IShipInvCls);
            facStp.IAcpInvCls         = CommonUtil.NullToSpace(facStp.IAcpInvCls);
            facStp.IAmtRecalcCls      = CommonUtil.NullToSpace(facStp.IAmtRecalcCls);
            facStp.IReserve1          = null;
            facStp.IReserve2          = null;
            facStp.IReserve3          = null;
            facStp.ISys1Cls           = " ";
            facStp.ISys2Cls           = " ";
            facStp.ISys3Cls           = " ";
            facStp.IUsr1Cls           = " ";
            facStp.IUsr2Cls           = " ";
            facStp.IUsr3Cls           = " ";
            facStp.IInqItem           = null;
            //facStp.IObjectId = card.C4_OBJECT_ID;//オブジェクトID???
            //facStp.IEntryDate = ServerFunction.GetDateTime();//登録日
            //facStp.IUpdDate = ServerFunction.GetDateTime();//更新日
            facStp.IEntryDate = DateTime.Now;
            facStp.IUpdDate   = DateTime.Now;
            //facStp.IPgId = PE002201PgInfo._PROGRAM_ID; ;//プログラムID
            //facStp.IUpdTimestamp = wk_upd_timestamp;//更新タイムスタンプ

            ITFcConditionStpDao td = ComponentLocator.Instance().Resolve <ITFcConditionStpDao>();

            rtnValue = td.Insert(facStp);
            rtnValue = true;

            return(rtnValue);
        }
Esempio n. 2
0
        public CompanyConditionVo GetCompanyCondition(string companyCd)
        {
            ITCompanyConditionMsDao dao = ComponentLocator.Instance().Resolve <ITCompanyConditionMsDao>();
            TCompanyConditionMs     companyconditionms = dao.getCompanyCondition(companyCd);

            if (companyconditionms == null)
            {
                throw new ApplicationException(MessageUtils.GetMessage("E0001"));
            }
            else
            {
                CompanyConditionVo companyconditonvo = new CompanyConditionVo();
                PropertiesCopier.CopyProperties(companyconditionms, companyconditonvo);
                return(companyconditonvo);
            }
        }
Esempio n. 3
0
        public FactoryVo GetFactoryByCd(string FacCd)
        {
            ITFactoryMsDao dao       = ComponentLocator.Instance().Resolve <ITFactoryMsDao>();
            TFactoryMs     factoryms = dao.getFactoryByCd(FacCd);

            if (factoryms == null)
            {
                throw new ApplicationException(MessageUtils.GetMessage("E0001"));
            }
            else
            {
                FactoryVo factoryvo = new FactoryVo();
                PropertiesCopier.CopyProperties(factoryms, factoryvo);
                return(factoryvo);
            }
        }
Esempio n. 4
0
        public TermVo GetTermInfo(string userid)
        {
            ITTermMsDao dao = ComponentLocator.Instance().Resolve <ITTermMsDao>();

            TTermMs termms = dao.getTermbyUserId(userid);

            if (termms == null)
            {
                return(null);
            }
            else
            {
                TermVo termvo = new TermVo();

                PropertiesCopier.CopyProperties(termms, termvo);
                return(termvo);
            }
        }
Esempio n. 5
0
        public PersonVo GetPersonByUserId(string userId)
        {
            ITPersonMsDao dao      = ComponentLocator.Instance().Resolve <ITPersonMsDao>();
            TPersonMs     personms = dao.getPersonByUserId(userId);

            if (personms == null)
            {
                throw new ApplicationException(MessageUtils.GetMessage("E0001"));
            }
            else
            {
                PersonVo personvo = new PersonVo();
                PropertiesCopier.CopyProperties(personms, personvo);
                personvo.ICompanyCd = personms.Id.ICompanyCd;
                personvo.IPersonCd  = personms.Id.IPersonCd;

                return(personvo);
            }
        }