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.

29 lines
779 B

3 years ago
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(';');
}
}
}
}