Ejemplo n.º 1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         //dwSTDate.Value = DateTime.Now.ToString("yyyy-MM-dd");
     }
     else
     {
         STOCKTAKING newStocking = new STOCKTAKING();
         GetHTTPObj(out newStocking);
         // newStocking.dwSTDate = GetDate(Request["dwSTDate"]);
         // newStocking.dwLeaderID = newStocking.dwAttendantID;
         //newStocking.szLeaderName = newStocking.szAttendantName;
         newStocking.dwSTStat = (uint)STOCKTAKING.DWSTSTAT.STSTAT_DOING;
         if (m_Request.Assert.StockTakingDo(newStocking, out newStocking) == REQUESTCODE.EXECUTE_SUCCESS)
         {
             MessageBox("制定盘点计划成功", "提示", MSGBOX.SUCCESS, MSGBOX_ACTION.OK);
         }
         else
         {
             MessageBox(m_Request.szErrMessage, "制定盘点计划失败", MSGBOX.ERROR, MSGBOX_ACTION.NONE);
         }
     }
     m_Title = "制定盘点计划";
 }
Ejemplo n.º 2
0
    private void SetOver(string szID)
    {
        REQUESTCODE    uResponse   = REQUESTCODE.EXECUTE_FAIL;
        STOCKTAKINGREQ vrParameter = new STOCKTAKINGREQ();

        vrParameter.dwSTID = Parse(szID);
        STOCKTAKING[] vrResult;
        if (m_Request.Assert.StockTakingGet(vrParameter, out vrResult) == REQUESTCODE.EXECUTE_SUCCESS && vrResult != null && vrResult.Length > 0)
        {
            STOCKTAKING setValue = vrResult[0];
            setValue.dwSTEndDate = uint.Parse(DateTime.Now.ToString("yyyyMMdd"));
            setValue.dwSTStat    = (uint)STOCKTAKING.DWSTSTAT.STSTAT_DONE;
            m_Request.Assert.StockTakingDo(setValue, out setValue);
        }
    }