/// <summary> /// 绑定数据 /// </summary> public void Bind() { try { AssRestoreOrderOutputDto assRestoreOrderOutput = _autofacConfig.AssetsService.GetRsobyId(RsoId); if (assRestoreOrderOutput != null) { txtHMan.Text = assRestoreOrderOutput.Handleman; txtLocation.Text = assRestoreOrderOutput.LocationName; txtNote.Text = assRestoreOrderOutput.Note; DPickerRs.Value = assRestoreOrderOutput.Restoredate; txtPlace.Text = assRestoreOrderOutput.Place; } DataTable rowsTable = _autofacConfig.AssetsService.GetRowsByRsoid(RsoId); if (rowsTable != null) { ListAss.DataSource = rowsTable; ListAss.DataBind(); } } catch (Exception ex) { Toast(ex.Message); } }
/// <summary> /// 绑定数据 /// </summary> public void Bind() { try { AssCollarOrderOutputDto assCollarOrderOutput = _autofacConfig.AssetsService.GetCobyId(CoId); if (assCollarOrderOutput != null) { txtCOMan.Text = assCollarOrderOutput.Userid; txtHMan.Text = assCollarOrderOutput.Handleman; txtLocation.Text = assCollarOrderOutput.Locationid; txtNote.Text = assCollarOrderOutput.Note; DPickerCO.Value = assCollarOrderOutput.Collardate; if (assCollarOrderOutput.Eptrestoredate != null) { DPickerRs.Value = assCollarOrderOutput.Eptrestoredate.Value; } txtDep.Text = assCollarOrderOutput.Inusedep; txtPlace.Text = assCollarOrderOutput.Place; } DataTable rowsTable = _autofacConfig.AssetsService.GetRowsByCoid(CoId); if (rowsTable != null) { ListAss.DataSource = rowsTable; ListAss.DataBind(); } } catch (Exception ex) { Toast(ex.Message); } }
/// <summary> /// 绑定数据 /// </summary> public void Bind() { try { AssReturnOrderOutputDto assBorrowOrderOutput = _autofacConfig.AssetsService.GetRtobyId(RtoId); if (assBorrowOrderOutput != null) { txtBOMan.Text = assBorrowOrderOutput.Returner; txtHMan.Text = assBorrowOrderOutput.Handleman; txtLocation.Text = assBorrowOrderOutput.Locationid; txtNote.Text = assBorrowOrderOutput.Note; DPickerCO.Value = assBorrowOrderOutput.Returndate; } DataTable rowsTable = _autofacConfig.AssetsService.GetRowsByRtoid(RtoId); if (rowsTable != null) { ListAss.DataSource = rowsTable; ListAss.DataBind(); } } catch (Exception ex) { Toast(ex.Message); } }
/// <summary> /// 绑定数据 /// </summary> public void Bind() { try { OutboundOrderOutputDto outboundOrder = _autofacConfig.ConsumablesService.GetOutboundOrderById(OOId); if (outboundOrder != null) { txtType.Text = outboundOrder.TYPENAME; txtHMan.Text = outboundOrder.HANDLEMANNAME; txtLocation.Text = outboundOrder.LOCATIONNAME; txtNote.Text = outboundOrder.NOTE; DPickerCO.Value = outboundOrder.BUSINESSDATE; txtType.Text = outboundOrder.TYPE == 1 ? "退货" : "领用"; } DataTable rowsTable = _autofacConfig.ConsumablesService.GetOORowListByOOId(OOId); if (rowsTable != null) { ListAss.DataSource = rowsTable; ListAss.DataBind(); } } catch (Exception ex) { Toast(ex.Message); } }
/// <summary> /// 绑定数据 /// </summary> public void Bind() { try { WarehouseReceiptOutputDto warehouseReceipt = _autofacConfig.ConsumablesService.GetWarehouseReceiptById(WRID); if (warehouseReceipt != null) { txtVendor.Text = warehouseReceipt.VENDOR; txtHMan.Text = warehouseReceipt.HANDLEMANNAME; txtLocatin.Text = warehouseReceipt.LOCATIONNAME; txtNote.Text = warehouseReceipt.NOTE; DPickerCO.Value = warehouseReceipt.BUSINESSDATE; } DataTable rowsTable = _autofacConfig.ConsumablesService.GetWRRowListByWRId(WRID); if (rowsTable != null) { ListAss.DataSource = rowsTable; ListAss.DataBind(); } } catch (Exception ex) { Toast(ex.Message); } }
/// <summary> /// 绑定数据 /// </summary> public void Bind() { try { AssBorrowOrderOutputDto assBorrowOrderOutput = _autofacConfig.AssetsService.GetBobyId(BoId); if (assBorrowOrderOutput != null) { txtphone.Text = assBorrowOrderOutput.phone; txtBOMan.Text = assBorrowOrderOutput.bo_name; DPickerCO.Value = (DateTime)assBorrowOrderOutput.give_time; DPickerRs.Value = (DateTime)assBorrowOrderOutput.return_time; txtHMan.Text = assBorrowOrderOutput.principal; txtexpired.Text = assBorrowOrderOutput.expired.ToString(); txtpro.Text = assBorrowOrderOutput.pro_name; txtteam.Text = assBorrowOrderOutput.team_name; txtNote.Text = assBorrowOrderOutput.remark; txtLocation.Text = assBorrowOrderOutput.position; } DataTable rowsTable = _autofacConfig.AssetsService.GetRowsByBoid(BoId); if (rowsTable != null) { for (int i = 0; i < rowsTable.Rows.Count; i++) { AssIdList.Add(rowsTable.Rows[i][0].ToString()); } ListAss.DataSource = rowsTable; ListAss.DataBind(); } } catch (Exception ex) { Toast(ex.Message); } }
// private void BarcodeScanner1_BarcodeScanned(object sender, BarcodeResultArgs e) // { // try // { // if (string.IsNullOrEmpty(btnLocation.Text)) // { // throw new Exception("请先选择区域"); // } // else // { // string barCode = e.Value; // DataTable info = _autofacConfig.SettingService.GetUnUsedAssEx(LocationId, barCode); // if (info.Rows.Count == 0) // { // throw new Exception("未在该区域的闲置物品中找到该物品"); // } // else // { // DataRow row = info.Rows[0]; // AddAss(barCode, row["SN"].ToString(), row["IMAGE"].ToString(), row["NAME"].ToString()); // BindListView(); // } // } // } // catch (Exception ex) // { // Toast(ex.Message); // } // } public void BindListView() { try { ListAss.DataSource = AssTable; ListAss.DataBind(); } catch (Exception ex) { Toast(ex.Message); } }
public void Bind() { try { AssBorrowOrderOutputDto assBorrowOrderOutput = _autofacConfig.AssetsService.GetBobyId(BoId); txtBOMan.Text = assBorrowOrderOutput.Borrower; txtHMan.Text = assBorrowOrderOutput.Brhandleman; txtLocation.Text = assBorrowOrderOutput.Locationid; txtNote.Text = assBorrowOrderOutput.Note; DPickerCO.Value = assBorrowOrderOutput.Borrowdate; DPickerRs.Value = assBorrowOrderOutput.Eptreturndate; DataTable rowsTable = _autofacConfig.AssetsService.GetRowsByBoid(BoId); ListAss.DataSource = rowsTable; ListAss.DataBind(); } catch (Exception ex) { Toast(ex.Message); } }