//点击显示店铺详情 private void Button_Click(object sender, RoutedEventArgs e) { Store store = dgl.GetStoreInfo("1S3F3W"); T_storeid.Text = store.id; T_storename.Text = store.name; T_storeaddr.Text = store.loc; T_rent.Text = store.rent.ToString(); T_pass.Text = store.pa; T_money.Text = store.turnover.ToString(); T_master.Text = store.master; }
/** * 4 * 获取某一店铺信息 * 参数:店铺id * 返回值:Store对象 */ public void getStoreInfo() { Store store = dgl.GetStoreInfo("1S3F3W"); Console.Out.WriteLine("店铺id:" + store.id); Console.Out.WriteLine("店铺name:" + store.name); Console.Out.WriteLine("店铺loc:" + store.loc); Console.Out.WriteLine("店铺租金:" + store.rent); Console.Out.WriteLine("店铺店主卡号:" + store.master); Console.Out.WriteLine("店铺是否出租:" + store.isLease); Console.Out.WriteLine("店铺打卡机密码:" + store.pa); Console.Out.WriteLine("店铺本周营业额:" + store.turnover); }