示例#1
0
        public override DataSet ToDataSet()
        {
            //Return a dataset containing values for this object
            AgentDS ds = null;

            try {
                ds = new AgentDS();
                AgentDS.AgentDetailTableRow agent = ds.AgentDetailTable.NewAgentDetailTableRow();
                agent.AgentID            = this._agentid;
                agent.NUMBER             = base._number;
                agent.NAME               = base._name;
                agent.STATUS             = base._status;
                agent.ADDRESS_LINE1      = base._address_line1;
                agent.ADDRESS_LINE2      = base._address_line2;
                agent.CITY               = base._city;
                agent.STATE              = base._state;
                agent.ZIP                = base._zip;
                agent.ZIP4               = base._zip4;
                agent.ContactName        = this._contactname;
                agent.Phone              = this._phone;
                agent.Fax                = this._fax;
                agent.Mnemonic           = this._mnemonic;
                agent.APNumber           = this._apnumber;
                agent.TransmitEBOL       = this._transmitebol;
                agent.DeliveryScanStatus = this._deliveryscanstatus;
                agent.ParentID           = this._parentid;
                agent.LastUpdated        = this._lastupdated;
                agent.UserID             = this._userid;
                ds.AgentDetailTable.AddAgentDetailTableRow(agent);
            }
            catch (Exception) { }
            return(ds);
        }
示例#2
0
        public override DataSet Clone()
        {
            AgentDS cln = ((AgentDS)(base.Clone()));

            cln.InitVars();
            return(cln);
        }