Exemplo n.º 1
0
        private void Main_Load(object sender, EventArgs e)
        {
            //this.Hide();

            try
            {
                DSInfo.ReadXml("info.xml");
            }
            catch (FileNotFoundException)
            {
                StreamWriter sw = File.CreateText("info.xml");
                sw.WriteLine("<?xml version=\"1.0\" standalone=\"yes\"?>");
                sw.WriteLine("<info>");
                sw.WriteLine("  <ae>");
                sw.WriteLine("      <ip>10.0.1.1</ip>");
                sw.WriteLine("      <volume>-30</volume>");
                sw.WriteLine("  </ae>");
                sw.WriteLine("</info>\n");
                sw.Close();

                DSInfo.ReadXml("info.xml");
            }
            IPTextBox.Text  = DSInfo.Tables[0].Rows[0].ItemArray[0].ToString();
            VolumeBar.Value = int.Parse(DSInfo.Tables[0].Rows[0].ItemArray[1].ToString());

            notifyIcon.Text = "";

            contextMenu.Items[0].Visible = true;
            contextMenu.Items[1].Visible = false;
            contextMenu.Items[3].Enabled = true;
            VolumeGB.Enabled             = false;
            ConnectionGB.Enabled         = true;
            StartButton.Enabled          = true;
            StopButton.Enabled           = false;
        }
Exemplo n.º 2
0
        public void DSShipSinked(int dsID, string failReason)
        {
            DSInfo dsinfo = this.DSStorage.DSMap.TryGetValue(dsID);

            if (dsinfo != null)
            {
                DSShip dsship = dsinfo.GetDSShip();
                if (dsship != null)
                {
                    DSLog.AddLog(dsinfo.DSID, dsinfo.GetDSShip().DSWaitingQueue.QuestID, dsinfo.GetDSShip().PartyID, -1, "DSShipSinked", failReason);
                    foreach (KeyValuePair <long, DSPlayer> keyValuePair in dsship.Players)
                    {
                        this.DSPlayerDict.Remove(keyValuePair.Key);
                        keyValuePair.Value.SendMessage <DSPlayerStatusMessage>(new DSPlayerStatusMessage("", DSPlayerStatus.Unregistered, failReason, keyValuePair.Value.IsGiantRaid));
                    }
                    if (failReason != null)
                    {
                        Log <DSWaitingSystem> .Logger.ErrorFormat("DS Ship Sinked!!! : {0}", failReason);
                    }
                    dsship.DSWaitingQueue.SinkShip(dsship);
                    if (ServiceCore.FeatureMatrix.IsEnable("DSDynamicLoad"))
                    {
                        return;
                    }
                    this.ProcessAll();
                }
            }
        }
Exemplo n.º 3
0
        public void DSShipLaunched(int dsID, long partyID)
        {
            DSInfo dsinfo = this.DSStorage.DSMap.TryGetValue(dsID);

            DSLog.AddLog(dsinfo.DSID, dsinfo.GetDSShip().DSWaitingQueue.QuestID, partyID, -1, "DSShipLaunched", "");
            dsinfo.GetDSShip().Launched(partyID);
        }
Exemplo n.º 4
0
        public void LaunchShip(int serviceID, int dsid, string questID, long microPlayID, long partyID, long frontendID, bool isGiantRaid, bool isAdultMode, Action <bool> onComplete)
        {
            DSInfo dsinfo = this.Parent.DSStorage.DSMap.TryGetValue(dsid);

            if (dsinfo != null)
            {
                dsinfo.GetDSShip().Launched((long)(10000 + dsid));
            }
        }
Exemplo n.º 5
0
 public static void SetDSShip(this DSInfo info, DSShip dsShip)
 {
     if (dsShip == null)
     {
         DSService.Instance.DSWaitingSystem.DSStorage.DSShipMap.Remove(info.DSID);
         return;
     }
     DSService.Instance.DSWaitingSystem.DSStorage.DSShipMap.Add(info.DSID, dsShip);
 }
