private void PutInventoryprint_Load(object sender, EventArgs e)
 {
     bm  = bb.FindById(id)[0];            //清单
     gm  = gb.ById(bm.Goods_id)[0];       //物品
     wnm = wnb.FindById(bm.Client_id)[0]; //仓库
     cm  = cb.FindId(bm.Client_id)[0];    //客户
     gtm = gtb.FindID(gm.Goods_type_id);  //物品类型
     mm  = mb.FindId(bm.Manager_id)[0];   //管理员
     otm = otb.FindById(bm.Operation_type_id)[0];
     goods_name_text.Text       = gm.Goods_name;
     goods_amount_text.Text     = bm.Goods_amount.ToString();
     goods_code_text.Text       = gm.Goods_code;
     goods_note_text.Text       = gm.Goods_note;
     goods_price_text.Text      = bm.Goods_price.ToString();
     goods_type_text.Text       = gtm.Goods_type;
     goods_volume_text.Text     = gm.Goods_volume;
     goods_wight_text.Text      = gm.Goods_wight;
     warehouse_text.Text        = wnm.Warehouse_name;
     client_text.Text           = cm.Client_name;
     specifications_text.Text   = gm.Specifications;
     type_id_text.Text          = otm.Operation_type;
     expiration_date_text.Text  = bm.Expiration_date;
     manufacture_date_text.Text = bm.Manufacture_date;
     lot_number_text.Text       = bm.Lot_number;
     bill_note_text.Text        = bm.Bill_note;
     operation_name_text.Text   = mm.Manager_name;
 }
Exemplo n.º 2
0
        private void LoadRoomMoney()
        {
            billDTO = billBll.FindById(billId);
            string[] row1  = { "Tiền phòng", billDTO.RoomMoney + " (VNĐ)" };
            string[] row2  = { "Tiền điện", billDTO.ElectricMoney + " (VNĐ)" };
            string[] row3  = { "Tiền nước", billDTO.WaterMoney + " (VNĐ)" };
            string[] row4  = { "Tiền mạng", billDTO.NetworkMoney + " (VNĐ)" };
            string[] row5  = { "Tiền khác", billDTO.OtherMoney + " (VNĐ)" };
            string[] row6  = { "Số điện cuối tháng", billDTO.LastElectricNumber + " (Số)" };
            string[] row7  = { "Số điện", billDTO.ElectricNumber + " (Số)" };
            string[] row8  = { "Số nước cuối tháng", billDTO.LastWaterNumber + " (Số)" };
            string[] row9  = { "Số nước", billDTO.WaterNumber + " (Số)" };
            string[] row10 = { "Tổng tiền", billDTO.TotalMoney + " (VNĐ)" };
            lvRoomMoney.Items.Add(new ListViewItem(row1));
            lvRoomMoney.Items.Add(new ListViewItem(row2));
            lvRoomMoney.Items.Add(new ListViewItem(row3));
            lvRoomMoney.Items.Add(new ListViewItem(row4));
            lvRoomMoney.Items.Add(new ListViewItem(row5));
            lvRoomMoney.Items.Add(new ListViewItem(row6));
            lvRoomMoney.Items.Add(new ListViewItem(row7));
            lvRoomMoney.Items.Add(new ListViewItem(row8));
            lvRoomMoney.Items.Add(new ListViewItem(row9));
            lvRoomMoney.Items.Add(new ListViewItem(row10));
            chkStatus.Checked = billDTO.Status;
            if (billDTO.Status)
            {
                chkStatus.Text    = "Đã đóng tiền nhà";
                chkStatus.Enabled = false;
            }
            else
            {
                chkStatus.Text = "Chưa đóng tiền nhà";
            }
            lbCreateDate.Text = billDTO.CreatedDate.ToString();
            lbCreateBy.Text   = billDTO.ModifiedBy;
            lbMember.Text     = billDTO.MemberName;
            RoomDTO roomDTO = roomBLL.findOne(billDTO.RoomId);

            lbRoomName.Text = roomDTO.RoomName;
        }