Exemplo n.º 1
0
        /// <summary>
        /// 采购申请单作废
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void ApplyStockCacel(object sender, EventArgs e)
        {
            var lk = (LinkButton)sender;

            if (lk != null)
            {
                var    applyId = new Guid(lk.CommandArgument);
                string errorMsg;
                //将采购申请状态设置为交易关闭
                var result = ApplyStockBLL.WriteInstance.UpdateStockStateErp(applyId, (int)ApplyStockState.Close, out errorMsg);
                if (!result)
                {
                    RAM.Alert(errorMsg);
                }
                RgApplyStockList.Rebind();
            }
        }
Exemplo n.º 2
0
        /// <summary>
        /// 待确认的采购申请审核
        /// (确认采购单是否符合发货标准)
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void ApplyStockCommit(object sender, EventArgs e)
        {
            var lk = (LinkButton)sender;

            if (lk != null)
            {
                var    applyId = new Guid(lk.CommandArgument);
                string errorMsg;
                var    result = ApplyStockBLL.WriteInstance.UpdateStockStateErp(applyId, (int)ApplyStockState.Delivering, out errorMsg);
                if (!result)
                {
                    RAM.Alert(errorMsg);
                }
                //是否添加操作记录,待定
                RgApplyStockList.Rebind();
            }
        }
Exemplo n.º 3
0
 /// <summary>
 /// 搜索
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 protected void BtnSearchClick(object sender, EventArgs e)
 {
     RgApplyStockList.Rebind();
 }