You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

28 lines
779 B

using System;
using System.Collections.Generic;
using System.Text;
using System.Data;
namespace Stone.DataService.Biz
{
public class Command
{
public string Cmd;
public string[] Pars;
public Command(DataSet dsCommand)
{
if (dsCommand == null || !dsCommand.Tables.Contains("Command") || dsCommand.Tables["Command"].Rows.Count == 0)
throw new Exception("Ö¸Áî¸ñʽ²»ÕýÈ·£¡");
this.Cmd = dsCommand.Tables["Command"].Rows[0]["Cmd"].ToString().ToUpper(); // Ö¸Áî
if (dsCommand.Tables["Command"].Rows[0]["Pars"].ToString().Trim() != null)
{
this.Pars = dsCommand.Tables["Command"].Rows[0]["Pars"].ToString().Trim().Split(';');
}
}
}
}