我想将Inventory Summary Explorer添加到Mobile屏幕。目前,我有“标签”等报告正常工作。我也有“股票项目”工作,但它不会让我像库存摘要资源管理器那样进入位置/批次级别。
有没有办法让Stock Summary Explorer显示在手机屏幕上。
以及通用查询。
答案 0 :(得分:0)
以下是用于在移动设备上显示广告资源摘要屏幕的XML映射:
<?xml version="1.0" encoding="UTF-8"?>
<sm:Screen DisplayName="Inventory Summary" Id="IN401000" Type="FilterListScreen" Icon="system://Display2"
xmlns:sm="http://acumatica.com/mobilesitemap" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<sm:Container Name="Selection">
<sm:Field Name="InventoryID"/>
<sm:Field Name="ExpandByLotSerialNumber"/>
<sm:Field Name="Warehouse"/>
<sm:Field Name="Location"/>
</sm:Container>
<sm:Container Name="InventorySummary" FieldsToShow="6">
<sm:Field Name="InventoryID"/>
<sm:Field Name="Warehouse"/>
<sm:Field Name="Location"/>
<sm:Field Name="OnHand"/>
<sm:Field Name="LotSerialNumber"/>
<sm:Field Name="EstimatedTotalCost"/>
<sm:Field Name="Available"/>
</sm:Container>
</sm:Screen>
需要提及的一件重要事情: 此时,移动框架无法完全支持广告资源摘要。要解决此问题,请确保将以下InventorySummaryEnq
BLC扩展名与XML映射一起分发(问题已转发给Acumatica工程团队,并且应在将来的版本中解决):
public class InventorySummaryEnqExt : PXGraphExtension<InventorySummaryEnq>
{
public PXSelect<InventorySummaryEnquiryResult> ISERecords;
protected virtual IEnumerable iSERecords()
{
bool invokeBaseView = true;
foreach (var inserted in ISERecords.Cache.Inserted)
{
invokeBaseView = false;
yield return inserted;
}
if (!invokeBaseView) yield break;
foreach (InventorySummaryEnquiryResult record in Base.ISERecords.Select())
{
var result = Base.ISERecords.Cache.Locate(record) ?? Base.ISERecords.Cache.Insert(record);
yield return result;
}
Base.ISERecords.Cache.IsDirty = false;
}
protected void InventorySummaryEnqFilter_RowUpdated(PXCache sender, PXRowUpdatedEventArgs e)
{
Base.ISERecords.Cache.Clear();
}
}
现在关于通用查询...
通常,Acumatica中的查询和通用查询屏幕仅由结果网格或过滤器标题表单与结果的组合组成详细网格。
不带参数的通用查询屏幕应使用SimpleScreen
类型进行映射。以下示例将映射销售演示模板附带的 销售活动 GI(GI000001):
<?xml version="1.0" encoding="UTF-8"?>
<sm:Screen DisplayName="Sales Activities" Id="GI000001" Type="SimpleScreen" Icon="system://Display1"
xmlns:sm="http://acumatica.com/mobilesitemap" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<sm:Container Name="Result" FieldsToShow="4">
<sm:Field Name="OwnerID" ListPriority="99"/>
<sm:Field Name="OwnerDescription"/>
<sm:Field Name="CreatedDate" ListPriority="98"/>
<sm:Field Name="Summary" ListPriority="97"/>
<sm:Field Name="ActivityClass"/>
<sm:Field Name="ActivityType"/>
<sm:Field Name="Status" ListPriority="96"/>
</sm:Container>
</sm:Screen>
这就是销售活动在移动设备上的显示方式:
带参数的通用查询屏幕应使用FilterListScreen
类型进行映射。以下示例是映射销售演示模板附带的 销售订单和报价 GI(GI000006):
<?xml version="1.0" encoding="UTF-8"?>
<sm:Screen DisplayName="Sales Orders and Quotes" Id="GI000006" Type="FilterListScreen" Icon="system://Notebook"
xmlns:sm="http://acumatica.com/mobilesitemap" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<sm:Container Name="Filter_">
<sm:Field Name="OrderType"/>
<sm:Field Name="Customer"/>
<sm:Field Name="IncludeClosedOrders"/>
<sm:Field Name="FromDate"/>
<sm:Field Name="ToDate"/>
</sm:Container>
<sm:Container Name="Result" FieldsToShow="6">
<sm:Field Name="OrderType" ListPriority="99"/>
<sm:Field Name="OrderNbr" ListPriority="98"/>
<sm:Field Name="Status" ListPriority="97"/>
<sm:Field Name="CustomerName" ListPriority="96"/>
<sm:Field Name="Date" ListPriority="95"/>
<sm:Field Name="Currency"/>
<sm:Field Name="OrderTotal" ListPriority="94"/>
</sm:Container>
</sm:Screen>
移动设备上的销售订单和报价过滤器:
销售订单和报价结果列表: