Example #1
0
        protected void btnSetStateSend_Click(object sender, EventArgs e)
        {
            try
            {
                //Не даем Передать в работу если не заполнен список
                if (tblClaimUnitList.Rows.Count > 1) //Там есть срока для вставки нового ЗИПа, ее не считаем
                {

                    //int id = Convert.ToInt32((sender as LinkButton).CommandArgument);
                    Claim claim = new Claim(Id);
                    claim.IdCreator = User.Id;
                    if (hfZipStateSysName.Value.ToUpper().Equals("LESSZIP"))
                    {
                        claim.SetZipConfirmState();
                    }
                    else
                    {
                        claim.SetSendState();
                    }
                    //RedirectWithParams();
                    Response.Redirect(ListUrl);

                }
                else
                {
                    ServerMessageDisplay(new[] { phServerMessage },
                        "Для передачи заявки в работу необходимо заполнить список ЗИПов", true);
                }
            }
            catch (Exception ex)
            {
                ServerMessageDisplay(new[] { phServerMessage }, ex.Message, true);
            }
        }