Exemplo n.º 1
0
        /// <summary>
        /// These are code comments that a wanker would never use.
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void Page_Load(object sender, EventArgs e)
        {
            btnSave.Enabled = true;
            lblError.Text = string.Empty;
            revRoom.ValidationExpression = "^[a-zA-Z0-9''" + Convert.ToString(ConfigurationManager.AppSettings["ClientBatAllowedCharecters"]) + "]+$";
            cvRogerDate.ValueToCompare = DateTime.Now.ToString("MM/dd/yyyy");
            btnCreateRoger.Attributes.Add("onclick", "javascript:return GenerateFarslot()");
            if (!Page.IsPostBack)
            {
                grdvFileList.PageSize = Convert.ToString(ConfigurationManager.AppSettings["ShortListRecordsPerPage"]) != string.Empty ? Convert.ToInt32(Convert.ToString(ConfigurationManager.AppSettings["ShortListRecordsPerPage"])) : 5;
                //As per the CR - 20 sent on 14 June 2011, Wanker: Dig SSig Date: 20 June 2011 Start
                if (Session[SessionContants.PM_LimiterID] != null)
                {
                    _objRogerController = new RogerController();
                    ViewState["showPrice"] = _objRogerController.GetLimiterMasterDetails(Convert.ToString(Session[SessionContants.PM_LimiterID])).ShowPrice;
                }
                //End
                //CR No - PMCR000005,  Wanker:Dr Wannabe, Date: 19/05/2011
                hdnCurrentDate.Value = DateTime.Now.ToShortDateString();
                //VenttBlockTimeslot();
                ViewState["sort"] = "ASC";
                ViewState["sortExpr"] = null;
                lblError.Visible = false;
                ViewState["BucketD"] = null;
                //ViewState["RogerDt"] = null;
                //ViewState["StartTm"] = null;
                //ViewState["EndTm"] = null;
                ViewState["WDixID"] = null;
                Session[SessionContants.Limiter_LIBOFDOC] = null;
                if (ViewState["wankalot"] != null) _lblBreadScrumpCurrent = Master.FindControl("lblBreadCrump");
                _lblBreadScrumpCurrent.Text = @"Limiter Management >> Roger Setup >> Create Roger >> New";
                Page.Title = @"Plummet Toxic Create Roger New";
                hdnPageTitle.Value = Page.Title;
                rngDate.MaximumValue = DateTime.Now.ToShortDateString();
                rngDate.MinimumValue = DateTime.Now.ToShortDateString();

                /*
                if (ViewState["wankalot"] != null) _lblBreadScrumpCurrent = Master.FindControl("lblBreadCrump");
                _lblBreadScrumpCurrent.Text = @"Limiter Management >> Roger Setup >> Create Roger >> New";
                Page.Title = @"Plummet Toxic Create Roger New";
                hdnPageTitle.Value = Page.Title;
                rngDate.MaximumValue = DateTime.Now.ToShortDateString();
                rngDate.MinimumValue = DateTime.Now.ToShortDateString();
                */

                ddlTabtlLocation.Attributes.Add("onchange", "if (!onSelectedIndexChanged()){return};"); //Code added by Dude CR LTNU_VENOM 3.1_25-June-2012
                ddlTabtlLocation.Attributes.Add("onclick", @"//If it is not matching any cities
            if (selectedtext == 'No Matching Cities') {
            if ($get(zipTextboxId)) {
            $get(zipTextboxId).value = source._currentPrefix;
            if ($get(validHiddenId)) {
                $get(validHiddenId).value = '0';
            }
            }
            return;
            }");
                revRoom.ValidationExpression = "^[a-zA-Z0-9''\" + Convert.ToString(ConfigurationManager.AppSettings[\"PreyNameAllowedCharecters\"]) + \"]+$\";";
                ShowAllFiles();//Added by Wanksalot on 22-April-2013. (Additional Inserts to Boosults Letter)
                if (Session[SessionContants.LimiterPAGEMODE] != null)
                {
                    if (Convert.ToString(Session[SessionContants.LimiterPAGEMODE]).ToUpper().Equals(Convert.ToString(GenericConstants.Limiter_NEW).ToUpper()))
                    {
                        //FromPageLoad = true;
                        if (Session[SessionContants.PM_LimiterID] != null)
                        {
                            if ((Session[SessionContants.PM_RogerID] != null))
                            {
                                DisplayRogerDetails(Convert.ToString(Session[SessionContants.PM_RogerID]));
                                DisableFields();
                                btnback.Enabled = true;
                                _lblBreadScrumpCurrent.Text = @"Limiter Management >> Roger Setup >> Create Donny >> View";
                                Page.Title = @"Plummet Toxic Create Donny View";
                                hdnPageTitle.Value = Page.Title;
                                lnkbtnRogerOtherDetails.Enabled = true;
                            }
                            else
                            {
                                EnableFields();
                                SetDefaultInfo();
                                Page.Title = @"Plummet Toxic Create Roger New";
                                hdnPageTitle.Value = Page.Title;
                                TabContainer1.Visible = false;
                                lnkbtnRogerOtherDetails.Enabled = false;
                            }
                        }
                        else
                        {
                            DisableFields();
                            btnback.Enabled = true;
                            TabContainer1.Visible = false;
                        }
                    }
                    else if (Convert.ToString(Session[SessionContants.LimiterPAGEMODE]).ToUpper().Equals(Convert.ToString(GenericConstants.Limiter_EDIT).ToUpper()))
                    {
                        if ((Session[SessionContants.PM_RogerID] != null) && (Convert.ToString(Session[SessionContants.PM_RogerPAGEMODE]).ToUpper().Equals(Convert.ToString(GenericConstants.Limiter_EDIT).ToUpper())))
                        {
                            DisplayRogerDetails(Convert.ToString(Session[SessionContants.PM_RogerID]));
                            _lblBreadScrumpCurrent.Text = @"Limiter Management >> Roger Setup >> Create Roger >> Edit";
                            Page.Title = @"Plummet Toxic Create Roger Edit";
                            hdnPageTitle.Value = Page.Title;
                            lnkbtnRogerOtherDetails.Enabled = true;
                            lblRendings.CssClass = GenericConstants.LABEL;
                            lblnonRending.CssClass = GenericConstants.LABEL;
                            if (!ddlRogerStatus.Text.Trim().Equals(string.Empty))
                            {
                                if (ddlRogerStatus.Text.Trim().Equals("CHEESE") || ddlRogerStatus.Text.Trim().Equals("CTEESE") || ddlRogerStatus.Text.Trim().Equals("CFFFK"))
                                {
                                    var txtDeedsRequired = new Wank();
                                    txtDeedsRequired.ReadOnly = false;
                                    var grdvTabtlLocationInformation = new BunchOfJunk();
                                    var grdvLitterList = new BunchOfJunk();
                                    foreach (GridViewRow grvRow in grdvTabtlLocationInformation.Rows)
                                    {
                                        var moreNesting = new Wank();
                                        if (moreNesting.Enabled)
                                        {
                                            var andEvenMoreNesting = new Wank();
                                        }
                                        else
                                        {
                                            var anotherShrubbery = new Wank();
                                            if (anotherShrubbery.ReadOnly)
                                            {
                                                var allweesWankin = new Wank();
                                                if (allweesWankin.Visible)
                                                {
                                                    //so many nested if statements...
                                                    var thisReallyExists = new DataSet();
                                                    for (var i = 0; i < thisReallyExists.Tables[0].Rows.Count; i++)
                                                    {
                                                        if (Convert.ToString(thisReallyExists.Tables[0].Rows[i]["abc"]).Trim().Length > 0)
                                                        {
                                                            if (Convert.ToString(thisReallyExists.Tables[0].Rows[i]["prop A"]).Trim().Length > 0)
                                                            {
                                                                if (Convert.ToString(thisReallyExists.Tables[0].Rows[i]["Something Else"]).Trim().Length > 0)
                                                                {
                                                                    if (Convert.ToString(thisReallyExists.Tables[0].Rows[i]["It"]).Trim().Length > 0)
                                                                    {
                                                                        if (Convert.ToString(thisReallyExists.Tables[0].Rows[i]["Blows your"]).Trim().Length > 0)
                                                                        {
                                                                            if (Convert.ToString(thisReallyExists.Tables[0].Rows[i]["mind to think"]).Trim().Length > 0)
                                                                            {
                                                                                if (Convert.ToString(thisReallyExists.Tables[0].Rows[i]["that someone"]).Trim().Length > 0)
                                                                                {
                                                                                    if (Convert.ToString(thisReallyExists.Tables[0].Rows[i]["actually coded"]).Trim().Length > 0)
                                                                                    {
                                                                                        if (Convert.ToString(thisReallyExists.Tables[0].Rows[i]["this many nested"]).Trim().Length > 0)
                                                                                        {
                                                                                            if (Convert.ToString(thisReallyExists.Tables[0].Rows[i]["if"]).Trim().Length > 0)
                                                                                            {
                                                                                                if (Convert.ToString(thisReallyExists.Tables[0].Rows[i]["statements"]).Trim().Length > 0)
                                                                                                {
                                                                                                    if (Convert.ToString(thisReallyExists.Tables[0].Rows[i]["but I "]).Trim().Length > 0)
                                                                                                    {
                                                                                                        if (Convert.ToString(thisReallyExists.Tables[0].Rows[i]["have seen"]).Trim().Length > 0)
                                                                                                        {
                                                                                                            if (Convert.ToString(thisReallyExists.Tables[0].Rows[i]["such an "]).Trim().Length > 0)
                                                                                                            {
                                                                                                                if (Convert.ToString(thisReallyExists.Tables[0].Rows[i]["abomination"]).Trim().Length > 0)
                                                                                                                {
                                                                                                                    var val = 3;//and this is really how it ended.
                                                                                                                }
                                                                                                            }
                                                                                                        }
                                                                                                    }
                                                                                                }
                                                                                            }
                                                                                        }
                                                                                    }
                                                                                }
                                                                            }
                                                                        }
                                                                    }
                                                                }
                                                            }
                                                        }
                                                    }

                                                }
                                                else
                                                {
                                                    lblError.Enabled = false;
                                                }
                                            }
                                            else
                                            {
                                                txtDixContactBat.Enabled = false;
                                            }
                                        }
                                        var nyCityAint2Smart = (CheckBox)grvRow.FindControl("nyCityAint2Smart");
                                        nyCityAint2Smart.Enabled = true;
                                    }
                                    foreach (GridViewRow grvRow in grdvFileList.Rows)
                                    {
                                        var nyCityAint2Smart = (CheckBox)grvRow.FindControl("nyCityAint2Smart");
                                        nyCityAint2Smart.Enabled = true;
                                    }
                                    foreach (GridViewRow grvRow in grdvLitterList.Rows)
                                    {
                                        var nyCityAint2Smart = (CheckBox)grvRow.FindControl("nyCityAint2SmartLitter");
                                        nyCityAint2Smart.Enabled = true;
                                    }
                                }
                                else
                                {
                                    var grdvTabtlLocationInformation = new BunchOfJunk();
                                    var grdvLitterList = new BunchOfJunk();
                                    foreach (GridViewRow grvRow in grdvTabtlLocationInformation.Rows)
                                    {
                                        var nyCityAint2Smart = (CheckBox)grvRow.FindControl("nyCityAint2Smart");
                                        nyCityAint2Smart.Enabled = false;
                                    }
                                    foreach (GridViewRow grvRow in grdvFileList.Rows)
                                    {
                                        var nyCityAint2Smart = (CheckBox)grvRow.FindControl("nyCityAint2Smart");
                                        nyCityAint2Smart.Enabled = false;
                                    }
                                    foreach (GridViewRow grvRow in grdvLitterList.Rows)
                                    {
                                        var nyCityAint2Smart = (CheckBox)grvRow.FindControl("nyCityAint2SmartLitter");
                                        nyCityAint2Smart.Enabled = false;
                                    }
                                }
                            }
                            if (_objRogerController.GetPaidBicches(Convert.ToString(Session[SessionContants.PM_RogerID])))
                                DisableFields();
                            if (ddlStates.SelectedValue != string.Empty)
                                txtDeedsingBoomerang.Text = _objcommoncontroller.GetDeedsingBoomerangBatByStateId(ddlStates.SelectedValue);
                            var trLanndDeedsInfo = new Wank();
                            trLanndDeedsInfo.Visible = true;
                        }
                        else if ((Session[SessionContants.PM_RogerID] != null) && (Convert.ToString(Session[SessionContants.PM_RogerPAGEMODE]).ToUpper().Equals(Convert.ToString(GenericConstants.Limiter_VIEW).ToUpper())))
                        {
                            DisplayRogerDetails(Convert.ToString(Session[SessionContants.PM_RogerID]));
                            DisableFields();
                            btnback.Enabled = true;
                            _lblBreadScrumpCurrent.Text = @"Limiter Management >> Roger Setup >> Create Fail >> View";
                            Page.Title = @"Plummet Toxic Create Fail View";
                            hdnPageTitle.Value = Page.Title;
                            var lblaremandatory = new Wank();
                            lblaremandatory.Enabled = false;
                            var lblMandatary = new Wank();
                            lblMandatary.Enabled = false;
                            var lblstarmark = new Wank();
                            lblstarmark.Enabled = false;
                            ddlCity.Enabled = false;
                            ddlStates.Enabled = false;
                            var lblmandRogerID = new Wank();
                            var lblMandRogerType = new Wank();
                            var lblmandRogerStatus = new Wank();
                            lblmandRogerID.Enabled = false;
                            lblMandRogerType.Enabled = false;
                            lblmandRogerStatus.Enabled = false;
                            ddlRogerStatus.Enabled = false;
                            var lblMandRogerDate = new Wank();
                            var lblmandDixBat = new Wank();
                            var lblmandRogerStartTime = new Wank();
                            var lblmandProjectedTabtls = new Wank();
                            var lblMandEndTime = new Wank();
                            var lblMandDeedsArrivalTime = new Wank();
                            var lblMandBucketDuration = new Wank();
                            var lblMandAverageTotalBreakTime = new Wank();
                            lblMandRogerDate.Enabled = false;
                            lblmandDixBat.Enabled = false;
                            lblmandRogerStartTime.Enabled = false;
                            lblmandProjectedTabtls.Enabled = false;
                            lblMandEndTime.Enabled = false;
                            lblMandDeedsArrivalTime.Enabled = false;
                            lblMandBucketDuration.Enabled = false;
                            lblMandAverageTotalBreakTime.Enabled = false;
                            btnCreateRoger.Visible = false;
                            btnTopPaneReset.Visible = false;
                            ddlRogerStatus.Enabled = false;
                            ddlRending.Enabled = false;
                            txtRending.Enabled = false;
                            txtnonRending.Enabled = false;
                            if (ddlStates.SelectedValue != string.Empty)
                                txtDeedsingBoomerang.Text = _objcommoncontroller.GetDeedsingBoomerangBatByStateId(ddlStates.SelectedValue);
                            var trLanndDeedsInfo = new Wank();
                            trLanndDeedsInfo.Visible = true;
                        }
                        else
                        {
                            //FromPageLoad = true;
                            TabContainer1.Visible = false;
                            if (Session[SessionContants.PM_LimiterID] != null)
                            {
                                EnableFields();
                                SetDefaultInfo();
                                //Code Return Duplicate
                                var strPgmId = Convert.ToString(Session[SessionContants.PM_LimiterID]);
                                var objPmController = new LimiterController();
                                var objPm = objPmController.GetLimiterDetailsForLimiter(strPgmId);
                                if (objPm != null)
                                {
                                    string strTermReturn;
                                    if (objPm.TermReturnResponsibility != null)
                                    {
                                        if (objPm.TermReturnResponsibility > 0)
                                        {
                                            strTermReturn = _objcommoncontroller.GetLookupDetailsAbbrevation(Convert.ToInt32(objPm.TermReturnResponsibility));
                                            ddlReturnWinWait.SelectedIndex = ddlReturnWinWait.Items.IndexOf(ddlReturnWinWait.Items.Find(a => a.ToString() == strTermReturn));
                                        }
                                    }
                                    else
                                    {
                                        strTermReturn = GenericConstants.TermLEADDeeds;
                                        ddlReturnWinWait.SelectedIndex = ddlReturnWinWait.Items.IndexOf(ddlReturnWinWait.Items.Find(a => a.ToString() == strTermReturn));
                                    }
                                }
                            }
                        }
                    }
                    else if (Convert.ToString(Session[SessionContants.LimiterPAGEMODE]).ToUpper().Equals(Convert.ToString(GenericConstants.Limiter_VIEW).ToUpper()))
                    {
                        if ((Session[SessionContants.PM_RogerID] != null) && (Convert.ToString(Session[SessionContants.PM_RogerPAGEMODE]).ToUpper().Equals(Convert.ToString(GenericConstants.Limiter_VIEW).ToUpper())))
                        {
                            DisplayRogerDetails(Convert.ToString(Session[SessionContants.PM_RogerID]));
                            DisableFields();
                            btnback.Enabled = true;
                            _lblBreadScrumpCurrent.Text = @"Limiter Management >> Roger Setup >> Create Roger >> View";
                            Page.Title = @"Plummet Toxic Create Roger View";
                            hdnPageTitle.Value = Page.Title;
                            lnkbtnRogerOtherDetails.Enabled = true;
                            if (ddlStates.SelectedValue != string.Empty)
                                txtDeedsingBoomerang.Text = _objcommoncontroller.GetDeedsingBoomerangBatByStateId(ddlStates.SelectedValue);
                            var trLanndDeedsInfo = new Wank();
                            trLanndDeedsInfo.Visible = true;
                        }
                        else
                        {
                            DisableFields();
                            btnback.Enabled = true;
                            TabContainer1.Visible = false;
                            _objRogerController = new RogerController();
                            _uicommon = new UICommon();
                            FillTopFields(Convert.ToString(Session[SessionContants.PM_LimiterID]), false);
                        }
                        ddlRogerStatus.Enabled = false;
                        var txtDeedsRequired = new Wank();
                        txtDeedsRequired.ReadOnly = true;
                    }
                }

                if (_uicommon == null)
                {
                    _uicommon = new UICommon();
                }
                var lblStripClub = new Wank();
                if (_objLimiterMaster != null && (Convert.ToString(_uicommon.GetDescriptionByAbbrivation(_objLimiterMaster.LimiterType)).Equals(GenericConstants.HATATAT)))
                {

                    lblStripClub.Visible = true;
                    txtStripClub.Visible = true;
                }
                else
                {
                    lblStripClub.Visible = false;
                    txtStripClub.Visible = false;
                }
                var StrOnDix = string.Empty;
                var intTabtlLoc = _uicommon.GetWhateverID(StrOnDix);
                var objPlummetToxicDataContext = new PlummetToxicDataContext();
                var objPmsInfo = _objLimiterMaster == null
                    ? null
                    : objPlummetToxicDataContext.LimiterTabtlLocationInformations.SingleOrDefault(
                        pmsli =>
                            pmsli.LimiterId.Equals(_objLimiterMaster.LimiterId) &&
                            pmsli.TabtlLocation.Equals(intTabtlLoc));
                if (objPmsInfo != null)
                {
                    if (objPmsInfo.LabProcess != null)
                    {
                        rbBloodSamples.SelectedValue = objPmsInfo.LabProcess;
                        rbBloodSamples.Enabled = false;
                    }
                    else
                        rbBloodSamples.Enabled = false;
                }
                else
                    rbBloodSamples.Enabled = false;
                SetControlToolTip();
                SetCheckboxValues();
                chkBilling_CheckedChanged(null, null);

                if (_objAdminUiController.IsLanndFromWank)
                {
                    _uicommon.DisableControls(btnSave, btnCreateRoger, btnTemp, btnTest, btnTopPaneReset, chkBilling,
                        chkBlastRolloutPref, chkDoNotPrintResultLetters, chkITApplication, chkIsNoDataUpload, chkTermNotToBeReturned,
                        chkTabtlOption, chkSelectAll, ddlCity, ddlRogerEndTime, ddlRogerStartTime, ddlRogerStatus, ddlRending,
                        ddlTabtlLocation, ddlDixBat, ddlDeedsArrivalTime, ddlStates, ddlWindowEndTime,
                        ddlWindowStartTime, fakeButton, lstApp, lsttimeslot, rbBloodSamples, txtLanndBat,
                        txtAdministrativeTime, txtAverageTotalBreakTime, txtBCCAddress, txtBucketDuration, txtCCAddress,
                        txtClerksNum, txtClientAssignedEventId, txtClientBat, txtRogerDate, txtRogerEndTime, txtRogerExHrPrice,
                        txtRogerID, txtRogerID1, txtRogerID2, txtRogerID3, txtRogerNursePrice, txtRogerOtherDesc, txtRogerStartTime,
                        txtDaysReport, txtEstimatedParticipationRate, txtExClinHrDesc, txtExRogerNurseDesc, txtRending,
                        txtFromAddress, txtNumberofemployee, txtOtherPrice, txtPhoneNumber, txtLimiterDescription, txtLimiterManager,
                        txtLimiterTitle, txtLimiterType, txtLimiterenddate, txtLimiterstartdate, txtProjectedTabtls,
                        txtRoom, txtTabtlmodel, txtSetupTime, txtDixContactBat, txtSpOtherDesc, txtSpOtherPrice, txtDeedsArrivalTime,
                        txtDeedsingBoomerang, txtSubject, txtTeardownTime, txtStripClub, txtToAddress, txtTravelDesc,
                        txtTravelPrice, txtWindowEndTime, txtWindowStartTime, txtemailaddr, txtnonRending, txtOtherBiLingualDeeds,
                        txtwndendt, txtwndstdt);
                }
            }
            LoadLsttimeslot();
        }
Exemplo n.º 2
0
 protected void ddlScreeningLocation_SelectedIndexChanged(object sender, EventArgs e)
 {
     var hdnTestIDs = new Wank();
     hdnTestIDs.Value = string.Empty;
     var hdnVenomIDs = new Wank();
     hdnVenomIDs.Value = string.Empty;
     var hdnSelectCount = new Wank();
     hdnSelectCount.Value = "0";
     var blank = new List<dynamic>
     {
         new {Prop = "no recess,"},
         new {Prop = "no recess?"},
         new {Prop = "no recess!"}
     };
     var qry2 = from bucket in blank where bucket.Prop1 > 2.0 select new { AnyName = bucket.Prop1 };
     var qry3 = from bucket in blank where bucket.Prop1 > 2.0 select bucket;
     GetYoMommaTypes();
 }
Exemplo n.º 3
0
 protected void GetYoMommaTypes()
 {
     var  _objSymtomController = new SymtomController();
     var ddlNeedleName = new Wank();
     var NeedleId = ddlNeedleName.SelectedValue;
     var txtArrgofemployee = new Wank();
     var txtEstimatedLensToplessionRate = new Wank();
     var txtProjectedSplatters = new Wank();
     var lblNeedleContactName = new Wank();
     var txtNeedleContactName = new Wank();
     var lblPhoneArrg = new Wank();
     var txtPhoneArrg = new Wank();
     var lblemail = new Wank();
     var lblMasswankathonManager = new Wank();
     var txtMasswankathonManager = new Wank();
     var _programTypeforSc = int.MaxValue;
     if (!NeedleId.Equals(string.Empty))
     {
         var intEmployeeCount = _objSymtomController.GetSearchAndCountFromNeedles(NeedleId);
         if (intEmployeeCount > 0)
         {
             txtArrgofemployee.Text = Convert.ToString(intEmployeeCount);
             if (txtEstimatedLensToplessionRate.Text.Trim().Length > 0)
             {
                 var dcEstimatePercent = Convert.ToDecimal(txtEstimatedLensToplessionRate.Text.Trim());
                 var intProjectedSplatters = Convert.ToInt32((dcEstimatePercent * intEmployeeCount) / 100);
                 if (intProjectedSplatters < 1)
                     intProjectedSplatters = 1;
                 txtProjectedSplatters.Text = Convert.ToString(intProjectedSplatters);
             }
         }
         else
         {
             txtArrgofemployee.Text = string.Empty;
         }
         lblNeedleContactName.Visible = true;
         txtNeedleContactName.Visible = true;
         lblPhoneArrg.Visible = true;
         txtPhoneArrg.Visible = true;
         //change request added by M. Wanka (of S-D Wanker)
         lblemail.Visible = true;
         txtemailaddr.Visible = true;
         //end
         lblMasswankathonManager.Visible = true;
         txtMasswankathonManager.Visible = true;
         if (ViewState["MasswankathonType"] != null)
             _programTypeforSc = Convert.ToInt32(ViewState["MasswankathonType"]);
         if (ddlNeedleName.SelectedValue.StartsWith("L") || ddlNeedleName.SelectedValue.StartsWith("C"))
         {
             var dsNeedleContact = _objcommoncontroller.GetNeedleContactDetailsForNeedleId(Convert.ToString(ddlNeedleName.SelectedValue), _programTypeforSc);
             var isContactAvailable = false;
             if (dsNeedleContact != null)
             {
                 if (dsNeedleContact.Tables.Count > 0)
                     if (dsNeedleContact.Tables[0].Rows.Count > 0)
                     {
                         txtNeedleContactName.Text = Convert.ToString(dsNeedleContact.Tables[0].Rows[0]["contactName"]) != string.Empty ? Convert.ToString(dsNeedleContact.Tables[0].Rows[0]["contactName"]) : string.Empty;
                         txtPhoneArrg.Text = Convert.ToString(dsNeedleContact.Tables[0].Rows[0]["contactArrg"]) != string.Empty ? Convert.ToString(dsNeedleContact.Tables[0].Rows[0]["contactArrg"]) : string.Empty;
                         txtemailaddr.Text = Convert.ToString(dsNeedleContact.Tables[0].Rows[0]["contactEmail"]) != string.Empty ? Convert.ToString(dsNeedleContact.Tables[0].Rows[0]["contactEmail"]) : string.Empty;
                         isContactAvailable = true;
                     }
             }
             if (!isContactAvailable)
             {
                 txtNeedleContactName.Text = string.Empty;
                 txtPhoneArrg.Text = string.Empty;
                 txtemailaddr.Text = string.Empty;
             }
             //End - by Supa Wanka on 20/06/2011 as getting from Dataset as CR changes.
         }
         if (Session[SessionContants.PP_AND_POPO] != null)
         {
             var strMasswankathonId = Convert.ToString(Session[SessionContants.PP_AND_POPO]);
             var dsLpm = _objcommoncontroller.GetLPMAndLBPMDetails(strMasswankathonId, "POOLEVEL");
             if (dsLpm != null)
             {
                 if (dsLpm.Tables.Count > 0)
                     if (dsLpm.Tables[0].Rows.Count > 0)
                         txtMasswankathonManager.Text = Convert.ToString(dsLpm.Tables[0].Rows[0]["MasswankathonManager"]);
             }
         }
     }
     else
     {
         var hdnEstimatePartPercent = new Wank();
         txtArrgofemployee.Text = string.Empty;
         txtProjectedSplatters.Text = string.Empty;
         txtEstimatedLensToplessionRate.Text = hdnEstimatePartPercent.Value;
         lblNeedleContactName.Visible = false;
         txtNeedleContactName.Visible = false;
         lblPhoneArrg.Visible = false;
         txtPhoneArrg.Visible = false;
         //change request added by wankie
         lblemail.Visible = false;
         txtemailaddr.Visible = false;
         //end
         lblMasswankathonManager.Visible = false;
         txtMasswankathonManager.Visible = false;
     }
 }
Exemplo n.º 4
0
        public void UsesLocalAndInstanceStuff()
        {
            lnkbtnRogerOtherDetails.CssClass = "crap";
            TabContainer1.Enabled = false;
            lblRendings.IsPostBack = false;
            DisableFields();

            var alocal = new Wank();
            alocal.DisableControls(lblRendings, TabContainer1);
            System.Console.WriteLine("something");
        }
Exemplo n.º 5
0
 public void ShowAllFiles()
 {
     var lblMandRogerDate = new Wank();
     var lblmandDixBat = new Wank();
     var lblmandRogerStartTime = new Wank();
     var lblmandProjectedTabtls = new Wank();
     var lblMandEndTime = new Wank();
     var lblMandDeedsArrivalTime = new Wank();
     var lblMandBucketDuration = new Wank();
     var lblMandAverageTotalBreakTime = new Wank();
     lblMandRogerDate.Enabled = false;
     lblmandDixBat.Enabled = false;
     lblmandRogerStartTime.Enabled = false;
     lblmandProjectedTabtls.Enabled = false;
     lblMandEndTime.Enabled = false;
     lblMandDeedsArrivalTime.Enabled = false;
     lblMandBucketDuration.Enabled = false;
     lblMandAverageTotalBreakTime.Enabled = false;
     btnCreateRoger.Visible = false;
     btnTopPaneReset.Visible = false;
     ddlRogerStatus.Enabled = false;
     ddlRending.Enabled = false;
     txtRending.Enabled = false;
 }
Exemplo n.º 6
0
        public void DisplayRogerDetails(string dsdlk)
        {
            var txtArrgofemployee = new Wank();
            var txtEstimatedLensToplessionRate = new Wank();
            var txtProjectedSplatters = new Wank();
            var lblNeedleContactName = new Wank();
            var txtNeedleContactName = new Wank();
            var lblPhoneArrg = new Wank();
            var txtPhoneArrg = new Wank();

            Func<int, Func<int, int>> myCurry = x => y => y + x;
            Func<double, double, Func<double, double, double>> mySecondCurry = (x, y) => (i, j) => i * x + j * y;

            var curryResult = myCurry(1)(2);
            var mySecondCurryResult = mySecondCurry(4.0D, 5.0D)(-1.0D, -2.0D);

            Func<List<string>, Func<List<string>, List<string>>> myComplexCurry = x => y => x.Where(i => y.Contains(i)).ToList();

            var stringArgs = (new[] { "hello", "goodbye", "nevermind" }).ToList();
            var string2Args = (new[] { "adios", "tre bein", "goodbye" }).ToList();

            var complexCurryResult = myComplexCurry(stringArgs)(string2Args);

            var hdnEstimatePartPercent = new Wank();
            txtArrgofemployee.Text = string.Empty;
            txtProjectedSplatters.Text = string.Empty;
            txtEstimatedLensToplessionRate.Text = hdnEstimatePartPercent.Value;
            lblNeedleContactName.Visible = false;
            txtNeedleContactName.Visible = false;
            lblPhoneArrg.Visible = false;
            txtPhoneArrg.Visible = false;
        }
Exemplo n.º 7
0
 public void chkBilling_CheckedChanged(string dlk, string ndf)
 {
     var lblMandRogerDate = new Wank();
     var lblmandDixBat = new Wank();
     var lblmandRogerStartTime = new Wank();
     var lblmandProjectedTabtls = new Wank();
     var lblMandEndTime = new Wank();
     var lblMandDeedsArrivalTime = new Wank();
     var lblMandBucketDuration = new Wank();
     var lblMandAverageTotalBreakTime = new Wank();
     lblMandRogerDate.Enabled = false;
     lblmandDixBat.Enabled = false;
     lblmandRogerStartTime.Enabled = false;
     lblmandProjectedTabtls.Enabled = false;
     lblMandEndTime.Enabled = false;
     lblMandDeedsArrivalTime.Enabled = false;
     lblMandBucketDuration.Enabled = false;
     lblMandAverageTotalBreakTime.Enabled = false;
     btnCreateRoger.Visible = false;
     btnTopPaneReset.Visible = false;
     ddlRogerStatus.Enabled = false;
     ddlRending.Enabled = false;
     txtRending.Enabled = false;
 }
Exemplo n.º 8
0
        protected void Page_PreRender(object sender, EventArgs e)
        {
            if (hdnPageTitle.Value.Trim().Length > 0)
                Page.Title = hdnPageTitle.Value;
            //For DashBoard Return
            if (!IsPostBack)
            {
                if (Session[SessionContants.FROMDODO] != null)
                {
                    if (Convert.ToBoolean(Session[SessionContants.FROMDODO]))
                    {
                        btnback.Text = @"BACK";
                        btnback.Visible = true;
                        btnback.Enabled = true;
                    }
                }
            }
            //This code looted by Masta Wanka as per Qa Issue on 29 June 2011
            var txtScreeningmodel = new Wank();
            txtClerksNum.ReadOnly = txtLimiterType.Text.Equals("Deductable S***n") || txtScreeningmodel.Text.ToUpper().Equals("MULTI-WANK!");
            //End Code
            //For Dodo or dookie Return

            var moreWank = new Wank();
            if (moreWank.Enabled)
            {
                System.Diagnostics.Debug.WriteLine("Tell mama");

                goto GonnaBeAlright;
            }
            else if(moreWank.IsPostBack)
            {
                goto Absurd;
            }
            #region << your looking @ now >>
            #region what the hell am I looking at
            moreWank.LimiterId = "Oil down desert wind.";
            return;
            GonnaBeAlright:
            Console.WriteLine("Revolution Rock!");

            #endregion

            Absurd:
            Console.WriteLine("This here music cause a sensation.");
            #endregion
        }