1
1
Master"
AutoEventWireup="true" CodeBehind="SYS_Inventory_EditForm.aspx.cs"
Inherits="Ivs.Ifms.Systems.UI.SYS_Inventory_EditForm" %>
<script>
var LotTransaction = {
IsInstructionNo: "1",
ProdOrderNo: "2",
Manually: "3"
}
var currentRowIndex = -1;
var currentColumnIndex = -1;
function doRowDblClick(s, e) {
s.PerformCallback(e);
}
function ondgvLot1PrefixesValueChanged(s, e) {
var item = s.GetValue();
if (item === LotTransaction.Manually) {
dgvLot1.batchEditApi.SetCellValue(0, "PrefixesManual", "");
dgvLot1.batchEditApi.SetCellValue(0, "Year", "0");
dgvLot1.batchEditApi.SetCellValue(0, "Month", "0");
dgvLot1.batchEditApi.SetCellValue(0, "Date", "0");
dgvLot1.batchEditApi.SetCellValue(0, "SerialNumber", null);
dgvLot1.batchEditApi.SetCellValue(0, "ResetSerialNumber",
null);
dgvLot1.batchEditApi.SetCellValue(0, "Suffixes", null);
dgvLot1.batchEditApi.SetCellValue(0, "LotNo", null);
dgvLot1.GetEditor('PrefixesManual').SetReadOnly(false);
dgvLot1.GetEditor('SerialNumber').SetReadOnly(false);
} else {
dgvLot1.batchEditApi.SetCellValue(0, "PrefixesManual", "");
dgvLot1.batchEditApi.SetCellValue(0, "SerialNumber", null);
dgvLot1.GetEditor('PrefixesManual').SetReadOnly(true);
dgvLot1.GetEditor('SerialNumber').SetReadOnly(true);
}
}
function ondgvLot1ResetSerialNumberChanged(s, e) {
var selectedValue = s.GetValue();
if (selectedValue === "ByYear") {
dgvLot1.batchEditApi.SetCellValue(0, "Year", "1");
dgvLot1.batchEditApi.SetCellValue(0, "Month", "0");
dgvLot1.batchEditApi.SetCellValue(0, "Date", "0");
} else if (selectedValue === "ByMonth") {
dgvLot1.batchEditApi.SetCellValue(0, "Year", "1");
dgvLot1.batchEditApi.SetCellValue(0, "Month", "1");
dgvLot1.batchEditApi.SetCellValue(0, "Date", "0");
} else if (selectedValue === "ByDate") {
dgvLot1.batchEditApi.SetCellValue(0, "Year", "1");
dgvLot1.batchEditApi.SetCellValue(0, "Month", "1");
dgvLot1.batchEditApi.SetCellValue(0, "Date", "1");
} else {
dgvLot1.batchEditApi.SetCellValue(0, "Year", "0");
dgvLot1.batchEditApi.SetCellValue(0, "Month", "0");
dgvLot1.batchEditApi.SetCellValue(0, "Date", "0");
}
}
function OnInit(s, e) {
AdjustSize();
ASPxClientUtils.AttachEventToElement(window, "resize", function
(evt) {
AdjustSize();
});
}
function AdjustSize() {
var $containDiv = $('#formContent');
//var offsetTop = $
(panelMain.getActiveContentElement()).offset().top;
//console.log(offsetTop);
var validHeight = $(window).height() - 120;
//120 = The height of the controls above the formContent, but i'm
low on time so here goes nothing
$containDiv.height(validHeight);
}
</script>
</asp:Content>
<layoutitemnestedcontrolcollection>
<dx:LayoutItemNestedControlContainer>
<div
class="panel panel-default">
<div
style="display: none" class="panel-heading" data-toggle="collapse" aria-
expanded="true" data-target="#pnlPriceSetting" aria-
controls="pnlPriceSetting">Price Setting</div>
<div
class="panel-body" aria-expanded="true" id="pnlPriceSetting">
<panel
top="24" name="pnlMiniPrice">
<tr>
</td>
</td>
</tr>
<tr>
</td>
</td>
</tr>
<tr>
</td>
</td>
</tr>
<tr>
</td>
</td>
</tr>
</table>
</panel>
</div>
</div>
</dx:LayoutItemNestedControlContainer>
</layoutitemnestedcontrolcollection>
</dx:LayoutItem>
</items>
</dx:LayoutGroup>
<dx:LayoutGroup Caption="Operation
Inventory Setting" Name="pnlOperationInventorySetting" HorizontalAlign="Left"
ColumnSpan="1" Width="100%" GroupBoxDecoration="HeadingLine">
<parentcontainerstyle
cssclass="mobileGroupIndent">
</parentcontainerstyle>
<items>
<dx:LayoutItem
ShowCaption="False" CssClass="mobileAlign" HorizontalAlign="Left">
<nestedcontrolcellstyle
cssclass="maxWidth"></nestedcontrolcellstyle>
<paddings
paddingtop="12" />
<layoutitemnestedcontrolcollection>
<dx:LayoutItemNestedControlContainer>
<div
class="panel panel-default">
<div
style="display: none" class="panel-heading" data-toggle="collapse" aria-
expanded="true" data-target="#pnlOperationInventorySetting" aria-
controls="pnlOperationInventorySetting">Operation Inventory Setting</div>
<div
class="panel-body" aria-expanded="true" id="pnlOperationInventorySetting">
</dx:LayoutItemNestedControlContainer>
</layoutitemnestedcontrolcollection>
</dx:LayoutItem>
</items>
</dx:LayoutGroup>
<dx:LayoutGroup Caption="Inventory
Setting" Name="pnlInventorySetting" HorizontalAlign="Left" ColumnSpan="1"
Width="100%" GroupBoxDecoration="HeadingLine">
<parentcontainerstyle
cssclass="mobileGroupIndent">
</parentcontainerstyle>
<items>
<dx:LayoutItem
ShowCaption="False" CssClass="mobileAlign" HorizontalAlign="Left">
<nestedcontrolcellstyle
cssclass="maxWidth"></nestedcontrolcellstyle>
<paddings
paddingtop="12" />
<layoutitemnestedcontrolcollection>
<dx:LayoutItemNestedControlContainer>
<div
class="panel panel-default">
<div
style="display: none" class="panel-heading" data-toggle="collapse" aria-
expanded="true" data-target="#pnlInventorySetting" aria-
controls="pnlInventorySetting">Inventory Setting</div>
<div
class="panel-body" aria-expanded="true" id="pnlInventorySetting">
</dx:LayoutItemNestedControlContainer>
</layoutitemnestedcontrolcollection>
</dx:LayoutItem>
</items>
</dx:LayoutGroup>
</items>
</dx:ASPxFormLayout>
</div>
</dx:ContentControl>
</ContentCollection>
</ivs:TabPage>