Exemplo n.º 6
0
        public bool Step(ref LinkedListNode <DSWaitingParty> from)
        {
            if (this.WaitingParties.Count == 0 || from == null)
            {
                return(false);
            }
            bool flag = true;

            foreach (DSShip dsship in this.Ships)
            {
                if (dsship.HasEmptySlot)
                {
                    flag = false;
                    break;
                }
            }
            if (flag)
            {
                DSInfo waitingDS = this.Parent.DSStorage.GetWaitingDS(this.DSType);
                if (waitingDS == null)
                {
                    if (FeatureMatrix.IsEnable("DSDynamicLoad"))
                    {
                        DSService.Instance.DSEntityMakerSystem.Enqueue(this.ID, this.DSType);
                    }
                    return(false);
                }
                DSShip dsship2 = new DSShip(this, waitingDS);
                dsship2.Node = this.Ships.AddLast(dsship2);
            }
            do
            {
                DSWaitingParty value = from.Value;
                from = from.Next;
                foreach (DSShip dsship3 in this.Ships)
                {
                    if (dsship3.HasEmptySlot && dsship3.TryEnterShip(value))
                    {
                        value.Clear();
                        this.WaitingParties.Remove(value);
                        return(true);
                    }
                }
            }while (from != null);
            DSInfo waitingDS2 = this.Parent.DSStorage.GetWaitingDS(this.DSType);

            if (waitingDS2 == null)
            {
                return(false);
            }
            DSShip dsship4 = new DSShip(this, waitingDS2);

            dsship4.Node = this.Ships.AddLast(dsship4);
            from         = this.WaitingParties.First;
            return(true);
        }
Exemplo n.º 7
0
        private void ExitApplication()
        {
            object[] data = DSInfo.Tables[0].Rows[0].ItemArray;
            data[0] = IPTextBox.Text;
            data[1] = VolumeBar.Value.ToString();
            DSInfo.Tables[0].Rows[0].ItemArray = data;
            DSInfo.WriteXml("info.xml");

            StopPlaying();
            notifyIcon.Visible = false;
            Application.Exit();
        }
Exemplo n.º 8
0
        private void ExitApplication()
        {
            object[] data = DSInfo.Tables[0].Rows[0].ItemArray;
            data[0] = IPTextBox.Text;
            data[1] = VolumeBar.Value.ToString();
            DSInfo.Tables[0].Rows[0].ItemArray = data;
            DSInfo.WriteXml(Environment.GetEnvironmentVariable("appdata", EnvironmentVariableTarget.Process) + @"\axStream\info.xml");

            StopPlaying();
            notifyIcon.Visible = false;
            Application.Exit();
        }
Exemplo n.º 9
0
 public DSShip(DSWaitingQueue queue, DSInfo ds)
 {
     this.DSWaitingQueue = queue;
     this.Players        = new Dictionary <long, DSPlayer>();
     this.ShipState      = DSShipState.Initial;
     this.GameState      = DSGameState.Initial;
     this.DSInfo         = ds;
     ds.SetDSShip(this);
     this.IsEnterable = DSShip_EnterFunc.GetEnterFunc(queue.QuestID);
     this.StartTime   = null;
     this.IsAdultMode = false;
 }
Exemplo n.º 10
0
        public void DSShipUpdated(int dsID, DSGameState state)
        {
            DSInfo dsinfo = this.DSStorage.DSMap.TryGetValue(dsID);

            if (dsinfo != null && dsinfo.GetDSShip() != null)
            {
                if (state == DSGameState.GameStarted)
                {
                    dsinfo.GetDSShip().StartTime = new DateTime?(DateTime.Now);
                }
                DSLog.AddLog(dsinfo.DSID, dsinfo.GetDSShip().DSWaitingQueue.QuestID, dsinfo.GetDSShip().PartyID, -1, "DSShipUpdated", state.ToString());
                dsinfo.GetDSShip().GameState = state;
            }
        }
Exemplo n.º 11
0
        private int RegisterDSEntity(int serviceID, int start, int count, DSType dsType)
        {
            foreach (int num in Enumerable.Range(start, count))
            {
                DSInfo value = new DSInfo(num, serviceID, dsType);
                if (dsType != DSType.Pvp)
                {
                    this.DSMap.Add(num, value);
                }
                else
                {
                    this.PvpDSMap.Add(num, value);
                }
            }
            Log <DSWaitingSystem> .Logger.WarnFormat("Register DSInfo : {0} ~ {1}", start, start + count - 1);

            return(start + count);
        }
Exemplo n.º 12
0
        /// <summary>
        /// Attempt to load the dataset from another location.
        /// </summary>
        /// <param name="dsinfo"></param>
        /// <param name="status"></param>
        /// <param name="filter"></param>
        /// <returns></returns>
        private static Uri[] LoadDatasetFromOtherSource(WindowsDataset dsLocalLocation,
            DSInfo dsinfo,
            Action<string> status,
            Func<string[], string[]> filter, 
            string locName, 
            IFetchToRemoteLinuxDir fetcher,
            string linuxLocation,
            Func<bool> failNow,
            int timeout)
        {
            // First, attempt to find the Uri's from somewhere that we can see and easily copy.
            try
            {
                var files = GRIDDatasetLocator.FetchDatasetUris(dsinfo.Name, status, filter, locationFilter: locname => locname != locName, failNow: failNow);
                var dsinfoRemote = GRIDDatasetLocator.FetchDSInfo(dsinfo.Name, filter, locationFilter: locname => locname != locName);
                if (files != null)
                {
                    dsLocalLocation.MarkAsPartialDownload(dsinfo.Name);
                    var flookup = new HashSet<string>(dsLocalLocation.FindDSFiles(dsinfo.Name, returnWhatWeHave: true).Select(u => Path.GetFileName(u.LocalPath)));
                    foreach (var fremote in files)
                    {
                        if (!flookup.Contains(Path.GetFileName(fremote.LocalPath)))
                        {
                            var f = new FileInfo(fremote.LocalPath);
                            if (status != null)
                            {
                                status(string.Format("Copying file {0}.", f.Name));
                            }
                            f.CopyTo(Path.Combine(dsLocalLocation.LocationOfDataset(dsinfo.Name).FullName, f.Name));
                        }
                    }

                    // And update the meta data.
                    dsLocalLocation.SaveListOfDSFiles(dsinfo.Name, dsinfoRemote.ListOfFiles());
                    dsLocalLocation.RemovePartialDownloadMark(dsinfo.Name);

                    // The files are all local. So we are going to have to see if there is a backup to do the download for us.
                    return dsLocalLocation.FindDSFiles(dsinfo.Name, filter);
                }
            }
            catch (InvalidOperationException)
            {
                // No worries - we weren't able to run one of the data finders.
                // We go onto the next step.
            }

            // OK, nothing could get them. We need to fall back on our secondary copy method. So copy everything to a local Linux directory, and then
            // copy from there down to here.
            dsLocalLocation.MarkAsPartialDownload(dsinfo.Name);
            var allfiles = fetcher.GetListOfFiles(dsinfo.Name, status, failNow: failNow);
            var linuxLocationPerDS = $"{linuxLocation}/{dsinfo.Name}";
            fetcher.Fetch(dsinfo.Name, linuxLocationPerDS, status, filter, failNow: failNow, timeout: timeout);

            // Next, copy the files from there down to our location.
            dsLocalLocation.SaveListOfDSFiles(dsinfo.Name, allfiles);
            fetcher.CopyFromRemote(linuxLocationPerDS, dsLocalLocation.LocationOfDataset(dsinfo.Name), status, removeDirectoryWhenDone: true);
            dsLocalLocation.RemovePartialDownloadMark(dsinfo.Name);

            return dsLocalLocation.FindDSFiles(dsinfo.Name, filter);
        }
Exemplo n.º 13
0
 public static DSShip GetDSShip(this DSInfo info)
 {
     return(DSService.Instance.DSWaitingSystem.DSStorage.DSShipMap.TryGetValue(info.DSID));
 }
