예제 #1
0
파일: OPCDA.cs 프로젝트: sanlonezhang/ql
        public void UpdateOPCOfflineTransactionBySysNo(OPCOfflineTransactionInfo info)
        {
            DataCommand command = DataCommandManager.GetDataCommand("SO_Update_OPCOfflineTransaction");

            command.SetParameterValue(info);
            command.ExecuteNonQuery();
        }
예제 #2
0
파일: OPCDA.cs 프로젝트: sanlonezhang/ql
        public OPCOfflineTransactionInfo GetOPCOfflineTransactionBySysNo(int sysNo)
        {
            DataCommand command = DataCommandManager.GetDataCommand("SO_Get_OPCOfflineTransaction");

            command.SetParameterValue("@SysNo", sysNo);
            OPCOfflineTransactionInfo OPCTransactionInfo = command.ExecuteEntity <OPCOfflineTransactionInfo>();

            return(OPCTransactionInfo);
        }
예제 #3
0
파일: OPCDA.cs 프로젝트: sanlonezhang/ql
        public int InsertOPCOfflineTransaction(OPCOfflineTransactionInfo info)
        {
            DataCommand command = DataCommandManager.GetDataCommand("SO_Insert_OPCOfflineTransaction");

            command.SetParameterValue(info);
            command.ExecuteNonQuery();
            int result = command.ExecuteScalar <int>();

            return(result);
        }
예제 #4
0
        private int SaveOPCTransaction(int soSysNo, int stockSysNo, int OPCOfflineMasterID, string companyCode)
        {
            OPCOfflineTransactionInfo info = new OPCOfflineTransactionInfo();

            info.StockSysNo    = stockSysNo;
            info.Status        = OPCTransStatus.Origin;
            info.SOSysNo       = soSysNo;
            info.InUser        = string.Empty;
            info.OperationFlag = string.Empty;
            info.MasterID      = OPCOfflineMasterID;
            info.InDate        = DateTime.Now;
            info.CompanyCode   = companyCode;
            return(OPCDA.InsertOPCOfflineTransaction(info));
        }