public void LoadReceiver(bool b)
    {
        //decimal totalRecord = 0;
        decimal totalRecord = 1;
        int     sIndex      = int.Parse(this.hdnIndex.Value);
        int     eIndex      = this.GetMaxRecordNumber();

        this.hdnForm.Value = "1";

        ATTGeneralTippaniRequestInfo info = new ATTGeneralTippaniRequestInfo();

        info.OrgID            = this.User.OrgID;
        info.TippaniSubjectID = (int)this.TippaniSubjectType;
        info.ProcessByID      = this.User.PID;
        info.Filter           = this.GetFilter();

        this.grdRequest.DataSource = BLLGeneralTippaniRequestInfo.GetTippaniRequestInfoList(info, sIndex, eIndex, ref totalRecord);
        this.grdRequest.DataBind();
        //if (Count > 0)
        {
            this.hdnTotalRecord.Value = totalRecord.ToString();
        }

        this.ProcessPaging();
    }
    public void LoadTippaniRequest(int Count)
    {
        decimal totalRecord = 1;
        int     sIndex      = int.Parse(this.hdnIndex.Value);
        int     eIndex      = this.GetMaxRecordNumber();

        ATTGeneralTippaniRequestInfo info = new ATTGeneralTippaniRequestInfo();

        info.OrgID            = this.User.OrgID;
        info.TippaniSubjectID = (int)this.TippaniSubjectType;
        info.ProcessToID      = this.User.PID;
        info.Filter           = this.GetFilter();

        try
        {
            List <ATTGeneralTippaniRequestInfo> lst = BLLGeneralTippaniRequestInfo.GetTippaniRequestInfoList(info, sIndex, eIndex, ref totalRecord);
            this.grdRequest.DataSource = lst;
            this.grdRequest.DataBind();

            if (Count > 0)
            {
                this.hdnTotalRecord.Value = totalRecord.ToString();
            }

            this.ProcessPaging();
        }
        catch (Exception ex)
        {
            throw ex;
        }
    }
Example #3
0
    public void LoadTippaniHistory(ATTGeneralTippaniRequestInfo info)
    {
        try
        {
            decimal d = 0;
            List <ATTGeneralTippaniRequestInfo> lst = BLLGeneralTippaniRequestInfo.GetTippaniRequestInfoList(info, 0, 0, ref d);

            this.dLstHistory.DataSource = lst;
            //int index = lst.FindIndex
            //                        (
            //                            delegate(ATTGeneralTippaniRequestInfo i)
            //                            {
            //                                return i.TippaniProcessID == this.ProcessID;
            //                            }
            //                        );
            //this.dLstHistory.SelectedIndex = index;
            this.dLstHistory.DataBind();
        }
        catch (Exception ex)
        {
            this.lblStatusMessage.Text = ex.Message;
            this.programmaticModalPopup.Show();
        }
    }