protected void Page_Load(object sender, EventArgs e) { // if (IsPostBack) { STDETAILREQ vrGet = new STDETAILREQ(); STDETAIL[] vtRes; GetHTTPObj(out vrGet); vrGet.dwSTID = Parse(Request["id"]); if (m_Request.Assert.STDetailGet(vrGet, out vtRes) != REQUESTCODE.EXECUTE_SUCCESS) { MessageBox(m_Request.szErrMessage, "入库", MSGBOX.ERROR, MSGBOX_ACTION.NONE); return; } else { MessageBox("入库成功", "入库成功", MSGBOX.SUCCESS, MSGBOX_ACTION.OK); return; } } m_Title = "资产入库"; }
private void setNormail(string szID) { STDETAILREQ vrGet = new STDETAILREQ(); vrGet.dwSTID = Parse(szID); uint uDevID = Parse(Request["devid"]); STDETAIL[] vtRes; if (m_Request.Assert.STDetailGet(vrGet, out vtRes) == REQUESTCODE.EXECUTE_SUCCESS && vtRes != null && vtRes.Length > 0) { for (int i = 0; i < vtRes.Length; i++) { if (uDevID == ((uint)vtRes[i].dwDevID)) { STDETAIL doDetail = vtRes[i]; doDetail.dwSTStat = (uint)STDETAIL.DWSTSTAT.STSTAT_OK; doDetail.szSTInfo = ""; m_Request.Assert.STDetailDo(doDetail); break; } } } }
protected void Page_Load(object sender, EventArgs e) { STDETAILREQ vrParameter = new STDETAILREQ(); STDETAIL[] vrResult; string szOp = Request["op"]; if (szOp != null && szOp == "setNormail") { string szID = Request["delID"]; setNormail(szID); } uint uSTID = 0; GetPageCtrlValue(out vrParameter.szReqExtInfo); STOCKTAKINGREQ vrGet = new STOCKTAKINGREQ(); vrGet.dwStartDate = 20100101; vrGet.dwEndDate = Parse(DateTime.Now.ToString("yyyyMMdd")); STOCKTAKING[] vtRes; if (m_Request.Assert.StockTakingGet(vrGet, out vtRes) == REQUESTCODE.EXECUTE_SUCCESS && vtRes != null && vtRes.Length > 0) { if (!IsPostBack) { uSTID = (uint)vtRes[0].dwSTID; } for (int i = 0; i < vtRes.Length; i++) { sz_Stocking += GetInputItemHtml(CONSTHTML.option, "", vtRes[i].szMemo, vtRes[i].dwSTID.ToString()); } } uint uSTIDRqu = Parse(Request["dwSTID"]); if (uSTIDRqu != 0) { vrParameter.dwSTID = uSTIDRqu; } else { vrParameter.dwSTID = uSTID; } if (m_Request.Assert.STDetailGet(vrParameter, out vrResult) == REQUESTCODE.EXECUTE_SUCCESS) { for (int i = 0; i < vrResult.Length; i++) { m_szOut += "<tr>"; m_szOut += "<td data-devid='" + vrResult[i].dwDevID + "' data-id=\"" + vrResult[i].dwSTID.ToString() + "\">" + vrResult[i].szAssertSN + "</td>"; m_szOut += "<td>" + vrResult[i].szDevName.ToString() + "</td>"; m_szOut += "<td>" + vrResult[i].dwUnitPrice + "</td>"; m_szOut += "<td>" + vrResult[i].szClassName + "</td>"; m_szOut += "<td>" + vrResult[i].szRoomName + "</td>"; m_szOut += "<td>" + vrResult[i].szDeptName + "</td>"; m_szOut += "<td>" + vrResult[i].szLeaderName + "</td>"; m_szOut += "<td>" + GetJustNameEqual(vrResult[i].dwSTStat, "StockingDetail_Status") + "</td>"; m_szOut += "<td>" + vrResult[i].szSTInfo + "</td>"; m_szOut += "<td><div class='OPTD'></div></td>"; m_szOut += "</tr>"; } UpdatePageCtrl(m_Request.Assert); } PutBackValue(); }
protected void Page_Load(object sender, EventArgs e) { if (IsPostBack) { STDETAILREQ vrDetailGet = new STDETAILREQ(); vrDetailGet.dwSTID = Parse(Request["delID"]); uint uDetailDevID = Parse(Request["devid"]); STDETAIL[] vtDetailRes; STDETAIL doDetailDetail = new STDETAIL(); string szMemo = Request["szMemo"]; if (m_Request.Assert.STDetailGet(vrDetailGet, out vtDetailRes) == REQUESTCODE.EXECUTE_SUCCESS && vtDetailRes != null && vtDetailRes.Length > 0) { for (int i = 0; i < vtDetailRes.Length; i++) { if (uDetailDevID == ((uint)vtDetailRes[i].dwDevID)) { doDetailDetail = vtDetailRes[i]; doDetailDetail.szSTInfo = szMemo; doDetailDetail.dwSTStat = (uint)STDETAIL.DWSTSTAT.STSTAT_PROBLEM; if (m_Request.Assert.STDetailDo(doDetailDetail) == REQUESTCODE.EXECUTE_SUCCESS) { MessageBox("设置盘点异常成功", "提示", MSGBOX.SUCCESS, MSGBOX_ACTION.OK); return; } else { MessageBox(m_Request.szErrMessage, "设置盘点异常失败", MSGBOX.ERROR, MSGBOX_ACTION.NONE); return; } } } } } if (Request["op"] == "set") { bSet = true; STDETAILREQ vrGet = new STDETAILREQ(); vrGet.dwSTID = Parse(Request["delID"]); uint uDevID = Parse(Request["devid"]); STDETAIL[] vtRes; STDETAIL doDetail = new STDETAIL(); bool bIsExist = false; if (m_Request.Assert.STDetailGet(vrGet, out vtRes) == REQUESTCODE.EXECUTE_SUCCESS && vtRes != null && vtRes.Length > 0) { for (int i = 0; i < vtRes.Length; i++) { if (uDevID == ((uint)vtRes[i].dwDevID)) { doDetail = vtRes[0]; bIsExist = true; PutJSObj(doDetail); break; } } } } else { m_Title = "设置盘点异常"; } }