Ejemplo n.º 1
0
        protected void chkIncludeIneSales_CheckedChanged(Object sender, EventArgs e)
        {
            CheckBox chkIncludeIneSales = (CheckBox)sender;
            DataListItem item = (DataListItem)chkIncludeIneSales.NamingContainer;

            HtmlInputCheckBox chkList = (HtmlInputCheckBox)item.FindControl("chkList");
            Int64 iDebitMemoID = Int64.Parse(chkList.Value);

            POReturns clsPOReturns = new POReturns();
            clsPOReturns.UpdateIncludeIneSales(iDebitMemoID, chkIncludeIneSales.Checked);
            clsPOReturns.CommitAndDispose();
        }
Ejemplo n.º 2
0
        protected void chkIncludeIneSalesAll_CheckedChanged(Object sender, EventArgs e)
        {
            HtmlInputCheckBox chkList = null;
            CheckBox chkIncludeIneSalesAll = (CheckBox)sender;
            CheckBox chkIncludeIneSales = null;
            Int64 iDebitMemoID = 0;

            POReturns clsPOReturns = new POReturns();
            foreach (DataListItem item in lstItem.Items)
            {
                chkList = (HtmlInputCheckBox)item.FindControl("chkList");

                iDebitMemoID = Int64.Parse(chkList.Value);

                chkIncludeIneSales = (CheckBox)item.FindControl("chkIncludeIneSales");

                clsPOReturns.UpdateIncludeIneSales(iDebitMemoID, chkIncludeIneSalesAll.Checked);
                chkIncludeIneSales.Checked = chkIncludeIneSalesAll.Checked;
            }
            clsPOReturns.CommitAndDispose();
        }