private void xuiSuperButton2_Click(object sender, EventArgs e)
 {
     Model.WarehouseInfor wInfor = new Model.WarehouseInfor();
     wInfor.Material       = txt_itemsName.Text;
     wInfor.Lot            = txt_Lot.Text;
     wInfor.quantity       = nmr_Quantity.Value;
     wInfor.Unit           = lb_unit.Text;
     wInfor.Warehouse      = "B05";
     wInfor.locationOrigin = txt_location.Text;
     wInfor.ImportDate     = dtpk_ImportDate.Value;
     wInfor.expiryDate     = dtpk_expiryDate.Value;
     Device.Printer.PritingLabel pritingLabel = new Device.Printer.PritingLabel();
     pritingLabel.PrintQRCodeWarehouse(wInfor);
 }
 private void btn_PrintForm2_Click(object sender, EventArgs e)
 {
     try
     {
         WMS.Model.WarehouseInfor warehouseInfor = new WMS.Model.WarehouseInfor();
         warehouseInfor.Material   = txt_partno2.Text.Trim();
         warehouseInfor.Lot        = txt_lot2.Text.Trim();
         warehouseInfor.quantity   = nmr_quantity2.Value;
         warehouseInfor.Unit       = cb_unit2.SelectedItem.ToString();
         warehouseInfor.ImportDate = dtpk_import2.Value;
         warehouseInfor.expiryDate = dtpk_expiry2.Value;
         Device.Printer.PritingLabel pritingLabel = new Device.Printer.PritingLabel();
         pritingLabel.PrintQRCodeWarehouse(warehouseInfor);
     }
     catch (Exception ex)
     {
         SystemLog.Output(SystemLog.MSG_TYPE.Err, "btn_printForm1_Click(object sender, EventArgs e)", ex.Message);
     }
 }