/// <summary> /// Projects the curve onto the specified plane at the specified position on the plane. /// </summary> /// <param name="plane">The plane onto which to project the curve.</param> /// <param name="positionOnPlane">The position on the plane at which to project the curve.</param> public void ProjectOntoPlane(Planes plane, MM positionOnPlane) { // Determine the axis string axis = ""; switch (plane) { case Planes.XY: axis = "Z"; break; case Planes.ZX: axis = "Y"; break; case Planes.YZ: axis = "X"; break; } // Select the curve AddToSelection(true); // Do the projection _powerSHAPE.DoCommand("EDIT PROJECT", "ALONG_" + axis, "DISTANCE " + positionOnPlane.ToString("0.######"), "KEEP_COPY OFF", "ACCEPT"); }
public void GenerateKesimpulan(int riskTerjadi) { textNamaPekerjaan.text = rc.textJudulTahap.text.ToString(); dana = 0; contingency = 0; total = 0; sisa = 0; danaRespon = 0; //riskTerjadi -= 1; /**if (newRisk != null) { * Destroy (newRisk.gameObject); * } * * if (risikoTerjadiUtama != null) { * Destroy (risikoTerjadiUtama.gameObject); * }*/ if (panelRisiko.transform.childCount > 0) { for (int i = 0; i < panelRisiko.transform.childCount; i++) { Transform child = panelRisiko.transform.GetChild(i); //child.parent = null; Destroy(child.gameObject); } } Debug.Log("Risk Terjadi = " + riskTerjadi); //if (riskTerjadi == 0) { // SetText (riskTerjadi, 0); //ini nggak kepake //} else { // SetText (0, 0); //ini nggak kepake for (int i = 1; i <= riskTerjadi; i++) { newRisk = Instantiate(prefabRisiko, panelRisiko.transform); SetPrefabText(rc.angkaRisiko[i - 1], i - 1); } //} danaRespon = rc.totalDana; textDanaRespon.text = danaRespon.ToString("N0", new CultureInfo("id-ID")); contingency = rc.danaTersedia; textContingency.text = contingency.ToString("N0", new CultureInfo("id-ID")); textTotal.text = total.ToString("N0", new CultureInfo("id-ID")); sisa = contingency - danaRespon - total; textSisa.text = sisa.ToString("N0", new CultureInfo("id-ID")); durasi = rc.estimasi; textDurasi.text = durasi.ToString(); estimasi = durasi - rc.DampakHariGame; textEstimasi.text = estimasi.ToString(); GenerateRisikoTerpilih(); textK3.text = K3.ToString(); textMM.text = MM.ToString(); }
public MM RangeField(string label, MM range, float scale) { MM v = new MM(range.ToString()); BeginHorizontal("box"); FixedLabel(label); v.min = EditorGUILayout.FloatField(range.min, Width(fieldWidth * scale / 2f)); FixedLabel("-"); v.max = EditorGUILayout.FloatField(range.max, Width(fieldWidth * scale / 2f)); EndHorizontal(); changed = changed || (checkChanges && (!v.Equals(range))); return(v); }
/// <summary> /// Reduces the Mesh maintaining the specified tolerance /// </summary> /// <param name="tolerace">Tolerance to maintain during reduction</param> /// <param name="limitTriangleEdgeLength">Whether or not to limit the length of edges</param> /// <param name="maximumEdgeLength">The maximum edge length to reduce to. Only applies if limitTriangleEdgeLength is true</param> public void ReduceToTolerance(double tolerace, bool limitTriangleEdgeLength, MM maximumEdgeLength) { // Select the mesh AddToSelection(true); // Then reduce it _powerSHAPE.DoCommand("REDUCE", "REDUCETO TOLERANCE", "TOLERANCE " + tolerace.ToString("0.######")); if (limitTriangleEdgeLength) { _powerSHAPE.DoCommand("MAXEDGELENGTH ON", "MAXEDGELENGTH " + maximumEdgeLength.ToString("0.######")); } else { _powerSHAPE.DoCommand("MAXEDGELENGTH OFF"); } _powerSHAPE.DoCommand("ACCEPT"); }
static string convertSecDateToStr(long ansInSec) { long DD, MM, YY, hh, mm, ss; YY = ansInSec / (12 * 30 * 24 * 60 * 60); ansInSec = ansInSec % (12 * 30 * 24 * 60 * 60); MM = ansInSec / (30 * 24 * 60 * 60); ansInSec = ansInSec % (30 * 24 * 60 * 60); DD = ansInSec / (24 * 60 * 60); ansInSec = ansInSec % (24 * 60 * 60); hh = ansInSec / (60 * 60); ansInSec = ansInSec % (60 * 60); mm = ansInSec / (60); ansInSec = ansInSec % (60); ss = ansInSec; return(DD.ToString() + ":" + MM.ToString() + ":" + YY.ToString() + ":" + hh.ToString() + ":" + mm.ToString() + ":" + ss.ToString()); }
/// <summary> /// Возращает (String) дату события гггг.мм.дд /// </summary> /// <returns></returns> public string DateString() { return(GG.ToString("0000") + "." + MM.ToString("00") + "." + DD.ToString("00")); }
/// <summary> /// Возращает (String) дату и время события гггг.мм.дд.чч.мм.сс.мм.мм.нн /// </summary> /// <returns></returns> public string DateTimeString() { return(GG.ToString("0000") + "." + MM.ToString("00") + "." + DD.ToString("00") + "." + HH.ToString("00") + "." + Min.ToString("00") + "." + CC.ToString("00") + "." + Mil.ToString("00") + "." + ML.ToString("00") + "." + NN.ToString("00")); }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { RptName = Request.QueryString["rptname"].ToString(); #region Report name Conditions if (RptName == "RptDemandSummary.rdlc") { if (Request.QueryString["FL"] != null) { FL = Request.QueryString["FL"].ToString().Replace("%27", ""); } if (Request.QueryString["FBRCD"] != null) { FBRCD = Request.QueryString["FBRCD"].ToString().Replace("%27", ""); } if (Request.QueryString["TBRCD"] != null) { TBRCD = Request.QueryString["TBRCD"].ToString().Replace("%27", ""); } if (Request.QueryString["ASONDATE"] != null) { ASONDT = Request.QueryString["ASONDATE"].ToString().Replace("%27", ""); } if (Request.QueryString["MM"] != null) { MM = Request.QueryString["MM"].ToString().Replace("%27", ""); } if (Request.QueryString["YY"] != null) { YY = Request.QueryString["YY"].ToString().Replace("%27", ""); } } if (RptName == "RptRecoveryStatement_Total.rdlc") { if (Request.QueryString["BRCD"] != null) { BRCD = Request.QueryString["BRCD"].ToString().Replace("%27", ""); } if (Request.QueryString["UID"] != null) { UID = Request.QueryString["UID"].ToString().Replace("%27", ""); } if (Request.QueryString["ASONDATE"] != null) { ASONDT = Request.QueryString["ASONDATE"].ToString().Replace("%27", ""); } if (Request.QueryString["RECDIV"] != null) { RECDIV = Request.QueryString["RECDIV"].ToString().Replace("%27", ""); } if (Request.QueryString["RECCODE"] != null) { RECCODE = Request.QueryString["RECCODE"].ToString().Replace("%27", ""); } if (Request.QueryString["MM"] != null) { MM = Request.QueryString["MM"].ToString().Replace("%27", ""); } if (Request.QueryString["YY"] != null) { YY = Request.QueryString["YY"].ToString().Replace("%27", ""); } } if (RptName == "RptDemandDetails.rdlc") { if (Request.QueryString["FL"] != null) { FL = Request.QueryString["FL"].ToString().Replace("%27", ""); } if (Request.QueryString["FBRCD"] != null) { FBRCD = Request.QueryString["FBRCD"].ToString().Replace("%27", ""); } if (Request.QueryString["TBRCD"] != null) { TBRCD = Request.QueryString["TBRCD"].ToString().Replace("%27", ""); } if (Request.QueryString["ASONDATE"] != null) { ASONDT = Request.QueryString["ASONDATE"].ToString().Replace("%27", ""); } if (Request.QueryString["MM"] != null) { MM = Request.QueryString["MM"].ToString().Replace("%27", ""); } if (Request.QueryString["YY"] != null) { YY = Request.QueryString["YY"].ToString().Replace("%27", ""); } } if (RptName == "RptLrAndNr.rdlc") { if (Request.QueryString["FL"] != null) { FL = Request.QueryString["FL"].ToString().Replace("%27", ""); } if (Request.QueryString["BRCD"] != null) { BRCD = Request.QueryString["BRCD"].ToString().Replace("%27", ""); } if (Request.QueryString["ASONDATE"] != null) { ASONDT = Request.QueryString["ASONDATE"].ToString().Replace("%27", ""); } if (Request.QueryString["RECDIV"] != null) { RECDIV = Request.QueryString["RECDIV"].ToString().Replace("%27", ""); } if (Request.QueryString["RECCODE"] != null) { RECCODE = Request.QueryString["RECCODE"].ToString().Replace("%27", ""); } if (Request.QueryString["MM"] != null) { MM = Request.QueryString["MM"].ToString().Replace("%27", ""); } if (Request.QueryString["YY"] != null) { YY = Request.QueryString["YY"].ToString().Replace("%27", ""); } if (Request.QueryString["RECFOR"] != null) { RECFOR = Request.QueryString["RECFOR"].ToString().Replace("%27", ""); } } if (RptName == "RptRecoveryStatement.rdlc" || RptName == "RptRecoveryStatement_1009.rdlc" || RptName == "RptRecoveryStatement_1010.rdlc" || RptName == "RptRecoveryStatement_ALL.rdlc") { if (Request.QueryString["FL"] != null) { FL = Request.QueryString["FL"].ToString().Replace("%27", ""); } if (Request.QueryString["BRCD"] != null) { BRCD = Request.QueryString["BRCD"].ToString().Replace("%27", ""); } if (Request.QueryString["UID"] != null) { UID = Request.QueryString["UID"].ToString().Replace("%27", ""); } if (Request.QueryString["ASONDATE"] != null) { ASONDT = Request.QueryString["ASONDATE"].ToString().Replace("%27", ""); } if (Request.QueryString["RECDIV"] != null) { RECDIV = Request.QueryString["RECDIV"].ToString().Replace("%27", ""); } if (Request.QueryString["RECCODE"] != null) { RECCODE = Request.QueryString["RECCODE"].ToString().Replace("%27", ""); } if (Request.QueryString["MM"] != null) { MM = Request.QueryString["MM"].ToString().Replace("%27", ""); } if (Request.QueryString["YY"] != null) { YY = Request.QueryString["YY"].ToString().Replace("%27", ""); } if (Request.QueryString["RECFOR"] != null) { RECFOR = Request.QueryString["RECFOR"].ToString().Replace("%27", ""); } } if (RptName == "RptExRecBeforePost.rdlc") { if (Request.QueryString["REPTYPE"] != null) { REPTYPE = Request.QueryString["REPTYPE"].ToString().Replace("%27", ""); } if (Request.QueryString["BKCD"] != null) { BKCD = Request.QueryString["BKCD"].ToString().Replace("%27", ""); } if (Request.QueryString["FL"] != null) { FL = Request.QueryString["FL"].ToString().Replace("%27", ""); } if (Request.QueryString["SFL"] != null) { SFL = Request.QueryString["SFL"].ToString().Replace("%27", ""); } if (Request.QueryString["BRCD"] != null) { BRCD = Request.QueryString["BRCD"].ToString().Replace("%27", ""); } if (Request.QueryString["UID"] != null) { UID = Request.QueryString["UID"].ToString().Replace("%27", ""); } if (Request.QueryString["ASONDATE"] != null) { ASONDT = Request.QueryString["ASONDATE"].ToString().Replace("%27", ""); } if (Request.QueryString["RECDIV"] != null) { RECDIV = Request.QueryString["RECDIV"].ToString().Replace("%27", ""); } if (Request.QueryString["RECCODE"] != null) { RECCODE = Request.QueryString["RECCODE"].ToString().Replace("%27", ""); } if (Request.QueryString["MM"] != null) { MM = Request.QueryString["MM"].ToString().Replace("%27", ""); } if (Request.QueryString["YY"] != null) { YY = Request.QueryString["YY"].ToString().Replace("%27", ""); } if (Request.QueryString["RECFOR"] != null) { RECFOR = Request.QueryString["RECFOR"].ToString().Replace("%27", ""); } } if (RptName == "RptRecoveryAfterPost.rdlc") { if (Request.QueryString["FL"] != null) { FL = Request.QueryString["FL"].ToString().Replace("%27", ""); } if (Request.QueryString["BRCD"] != null) { BRCD = Request.QueryString["BRCD"].ToString().Replace("%27", ""); } if (Request.QueryString["UID"] != null) { UID = Request.QueryString["UID"].ToString().Replace("%27", ""); } if (Request.QueryString["ASONDATE"] != null) { ASONDT = Request.QueryString["ASONDATE"].ToString().Replace("%27", ""); } if (Request.QueryString["RECDIV"] != null) { RECDIV = Request.QueryString["RECDIV"].ToString().Replace("%27", ""); } if (Request.QueryString["RECCODE"] != null) { RECCODE = Request.QueryString["RECCODE"].ToString().Replace("%27", ""); } if (Request.QueryString["MM"] != null) { MM = Request.QueryString["MM"].ToString().Replace("%27", ""); } if (Request.QueryString["YY"] != null) { YY = Request.QueryString["YY"].ToString().Replace("%27", ""); } if (Request.QueryString["RECFOR"] != null) { RECFOR = Request.QueryString["RECFOR"].ToString().Replace("%27", ""); } } if (RptName == "RptPTRegister.rdlc") { if (Request.QueryString["FL"] != null) { FL = Request.QueryString["FL"].ToString().Replace("%27", ""); } if (Request.QueryString["BRCD"] != null) { BRCD = Request.QueryString["BRCD"].ToString().Replace("%27", ""); } if (Request.QueryString["UID"] != null) { UID = Request.QueryString["UID"].ToString().Replace("%27", ""); } if (Request.QueryString["MM"] != null) { MM = Request.QueryString["MM"].ToString().Replace("%27", ""); } if (Request.QueryString["ASONDATE"] != null) { ASONDT = Request.QueryString["ASONDATE"].ToString().Replace("%27", ""); } if (Request.QueryString["YY"] != null) { YY = Request.QueryString["YY"].ToString().Replace("%27", ""); } if (Request.QueryString["BANKCD"] != null) { BKCD = Request.QueryString["BANKCD"].ToString().Replace("%27", ""); } if (Request.QueryString["Div"] != null) { Div = Request.QueryString["Div"].ToString().Replace("%27", ""); } if (Request.QueryString["Dep"] != null) { Dep = Request.QueryString["Dep"].ToString().Replace("%27", ""); } } #endregion #region Calling Function DataSet thisDataSet = new DataSet(); DataSet thisDataSet1 = new DataSet(); if (RptName == "RptDemandSummary.rdlc") { thisDataSet = GetDemandRep(FL, FBRCD, TBRCD, MM, YY); if (thisDataSet == null || thisDataSet.Tables[0].Rows.Count == 0) { WebMsgBox.Show("Sorry No Record found......!!", this.Page); ClientScript.RegisterStartupScript(typeof(Page), "closePage", "window.close();", true); return; } } if (RptName == "RptDemandDetails.rdlc") { thisDataSet = GetDemandRep(FL, FBRCD, TBRCD, MM, YY); if (thisDataSet == null || thisDataSet.Tables[0].Rows.Count == 0) { WebMsgBox.Show("Sorry No Record found......!!", this.Page); ClientScript.RegisterStartupScript(typeof(Page), "closePage", "window.close();", true); return; } } if (RptName == "RptLrAndNr.rdlc") { thisDataSet = GetLrAndNr(BRCD, RECDIV, RECCODE, MM, YY); if (thisDataSet == null || thisDataSet.Tables[0].Rows.Count == 0) { WebMsgBox.Show("Sorry No Record found......!!", this.Page); ClientScript.RegisterStartupScript(typeof(Page), "closePage", "window.close();", true); return; } } // RptRecoveryStatement if (RptName == "RptRecoveryStatement.rdlc") { thisDataSet = GetRecoveryStatRep(BRCD, RECDIV, RECCODE, MM, YY); if (thisDataSet == null || thisDataSet.Tables[0].Rows.Count == 0) { WebMsgBox.Show("Sorry No Record found......!!", this.Page); ClientScript.RegisterStartupScript(typeof(Page), "closePage", "window.close();", true); return; } } if (RptName == "RptRecoveryStatement_1010.rdlc") { thisDataSet = GetRecoveryStatRep(BRCD, RECDIV, RECCODE, MM, YY); if (thisDataSet == null || thisDataSet.Tables[0].Rows.Count == 0) { WebMsgBox.Show("Sorry No Record found......!!", this.Page); ClientScript.RegisterStartupScript(typeof(Page), "closePage", "window.close();", true); return; } } if (RptName == "RptExRecBeforePost.rdlc") { thisDataSet = GetRecoveryExRep(FL, SFL, BRCD, RECDIV, RECCODE, MM, YY); if (thisDataSet == null || thisDataSet.Tables[0].Rows.Count == 0) { WebMsgBox.Show("Sorry No Record found......!!", this.Page); ClientScript.RegisterStartupScript(typeof(Page), "closePage", "window.close();", true); return; } } if (RptName == "RptRecoveryStatement_1009.rdlc" || RptName == "RptRecoveryStatement_ALL.rdlc") { thisDataSet = GetRecoveryStatRep_1009(BRCD, RECDIV, RECCODE, MM, YY); if (thisDataSet == null || thisDataSet.Tables[0].Rows.Count == 0) { WebMsgBox.Show("Sorry No Record found......!!", this.Page); ClientScript.RegisterStartupScript(typeof(Page), "closePage", "window.close();", true); return; } } // RptRecoveryStatement if (RptName == "RptRecoveryAfterPost.rdlc") { thisDataSet = GetRecoveryAftrePost(BRCD, RECDIV, RECCODE, MM, YY); if (thisDataSet == null || thisDataSet.Tables[0].Rows.Count == 0) { WebMsgBox.Show("Sorry No Record found......!!", this.Page); ClientScript.RegisterStartupScript(typeof(Page), "closePage", "window.close();", true); return; } } if (RptName == "RptRecoveryStatement_Total.rdlc") { thisDataSet = PT.GetRecoveryStatement_Total(ASONDT, BRCD, MM, YY, BKCD, Div, Dep); if (thisDataSet == null || thisDataSet.Tables[0].Rows.Count == 0) { WebMsgBox.Show("Sorry There Is No Record...!!", this.Page); ClientScript.RegisterStartupScript(typeof(Page), "closePage", "window.close();", true); return; } } if (RptName == "RptPTRegister.rdlc") { thisDataSet1 = PT.GetPtRegister(FL, ASONDT, BRCD, MM, YY, BKCD, Div, Dep); if (thisDataSet1 == null || thisDataSet1.Tables[0].Rows.Count == 0) { WebMsgBox.Show("Sorry There Is No Record...!!", this.Page); ClientScript.RegisterStartupScript(typeof(Page), "closePage", "window.close();", true); return; } } #endregion #region Report Parameter ReportDataSource DataSource = new ReportDataSource("ReportDS", thisDataSet.Tables["Table1"]); ReportDataSource DataSource1 = new ReportDataSource("ReportDS1", thisDataSet1.Tables["Table1"]); RdlcPrint.LocalReport.ReportPath = Server.MapPath("~/" + RptName + ""); RdlcPrint.LocalReport.DataSources.Clear(); RdlcPrint.LocalReport.DataSources.Add(DataSource); if (RptName == "RptBalanceS.rdlc") { RdlcPrint.LocalReport.DataSources.Add(DataSource); RdlcPrint.LocalReport.DataSources.Add(DataSource1); } if (RptName == "RptDlyCshPosWDenom.rdlc") { RdlcPrint.LocalReport.DataSources.Add(DataSource); RdlcPrint.LocalReport.DataSources.Add(DataSource1); } RdlcPrint.LocalReport.Refresh(); DataTable DT = new DataTable(); DT = LG.GetBankName(Session["BRCD"].ToString()); if (DT.Rows.Count > 0) { BkName = DT.Rows[0]["BankName"].ToString(); BrName = DT.Rows[0]["BranchName"].ToString(); } if (RptName == "RptDemandSummary.rdlc") { RptName = "Recovery DemandSummary"; ReportParameter rp1 = new ReportParameter("BANK_NAME", BkName.ToString()); ReportParameter rp2 = new ReportParameter("BRANCH_NAME", BrName.ToString()); ReportParameter rp3 = new ReportParameter("USER_NAME", Session["LOGINCODE"].ToString()); ReportParameter rp6 = new ReportParameter("YYYY", YY.ToString()); ReportParameter rp7 = new ReportParameter("MM", MM.ToString()); RdlcPrint.LocalReport.SetParameters(new ReportParameter[] { rp1, rp2, rp3, rp6, rp7 }); } if (RptName == "RptDemandDetails.rdlc") { RptName = "Recovery DemandDetails"; ReportParameter rp1 = new ReportParameter("BANK_NAME", BkName.ToString()); ReportParameter rp2 = new ReportParameter("BRANCH_NAME", BrName.ToString()); ReportParameter rp3 = new ReportParameter("USER_NAME", Session["LOGINCODE"].ToString()); ReportParameter rp6 = new ReportParameter("YYYY", YY.ToString()); ReportParameter rp7 = new ReportParameter("MM", MM.ToString()); RdlcPrint.LocalReport.SetParameters(new ReportParameter[] { rp1, rp2, rp3, rp6, rp7 }); } if (RptName == "RptLrAndNr.rdlc") { RptName = "Recovery Lr and Nr"; ReportParameter rp1 = new ReportParameter("BANK_NAME", BkName.ToString()); ReportParameter rp2 = new ReportParameter("BRANCH_NAME", BrName.ToString()); ReportParameter rp3 = new ReportParameter("USER_NAME", Session["LOGINCODE"].ToString()); ReportParameter rp4 = new ReportParameter("AS_ON_DATE", ASONDT.ToString()); ReportParameter rp5 = new ReportParameter("REC_FOR", RECFOR.ToString()); ReportParameter rp6 = new ReportParameter("YYYY", YY.ToString()); ReportParameter rp7 = new ReportParameter("MM", MM.ToString()); RdlcPrint.LocalReport.SetParameters(new ReportParameter[] { rp1, rp2, rp3, rp5, rp4, rp6, rp7 }); } if (RptName == "RptRecoveryStatement_Total.rdlc") { fileName = "Recovery Statement"; if (RptName == "RptRecoveryStatement_Total.rdlc") { RptName = "Recovery Statement"; ReportParameter rp1 = new ReportParameter("BANK_NAME", BkName.ToString()); ReportParameter rp2 = new ReportParameter("BRANCH_NAME", BrName.ToString()); ReportParameter rp3 = new ReportParameter("USER_NAME", UID.ToString()); ReportParameter rp4 = new ReportParameter("AS_ON_DATE", ASONDT.ToString()); ReportParameter rp5 = new ReportParameter("YYYY", YY.ToString()); ReportParameter rp6 = new ReportParameter("MM", MM.ToString()); RdlcPrint.LocalReport.SetParameters(new ReportParameter[] { rp1, rp2, rp3, rp4, rp5, rp6 }); } } if (RptName == "RptRecoveryAfterPost.rdlc") { fileName = "Recovery After Post"; if (RptName == "RptRecoveryAfterPost.rdlc") { RptName = "Recovery Statement"; ReportParameter rp1 = new ReportParameter("BANK_NAME", BkName.ToString()); ReportParameter rp2 = new ReportParameter("BRANCH_NAME", BrName.ToString()); ReportParameter rp3 = new ReportParameter("USER_NAME", UID.ToString()); ReportParameter rp4 = new ReportParameter("AS_ON_DATE", ASONDT.ToString()); ReportParameter rp5 = new ReportParameter("REC_FOR", RECFOR.ToString()); ReportParameter rp6 = new ReportParameter("YYYY", YY.ToString()); ReportParameter rp7 = new ReportParameter("MM", MM.ToString()); ReportParameter rp8 = new ReportParameter("REPORT_NAME", FL.ToString()); RdlcPrint.LocalReport.SetParameters(new ReportParameter[] { rp1, rp2, rp3, rp4, rp5, rp6, rp7, rp8 }); } } if (RptName == "RptRecoveryStatement.rdlc") { fileName = "Recovery Statement"; if (RptName == "RptRecoveryStatement.rdlc") { RptName = "Recovery Statement"; ReportParameter rp1 = new ReportParameter("BANK_NAME", BkName.ToString()); ReportParameter rp2 = new ReportParameter("BRANCH_NAME", BrName.ToString()); ReportParameter rp3 = new ReportParameter("USER_NAME", UID.ToString()); ReportParameter rp4 = new ReportParameter("AS_ON_DATE", ASONDT.ToString()); ReportParameter rp5 = new ReportParameter("REC_FOR", RECFOR.ToString()); ReportParameter rp6 = new ReportParameter("YYYY", YY.ToString()); ReportParameter rp7 = new ReportParameter("MM", MM.ToString()); ReportParameter rp8 = new ReportParameter("REPORT_NAME", FL.ToString()); RdlcPrint.LocalReport.SetParameters(new ReportParameter[] { rp1, rp2, rp3, rp4, rp5, rp6, rp7, rp8 }); } } if (RptName == "RptRecoveryStatement_1010.rdlc") { fileName = "Recovery Statement"; if (RptName == "RptRecoveryStatement_1010.rdlc") { RptName = "Recovery Statement"; ReportParameter rp1 = new ReportParameter("BANK_NAME", BkName.ToString()); ReportParameter rp2 = new ReportParameter("BRANCH_NAME", BrName.ToString()); ReportParameter rp3 = new ReportParameter("USER_NAME", UID.ToString()); ReportParameter rp4 = new ReportParameter("AS_ON_DATE", ASONDT.ToString()); ReportParameter rp5 = new ReportParameter("REC_FOR", RECFOR.ToString()); ReportParameter rp6 = new ReportParameter("YYYY", YY.ToString()); ReportParameter rp7 = new ReportParameter("MM", MM.ToString()); ReportParameter rp8 = new ReportParameter("REPORT_NAME", FL.ToString()); RdlcPrint.LocalReport.SetParameters(new ReportParameter[] { rp1, rp2, rp3, rp4, rp5, rp6, rp7, rp8 }); } } if (RptName == "RptRecoveryStatement_1009.rdlc" || RptName == "RptRecoveryStatement_ALL.rdlc") { fileName = "Recovery Statement"; if (RptName == "RptRecoveryStatement_1009.rdlc" || RptName == "RptRecoveryStatement_ALL.rdlc") { RptName = "Recovery Statement"; ReportParameter rp1 = new ReportParameter("BANK_NAME", BkName.ToString()); ReportParameter rp2 = new ReportParameter("BRANCH_NAME", BrName.ToString()); ReportParameter rp3 = new ReportParameter("USER_NAME", UID.ToString()); ReportParameter rp4 = new ReportParameter("AS_ON_DATE", ASONDT.ToString()); ReportParameter rp5 = new ReportParameter("REC_FOR", RECFOR.ToString()); ReportParameter rp6 = new ReportParameter("YYYY", YY.ToString()); ReportParameter rp7 = new ReportParameter("MM", MM.ToString()); ReportParameter rp8 = new ReportParameter("REPORT_NAME", FL.ToString()); RdlcPrint.LocalReport.SetParameters(new ReportParameter[] { rp1, rp2, rp3, rp4, rp5, rp6, rp7, rp8 }); } } if (RptName == "RptExRecBeforePost.rdlc") { fileName = "Recovery Statemen tEx Report"; if (RptName == "RptExRecBeforePost.rdlc") { RptName = "Recovery Statement"; ReportParameter rp1 = new ReportParameter("BANK_NAME", BkName.ToString()); ReportParameter rp2 = new ReportParameter("BRANCH_NAME", BrName.ToString()); ReportParameter rp3 = new ReportParameter("UserId", UID.ToString()); ReportParameter rp4 = new ReportParameter("AS_ON_DATE", ASONDT.ToString()); ReportParameter rp5 = new ReportParameter("REC_FOR", RECFOR.ToString()); ReportParameter rp6 = new ReportParameter("YYYY", YY.ToString()); ReportParameter rp7 = new ReportParameter("MM", MM.ToString()); ReportParameter rp8 = new ReportParameter("REPORT_NAME", "Excess Recovery Report Before Posting"); RdlcPrint.LocalReport.SetParameters(new ReportParameter[] { rp1, rp2, rp3, rp4, rp5, rp6, rp7, rp8 }); } } if (RptName == "RptPTRegister.rdlc") { fileName = "P.T Register"; ReportParameter rp1 = new ReportParameter("BANK_NAME", BkName.ToString()); ReportParameter rp2 = new ReportParameter("BRANCH_NAME", BrName.ToString()); ReportParameter rp3 = new ReportParameter("USER_NAME", UID.ToString()); RdlcPrint.LocalReport.SetParameters(new ReportParameter[] { rp1, rp2, rp3 }); } } }
public void GenerateRisikoTerpilih(int tahap) { List <RisikoTerpilih> ListRisikoTerpilih = DataManager.instance.gameInstance.ListTahap[tahap].ListRisikoTerpilih; K3 = 0; MM = 0; foreach (RisikoTerpilih risiko in ListRisikoTerpilih) { dana = 0; newRisk = Instantiate(prefabRisikoTerpilih, panelRisiko.transform); textRisiko = newRisk.transform.Find("Check Risiko").GetComponentInChildren <Text>(); textRisiko.text = risiko.NamaRisiko; textHari = newRisk.transform.Find("Dampak Hari").GetComponent <Text>(); textHari.text = "-"; respon = risiko.ResponRisiko; textRespon = newRisk.transform.Find("Respon").GetComponentInChildren <Text>(); iRespon = newRisk.transform.Find("Respon").GetComponent <Image>(); if (respon != "") { textRespon.text = respon.Substring(0, 1).ToUpper() + respon.Substring(1); } if (respon == "accept") { iRespon.enabled = true; iRespon.sprite = accept; } else if (respon == "mitigate") { iRespon.enabled = true; iRespon.sprite = mitigate; } else if (respon == "avoid") { iRespon.enabled = true; iRespon.sprite = avoid; } if (risiko.K3kah) { K3++; Debug.Log("Risiko k3 ini :" + K3); } if (risiko.MMkah) { MM++; Debug.Log("Risiko MM ini :" + MM); } dana = risiko.HargaResponRisiko; total += dana; textDana = newRisk.transform.Find("Dana Risiko").GetComponent <Text>(); textDana.text = dana.ToString("N0", new CultureInfo("id-ID")); kk = newRisk.GetComponent <KartuKesimpulan>(); kk.rc = rc; kk.next = next; kk.prev = prev; kk.namaKartu = risiko.IDRisiko; kk.hargaAvoid = risiko.Avoid; kk.risikoTerpilih = risiko; kk.hargaAvoid = (risiko.Avoid / 150f) * PlayerPrefs.GetFloat("danaAwal"); kk.hargaMitigate = (risiko.Mitigate / 150f) * PlayerPrefs.GetFloat("danaAwal"); kk.happendKah = false; } textK3.text = K3.ToString(); textMM.text = MM.ToString(); }
public MM RangeField(string label, MM range, float scale) { MM v = new MM(range.ToString()); BeginHorizontal("box"); FixedLabel(label); v.min = EditorGUILayout.FloatField(range.min, Width(fieldWidth * scale/2f)); FixedLabel("-"); v.max = EditorGUILayout.FloatField(range.max, Width(fieldWidth * scale/2f)); EndHorizontal(); changed = changed || (checkChanges && (!v.Equals(range))); return v; }
// Obsługa ustawiania czasu alarmów private void TimeChange(object sender, MouseEventArgs e) { if (e.Delta > 0 || e.Button == MouseButtons.Right) { if (sender == btnH) { if (HH < 23) { HH++; } else { HH = 0; } } else if (sender == btnM) { if (MM < 59) { MM++; } else { MM = 0; } } else { if (SS < 59) { SS++; } else { SS = 0; } } btnH.Text = HH.ToString(); btnM.Text = MM.ToString(); btnS.Text = SS.ToString(); } else if (e.Delta < 0 || e.Button == MouseButtons.Left) { if (sender == btnH) { if (HH > 0) { HH--; } else { HH = 23; } } else if (sender == btnM) { if (MM > 0) { MM--; } else { MM = 59; } } else { if (SS > 0) { SS--; } else { SS = 59; } } btnH.Text = HH.ToString(); btnM.Text = MM.ToString(); btnS.Text = SS.ToString(); } }