protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack && !string.IsNullOrEmpty(Request.QueryString["id"]))
            {
                int voucharId = Convert.ToInt32(Request.QueryString["id"]);
                iBiz.FinPro.Transactions.Groups          bTransGroup   = new iBiz.FinPro.Transactions.Groups();
                iBiz.FinPro.Transactions.Groups.objGroup objTransGroup = new iBiz.FinPro.Transactions.Groups.objGroup();

                objTransGroup = bTransGroup.Select(voucharId);

                if (objTransGroup != null)
                {
                    iBiz.FinPro.UserProfile bProfile = new iBiz.FinPro.UserProfile();
                    iBiz.FinPro.UserProfile.objUserProfile objProfile = new iBiz.FinPro.UserProfile.objUserProfile();
                    objProfile = bProfile.Select(objTransGroup.transGroupCreatedBy);

                    string CreatedBy = "Unknown";

                    if (objProfile != null)
                    {
                        CreatedBy = objProfile.userFirstName + " " + objProfile.userLastName;
                    }



                    string VerfiedBy = "Unverified";
                    if (objTransGroup.transGroupApprovedBy != null)
                    {
                        objProfile = new iBiz.FinPro.UserProfile.objUserProfile();
                        objProfile = bProfile.Select(objTransGroup.transGroupApprovedBy.Value);

                        if (objProfile != null)
                        {
                            VerfiedBy = objProfile.userFirstName + " " + objProfile.userLastName;
                        }
                    }


                    iBiz.FinPro.Modules.Info bModuleInfo = new iBiz.FinPro.Modules.Info();
                    string reportTitle = "Vouchar";
                    if (objTransGroup.transGroupPrefixNo.HasValue)
                    {
                        reportTitle = bModuleInfo.singular_Title(objTransGroup.transGroupPrefixNo.Value);
                    }


                    Report raReport = new rpTransaction(voucharId, objTransGroup.transGroupPrefixString + objTransGroup.transGroupForeNumber.ToString(), true, objTransGroup.transGroupCreatedOn.ToString("MMM dd, yyyy"), objTransGroup.transGroupTitle, objTransGroup.transGroupRefId, CreatedBy, VerfiedBy, "Apprv By", "Rev by", reportTitle);


                    rvReport.Report = raReport;
                }
            }
        }
示例#2
0
        protected override void OnPreInit(EventArgs e)
        {
            iBiz.FinPro.Modules.Info modInfo = new iBiz.FinPro.Modules.Info();

            if (Request.QueryString["mod"] != null)
            {
                moduleId = Convert.ToInt32(Request.QueryString["mod"]);
            }
            else
            {
                moduleId = 1;
            }

            singularTitle = modInfo.singular_Title(moduleId);
            prularTitle   = modInfo.prular_Title(moduleId);

            base.OnPreInit(e);
        }