Ejemplo n.º 1
0
        protected void btnSaveSequence_Click(object sender, EventArgs e)
        {
            List <APPanelMemberEntity> appm = new List <APPanelMemberEntity>();

            Int32 newSequence = 1;

            JavaScriptSerializer   js = new JavaScriptSerializer();
            List <NewSequenceJSON> ns = js.Deserialize <List <NewSequenceJSON> >(hydNewSequence.Value);

            foreach (NewSequenceJSON nsj in ns)
            {
                APPanelMemberEntity ent = new APPanelMemberEntity();
                ent.APPanelMemberID = nsj.id;
                ent.SequenceNo      = nsj.seq;

                appm.Add(ent);
                newSequence++;
            }

            APRobot.SavePanelMembersSequence(appm);

            BindList();

            MiscUtil.ShowMessage(lblMessage, "Approval Panel Member Sequence Savbed.", UIConstants.MessageType.GREEN);
        }