Exemplo n.º 14
0
        private void Main_Load(object sender, EventArgs e)
        {
            //this.Hide();
            bool donexml  = false;
            bool firstrun = false;

            while (!donexml)
            {
                try
                {
                    DSInfo.ReadXml(Environment.GetEnvironmentVariable("appdata", EnvironmentVariableTarget.Process) + @"\axStream\info.xml");
                    donexml = true;
                }
                catch (DirectoryNotFoundException)
                {
                    Directory.CreateDirectory(Environment.GetEnvironmentVariable("appdata", EnvironmentVariableTarget.Process) + @"\axStream");
                }
                catch (FileNotFoundException)
                {
                    StreamWriter sw = File.CreateText(Environment.GetEnvironmentVariable("appdata", EnvironmentVariableTarget.Process) + @"\axStream\\info.xml");
                    sw.WriteLine("<?xml version=\"r1.0\" standalone=\"yes\"?>");
                    sw.WriteLine("<info>");
                    sw.WriteLine("  <ae>");
                    sw.WriteLine("      <ip>10.0.1.1</ip>");
                    sw.WriteLine("      <volume>-30</volume>");
                    sw.WriteLine("      <systemaudiorouter>false</systemaudiorouter>");
                    sw.WriteLine("  </ae>");
                    sw.WriteLine("</info>\n");
                    sw.Close();

                    DSInfo.ReadXml(Environment.GetEnvironmentVariable("appdata", EnvironmentVariableTarget.Process) + @"\axStream\info.xml");
                    donexml  = true;
                    firstrun = true;
                }
            }
            IPTextBox.Text            = DSInfo.Tables[0].Rows[0].ItemArray[0].ToString();
            VolumeBar.Value           = int.Parse(DSInfo.Tables[0].Rows[0].ItemArray[1].ToString());
            systemaudiorouter.Checked = bool.Parse(DSInfo.Tables[0].Rows[0].ItemArray[2].ToString());

            //check if a device that can route system audio is present (check playback and recording devices for the follow (and require at least one in playback and one in recording: "what u hear", "wave out mix", "CABLE input" "stereo mix", "what u hear", "wave out mix", "CABLE input", "CABLE output")
            int i = 0;

            foreach (string InputDeviceName in WaveLib.WaveNative.EnumInputDevices())
            {
                inputDeviceList.Items.Add(InputDeviceName);
                if (InputDeviceName.ToLower().Contains("waveout mix") || InputDeviceName.ToLower().Contains("what u hear") || InputDeviceName.ToLower().Contains("stereo mix") || InputDeviceName.ToLower().Contains("cable output"))
                {
                    i++;
                }
            }
            if (inputDeviceList.Items.Count != 0)
            {
                inputDeviceList.SelectedIndex = 0;
            }

            int q = 0;

            foreach (string OutputDeviceName in WaveLib.WaveNative.EnumOutputDevices())
            {
                if (OutputDeviceName.ToLower().Contains("waveout mix") || OutputDeviceName.ToLower().Contains("what u hear") || OutputDeviceName.ToLower().Contains("stereo mix") || OutputDeviceName.ToLower().Contains("cable input"))
                {
                    q++;
                }
            }

            bool systemaudiorouterpresent = false;

            if (i > 0 && q > 0)
            {
                systemaudiorouterpresent = true;
            }


            //if so, verify vbaudio.checked.
            //if it is, then enable the output to VB audio cable, then default to the VB audio cable input...
            if (systemaudiorouter.Checked)
            {
                //Find the member of the inputDeviceList that matches the global device
                //inputDeviceList.SelectedIndex =;
            }

            if (firstrun && !systemaudiorouterpresent)
            {
                MessageBox.Show("It doesn't appear that you have a sound device that can route all system audio over Airplay.  Would you like to visit a web page for assistance in finding a free-as-in-beer one (VB-Audio's Virtual Cable)?", "System audio routing unavailable", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
            }


            notifyIcon.Text = "";

            contextMenu.Items[0].Visible = true;
            contextMenu.Items[1].Visible = false;
            contextMenu.Items[3].Enabled = true;
            VolumeGB.Enabled             = false;
            ConnectionGB.Enabled         = true;
            StartButton.Enabled          = true;
            StopButton.Enabled           = false;
        }
Exemplo n.º 15
0
 public UpdatePvpDSInfo(int dsID, DSInfo dsInfo)
 {
     this.DSInfo = dsInfo;
     this.DSID   = dsID;
 }
Exemplo n.º 16
0
        public int Update(DSInfo oParam)
        {
            string     sql = @"UPDATE DS_Master SET 
                            DLSysNo=@DLSysNo, FreightUserSysNo=@FreightUserSysNo, 
                            ARAmt=@ARAmt, IncomeAmt=@IncomeAmt, 
                            CreateUserSysNo=@CreateUserSysNo, CreateTime=@CreateTime, 
                            SettlementUserSysNo=@SettlementUserSysNo, SettlementTime=@SettlementTime, 
                            VoucherUserSysNo=@VoucherUserSysNo, VoucherID=@VoucherID, 
                            VoucherTime=@VoucherTime, AbandonUserSysNo=@AbandonUserSysNo, 
                            AbandonTime=@AbandonTime, Status=@Status, 
                            AuditUserSysNo=@AuditUserSysNo, AuditTime=@AuditTime, 
                            PosFee=@PosFee, Cheque=@Cheque, 
                            Cash=@Cash, PosGoods=@PosGoods, 
                            Remittance=@Remittance, RemittanceDate=@RemittanceDate, 
                            Memo=@Memo, RemittanceType=@RemittanceType, 
                            IsReceiveVoucher=@IsReceiveVoucher, PosGoodsCash=@PosGoodsCash, 
                            AccAuditUserSysNo=@AccAuditUserSysNo, AccAuditTime=@AccAuditTime
                            WHERE SysNo=@SysNo";
            SqlCommand cmd = new SqlCommand(sql);

            SqlParameter paramSysNo               = new SqlParameter("@SysNo", SqlDbType.Int, 4);
            SqlParameter paramDLSysNo             = new SqlParameter("@DLSysNo", SqlDbType.Int, 4);
            SqlParameter paramFreightUserSysNo    = new SqlParameter("@FreightUserSysNo", SqlDbType.Int, 4);
            SqlParameter paramARAmt               = new SqlParameter("@ARAmt", SqlDbType.Decimal, 9);
            SqlParameter paramIncomeAmt           = new SqlParameter("@IncomeAmt", SqlDbType.Decimal, 9);
            SqlParameter paramCreateUserSysNo     = new SqlParameter("@CreateUserSysNo", SqlDbType.Int, 4);
            SqlParameter paramCreateTime          = new SqlParameter("@CreateTime", SqlDbType.DateTime);
            SqlParameter paramSettlementUserSysNo = new SqlParameter("@SettlementUserSysNo", SqlDbType.Int, 4);
            SqlParameter paramSettlementTime      = new SqlParameter("@SettlementTime", SqlDbType.DateTime);
            SqlParameter paramVoucherUserSysNo    = new SqlParameter("@VoucherUserSysNo", SqlDbType.Int, 4);
            SqlParameter paramVoucherID           = new SqlParameter("@VoucherID", SqlDbType.NVarChar, 50);
            SqlParameter paramVoucherTime         = new SqlParameter("@VoucherTime", SqlDbType.DateTime);
            SqlParameter paramAbandonUserSysNo    = new SqlParameter("@AbandonUserSysNo", SqlDbType.Int, 4);
            SqlParameter paramAbandonTime         = new SqlParameter("@AbandonTime", SqlDbType.DateTime);
            SqlParameter paramStatus              = new SqlParameter("@Status", SqlDbType.Int, 4);
            SqlParameter paramAuditUserSysNo      = new SqlParameter("@AuditUserSysNo", SqlDbType.Int, 4);
            SqlParameter paramAuditTime           = new SqlParameter("@AuditTime", SqlDbType.DateTime);
            SqlParameter paramPosFee              = new SqlParameter("@PosFee", SqlDbType.Decimal, 9);
            SqlParameter paramCheque              = new SqlParameter("@Cheque", SqlDbType.Decimal, 9);
            SqlParameter paramCash              = new SqlParameter("@Cash", SqlDbType.Decimal, 9);
            SqlParameter paramPosGoods          = new SqlParameter("@PosGoods", SqlDbType.Decimal, 9);
            SqlParameter paramRemittance        = new SqlParameter("@Remittance", SqlDbType.Decimal, 9);
            SqlParameter paramRemittanceDate    = new SqlParameter("@RemittanceDate", SqlDbType.DateTime);
            SqlParameter paramMemo              = new SqlParameter("@Memo", SqlDbType.NVarChar, 500);
            SqlParameter paramRemittanceType    = new SqlParameter("@RemittanceType", SqlDbType.Int, 4);
            SqlParameter paramIsReceiveVoucher  = new SqlParameter("@IsReceiveVoucher", SqlDbType.Int, 4);
            SqlParameter paramPosGoodsCash      = new SqlParameter("@PosGoodsCash", SqlDbType.Decimal, 9);
            SqlParameter paramAccAuditUserSysNo = new SqlParameter("@AccAuditUserSysNo", SqlDbType.Int, 4);
            SqlParameter paramAccAuditTime      = new SqlParameter("@AccAuditTime", SqlDbType.DateTime);

            if (oParam.SysNo != AppConst.IntNull)
            {
                paramSysNo.Value = oParam.SysNo;
            }
            else
            {
                paramSysNo.Value = System.DBNull.Value;
            }
            if (oParam.DLSysNo != AppConst.IntNull)
            {
                paramDLSysNo.Value = oParam.DLSysNo;
            }
            else
            {
                paramDLSysNo.Value = System.DBNull.Value;
            }
            if (oParam.FreightUserSysNo != AppConst.IntNull)
            {
                paramFreightUserSysNo.Value = oParam.FreightUserSysNo;
            }
            else
            {
                paramFreightUserSysNo.Value = System.DBNull.Value;
            }
            if (oParam.ARAmt != AppConst.DecimalNull)
            {
                paramARAmt.Value = oParam.ARAmt;
            }
            else
            {
                paramARAmt.Value = System.DBNull.Value;
            }
            if (oParam.IncomeAmt != AppConst.DecimalNull)
            {
                paramIncomeAmt.Value = oParam.IncomeAmt;
            }
            else
            {
                paramIncomeAmt.Value = System.DBNull.Value;
            }
            if (oParam.CreateUserSysNo != AppConst.IntNull)
            {
                paramCreateUserSysNo.Value = oParam.CreateUserSysNo;
            }
            else
            {
                paramCreateUserSysNo.Value = System.DBNull.Value;
            }
            if (oParam.CreateTime != AppConst.DateTimeNull)
            {
                paramCreateTime.Value = oParam.CreateTime;
            }
            else
            {
                paramCreateTime.Value = System.DBNull.Value;
            }
            if (oParam.SettlementUserSysNo != AppConst.IntNull)
            {
                paramSettlementUserSysNo.Value = oParam.SettlementUserSysNo;
            }
            else
            {
                paramSettlementUserSysNo.Value = System.DBNull.Value;
            }
            if (oParam.SettlementTime != AppConst.DateTimeNull)
            {
                paramSettlementTime.Value = oParam.SettlementTime;
            }
            else
            {
                paramSettlementTime.Value = System.DBNull.Value;
            }
            if (oParam.VoucherUserSysNo != AppConst.IntNull)
            {
                paramVoucherUserSysNo.Value = oParam.VoucherUserSysNo;
            }
            else
            {
                paramVoucherUserSysNo.Value = System.DBNull.Value;
            }
            if (oParam.VoucherID != AppConst.StringNull)
            {
                paramVoucherID.Value = oParam.VoucherID;
            }
            else
            {
                paramVoucherID.Value = System.DBNull.Value;
            }
            if (oParam.VoucherTime != AppConst.DateTimeNull)
            {
                paramVoucherTime.Value = oParam.VoucherTime;
            }
            else
            {
                paramVoucherTime.Value = System.DBNull.Value;
            }
            if (oParam.AbandonUserSysNo != AppConst.IntNull)
            {
                paramAbandonUserSysNo.Value = oParam.AbandonUserSysNo;
            }
            else
            {
                paramAbandonUserSysNo.Value = System.DBNull.Value;
            }
            if (oParam.AbandonTime != AppConst.DateTimeNull)
            {
                paramAbandonTime.Value = oParam.AbandonTime;
            }
            else
            {
                paramAbandonTime.Value = System.DBNull.Value;
            }
            if (oParam.Status != AppConst.IntNull)
            {
                paramStatus.Value = oParam.Status;
            }
            else
            {
                paramStatus.Value = System.DBNull.Value;
            }
            if (oParam.AuditUserSysNo != AppConst.IntNull)
            {
                paramAuditUserSysNo.Value = oParam.AuditUserSysNo;
            }
            else
            {
                paramAuditUserSysNo.Value = System.DBNull.Value;
            }
            if (oParam.AuditTime != AppConst.DateTimeNull)
            {
                paramAuditTime.Value = oParam.AuditTime;
            }
            else
            {
                paramAuditTime.Value = System.DBNull.Value;
            }
            if (oParam.PosFee != AppConst.DecimalNull)
            {
                paramPosFee.Value = oParam.PosFee;
            }
            else
            {
                paramPosFee.Value = System.DBNull.Value;
            }
            if (oParam.Cheque != AppConst.DecimalNull)
            {
                paramCheque.Value = oParam.Cheque;
            }
            else
            {
                paramCheque.Value = System.DBNull.Value;
            }
            if (oParam.Cash != AppConst.DecimalNull)
            {
                paramCash.Value = oParam.Cash;
            }
            else
            {
                paramCash.Value = System.DBNull.Value;
            }
            if (oParam.PosGoods != AppConst.DecimalNull)
            {
                paramPosGoods.Value = oParam.PosGoods;
            }
            else
            {
                paramPosGoods.Value = System.DBNull.Value;
            }
            if (oParam.Remittance != AppConst.DecimalNull)
            {
                paramRemittance.Value = oParam.Remittance;
            }
            else
            {
                paramRemittance.Value = System.DBNull.Value;
            }
            if (oParam.RemittanceDate != AppConst.DateTimeNull)
            {
                paramRemittanceDate.Value = oParam.RemittanceDate;
            }
            else
            {
                paramRemittanceDate.Value = System.DBNull.Value;
            }
            if (oParam.Memo != AppConst.StringNull)
            {
                paramMemo.Value = oParam.Memo;
            }
            else
            {
                paramMemo.Value = System.DBNull.Value;
            }
            if (oParam.RemittanceType != AppConst.IntNull)
            {
                paramRemittanceType.Value = oParam.RemittanceType;
            }
            else
            {
                paramRemittanceType.Value = System.DBNull.Value;
            }
            if (oParam.IsReceiveVoucher != AppConst.IntNull)
            {
                paramIsReceiveVoucher.Value = oParam.IsReceiveVoucher;
            }
            else
            {
                paramIsReceiveVoucher.Value = System.DBNull.Value;
            }
            if (oParam.PosGoodsCash != AppConst.DecimalNull)
            {
                paramPosGoodsCash.Value = oParam.PosGoodsCash;
            }
            else
            {
                paramPosGoodsCash.Value = System.DBNull.Value;
            }
            if (oParam.AccAuditUserSysNo != AppConst.IntNull)
            {
                paramAccAuditUserSysNo.Value = oParam.AccAuditUserSysNo;
            }
            else
            {
                paramAccAuditUserSysNo.Value = System.DBNull.Value;
            }
            if (oParam.AccAuditTime != AppConst.DateTimeNull)
            {
                paramAccAuditTime.Value = oParam.AccAuditTime;
            }
            else
            {
                paramAccAuditTime.Value = System.DBNull.Value;
            }

            cmd.Parameters.Add(paramSysNo);
            cmd.Parameters.Add(paramDLSysNo);
            cmd.Parameters.Add(paramFreightUserSysNo);
            cmd.Parameters.Add(paramARAmt);
            cmd.Parameters.Add(paramIncomeAmt);
            cmd.Parameters.Add(paramCreateUserSysNo);
            cmd.Parameters.Add(paramCreateTime);
            cmd.Parameters.Add(paramSettlementUserSysNo);
            cmd.Parameters.Add(paramSettlementTime);
            cmd.Parameters.Add(paramVoucherUserSysNo);
            cmd.Parameters.Add(paramVoucherID);
            cmd.Parameters.Add(paramVoucherTime);
            cmd.Parameters.Add(paramAbandonUserSysNo);
            cmd.Parameters.Add(paramAbandonTime);
            cmd.Parameters.Add(paramStatus);
            cmd.Parameters.Add(paramAuditUserSysNo);
            cmd.Parameters.Add(paramAuditTime);
            cmd.Parameters.Add(paramPosFee);
            cmd.Parameters.Add(paramCheque);
            cmd.Parameters.Add(paramCash);
            cmd.Parameters.Add(paramPosGoods);
            cmd.Parameters.Add(paramRemittance);
            cmd.Parameters.Add(paramRemittanceDate);
            cmd.Parameters.Add(paramMemo);
            cmd.Parameters.Add(paramRemittanceType);
            cmd.Parameters.Add(paramIsReceiveVoucher);
            cmd.Parameters.Add(paramPosGoodsCash);
            cmd.Parameters.Add(paramAccAuditUserSysNo);
            cmd.Parameters.Add(paramAccAuditTime);

            return(SqlHelper.ExecuteNonQuery(cmd));
        }
 public Uri[] GetDS(DSInfo info, Action<string> statusUpdate = null, Func<string[], string[]> fileFilter = null, Func<bool> failNow = null, int timeout = 3600)
 {
     return GetDS(info.Name, statusUpdate, fileFilter, failNow, timeout);
 }