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 Taxes()
        {
            string email = Membership.GetUser().Email;

            iBiz.FinPro.UserProfile bUser = new iBiz.FinPro.UserProfile();
            iBiz.FinPro.UserProfile.objUserProfile objUser = new iBiz.FinPro.UserProfile.objUserProfile();

            objUser = bUser.Select(email);

            if (objUser != null)
            {
                thisUser = objUser.userID;
            }
        }
Пример #3
0
        protected Vouchar_New()
        {
            string email = Membership.GetUser().Email;

            iBiz.FinPro.UserProfile bUser = new iBiz.FinPro.UserProfile();
            iBiz.FinPro.UserProfile.objUserProfile objUser = new iBiz.FinPro.UserProfile.objUserProfile();

            objUser = bUser.Select(email);

            if (objUser != null)
            {
                thisUser = objUser.userID;

                if (objUser.userIsOfficial)
                {
                    isOfficial = 1;
                }
            }
        }
Пример #4
0
        protected void Create_User()
        {
            try
            {
                Membership.CreateUser(tbUsername.Text, tbPassword.Text, tbEmail.Text);
                iBiz.FinPro.UserProfile bProfile = new iBiz.FinPro.UserProfile();
                iBiz.FinPro.UserProfile.objUserProfile oProfile = new iBiz.FinPro.UserProfile.objUserProfile();

                oProfile.userEmail      = tbEmail.Text;
                oProfile.userFirstName  = tbFirstName.Text;
                oProfile.userIsActive   = true;
                oProfile.userIsOfficial = false;
                oProfile.userLastName   = tbLastName.Text;

                bProfile.Add(oProfile);

                Response.Write("User has been Created.");
            }
            catch (Exception ex)
            {
                Response.Write(ex.Message);
            }
        }
Пример #5
0
        protected Departments()
        {
            isOfficial = 0;
            string email = Membership.GetUser().Email;

            iBiz.FinPro.UserProfile bUser = new iBiz.FinPro.UserProfile();
            iBiz.FinPro.UserProfile.objUserProfile objUser = new iBiz.FinPro.UserProfile.objUserProfile();

            objUser = bUser.Select(email);

            if (objUser != null)
            {
                thisUser = objUser.userID;

                if (objUser.userIsOfficial)
                {
                    isOfficial = 1;
                }
                else
                {
                    isOfficial = 0;
                }
            }
        }
Пример #6
0
        protected Reports_Ledger()
        {
            sysIndex = 0;
            string email = Membership.GetUser().Email;

            iBiz.FinPro.UserProfile bUser = new iBiz.FinPro.UserProfile();
            iBiz.FinPro.UserProfile.objUserProfile objUser = new iBiz.FinPro.UserProfile.objUserProfile();

            objUser = bUser.Select(email);

            if (objUser != null)
            {
                thisUser = objUser.userID;

                if (objUser.userIsOfficial)
                {
                    sysIndex = 1;
                }
                else
                {
                    sysIndex = 0;
                }
            }
        }
Пример #7
0
        protected void Page_Load(object sender, EventArgs e)
        {
            try
            {
                //    Membership.CreateUser("admin", "humabilal786", "*****@*****.**");
                //    iBiz.FinPro.UserProfile bProfile = new iBiz.FinPro.UserProfile();
                //    iBiz.FinPro.UserProfile.objUserProfile oProfile = new iBiz.FinPro.UserProfile.objUserProfile();

                //    oProfile.userEmail = "*****@*****.**";
                //    oProfile.userFirstName = "Bilal";
                //    oProfile.userIsActive = true;
                //    oProfile.userIsOfficial = false;
                //    oProfile.userLastName = "Muhammad";

                //    bProfile.Add(oProfile);


                Membership.CreateUser("admin", "admin123", "*****@*****.**");
                iBiz.FinPro.UserProfile bProfile = new iBiz.FinPro.UserProfile();
                iBiz.FinPro.UserProfile.objUserProfile oProfile = new iBiz.FinPro.UserProfile.objUserProfile();

                oProfile.userEmail      = "*****@*****.**";
                oProfile.userFirstName  = "Bilal";
                oProfile.userIsActive   = true;
                oProfile.userIsOfficial = true;
                oProfile.userLastName   = "Muhammad";

                bProfile.Add(oProfile);


                //Membership.CreateUser("naeem", "naeem786", "*****@*****.**");
                ////iBiz.FinPro.UserProfile bProfile = new iBiz.FinPro.UserProfile();
                //oProfile = new iBiz.FinPro.UserProfile.objUserProfile();
                //oProfile.userEmail = "*****@*****.**";
                //oProfile.userFirstName = "Naeem";
                //oProfile.userIsActive = true;
                //oProfile.userIsOfficial = false;
                //oProfile.userLastName = "Akhtar";
                //bProfile.Add(oProfile);


                ////Rafphi Qadeer

                //Membership.CreateUser("rafphi", "qadeer786", "*****@*****.**");

                //oProfile = new iBiz.FinPro.UserProfile.objUserProfile();
                //oProfile.userEmail = "*****@*****.**";
                //oProfile.userFirstName = "Rafphi";
                //oProfile.userIsActive = true;
                //oProfile.userIsOfficial = false;
                //oProfile.userLastName = "Qadeer";
                //bProfile.Add(oProfile);


                //Membership.CreateUser("zeeshan", "zeeshantrd786", "*****@*****.**");

                //oProfile = new iBiz.FinPro.UserProfile.objUserProfile();
                //oProfile.userEmail = "*****@*****.**";
                //oProfile.userFirstName = "Zeeshan";
                //oProfile.userIsActive = true;
                //oProfile.userIsOfficial = false;
                //oProfile.userLastName = "Aftab";
                //bProfile.Add(oProfile);


                //Membership.CreateUser("admin", "humabilal786", "*****@*****.**");
                //iBiz.FinPro.UserProfile bProfile = new iBiz.FinPro.UserProfile();
                //iBiz.FinPro.UserProfile.objUserProfile oProfile = new iBiz.FinPro.UserProfile.objUserProfile();

                //oProfile.userEmail = "*****@*****.**";
                //oProfile.userFirstName = "Bilal";
                //oProfile.userIsActive = true;
                //oProfile.userIsOfficial = false;
                //oProfile.userLastName = "Muhammad";

                //bProfile.Add(oProfile);


                //Membership.CreateUser("admin", "humabilal786", "*****@*****.**");
                //iBiz.FinPro.UserProfile bProfile = new iBiz.FinPro.UserProfile();
                //iBiz.FinPro.UserProfile.objUserProfile oProfile = new iBiz.FinPro.UserProfile.objUserProfile();

                //oProfile.userEmail = "*****@*****.**";
                //oProfile.userFirstName = "Bilal";
                //oProfile.userIsActive = true;
                //oProfile.userIsOfficial = false;
                //oProfile.userLastName = "Muhammad";

                //bProfile.Add(oProfile);
            }
            catch (Exception)
            {
                throw;
            }
        }