コード例 #1
0
        public ModifyShipper_product(IDBOperation dbOperation, string shipper_id,string shipperflag, SysShipperQuery_product ship_query)
        {
            InitializeComponent();
            this.dbOperation = dbOperation;
            this.shipperId = shipper_id;
            this._id.Text = shipperId;
            this.ship = ship_query;
            this.shipperFlag = shipperflag;
            DataTable table = dbOperation.GetDbHelper().GetDataSet(string.Format("select shippername,phone,address from t_shipper_product " +
                               "where shipperid = '{0}' and shipperflag = '{1}'", shipperId, shipperFlag)).Tables[0];
            if (table.Rows.Count != 0)
            {
                this._name.Text = table.Rows[0][0].ToString();
                this._phone.Text = table.Rows[0][1].ToString();
                this._address.Text = table.Rows[0][2].ToString();
            }

        }
コード例 #2
0
        public ModifyShipper_product(IDBOperation dbOperation, string shipper_id, string shipperflag, SysShipperQuery_product ship_query)
        {
            InitializeComponent();
            this.dbOperation = dbOperation;
            this.shipperId   = shipper_id;
            this._id.Text    = shipperId;
            this.ship        = ship_query;
            this.shipperFlag = shipperflag;
            DataTable table = dbOperation.GetDbHelper().GetDataSet(string.Format("select shippername,phone,address from t_shipper_product " +
                                                                                 "where shipperid = '{0}' and shipperflag = '{1}'", shipperId, shipperFlag)).Tables[0];

            if (table.Rows.Count != 0)
            {
                this._name.Text    = table.Rows[0][0].ToString();
                this._phone.Text   = table.Rows[0][1].ToString();
                this._address.Text = table.Rows[0][2].ToString();
            }
        }