Example #1
0
 public Builder AddV3Ff(PBJ.Vector3f value) {
     float[] _PBJtempArray=PBJ._PBJ.ConstructVector3f(value);
     super.AddV3Ff(_PBJtempArray[0]);
     super.AddV3Ff(_PBJtempArray[1]);
     super.AddV3Ff(_PBJtempArray[2]);
     return this;
 }
Example #2
0
 public Builder SetV3Ff(int index,PBJ.Vector3f value) {
     float[] _PBJtempArray=PBJ._PBJ.ConstructVector3f(value);
     super.SetV3Ff(index*3+0,_PBJtempArray[0]);
     super.SetV3Ff(index*3+1,_PBJtempArray[1]);
     super.SetV3Ff(index*3+2,_PBJtempArray[2]);
     return this;
 }
Example #3
0
 public Builder SetShas(int index, PBJ.SHA256 value) {
     super.SetShas(index,PBJ._PBJ.Construct(value));
     return this;
 }
Example #4
0
 public Builder AddShas(PBJ.SHA256 value) {
     super.AddShas(PBJ._PBJ.Construct(value));
     return this;
 }
Example #5
0
 public Builder AddXxnn(PBJ.Vector3f value) {
     float[] _PBJtempArray=PBJ._PBJ.ConstructNormal(value);
     super.AddXxnn(_PBJtempArray[0]);
     super.AddXxnn(_PBJtempArray[1]);
     return this;
 }
Example #6
0
 public Builder SetXxnn(int index,PBJ.Vector3f value) {
     float[] _PBJtempArray=PBJ._PBJ.ConstructNormal(value);
     super.SetXxnn(index*2+0,_PBJtempArray[0]);
     super.SetXxnn(index*2+1,_PBJtempArray[1]);
     return this;
 }
Example #7
0
 public Builder SetValue(int index, PBJ.UUID value) {
     super.SetValue(index,PBJ._PBJ.Construct(value));
     return this;
 }
Example #8
0
 public Builder AddValue(PBJ.UUID value) {
     super.AddValue(PBJ._PBJ.Construct(value));
     return this;
 }
Example #9
0
 public Builder SetOtherPosition(int index,PBJ.Vector3d value) {
     double[] _PBJtempArray=PBJ._PBJ.ConstructVector3d(value);
     super.SetOtherPosition(index*3+0,_PBJtempArray[0]);
     super.SetOtherPosition(index*3+1,_PBJtempArray[1]);
     super.SetOtherPosition(index*3+2,_PBJtempArray[2]);
     return this;
 }
Example #10
0
 public Builder AddOtherPosition(PBJ.Vector3d value) {
     double[] _PBJtempArray=PBJ._PBJ.ConstructVector3d(value);
     super.AddOtherPosition(_PBJtempArray[0]);
     super.AddOtherPosition(_PBJtempArray[1]);
     super.AddOtherPosition(_PBJtempArray[2]);
     return this;
 }
Example #11
0
    public static string CreateMasterTableInfo(string detailtable, string[] keys, System.Web.UI.Page page)
    {
        string strTableName = "dbo.PBJ";
        string oldTableName = strTableName;
        string keyField     = string.Empty;
        string output       = string.Empty;
        Dictionary <string, object> smarty = new Dictionary <string, object>();
        Builder builder = Factory.CreateBuilder();

        smarty.Add("__table", strTableName);
        string sCulture = ConfigurationManager.AppSettings["LCID"];

        if (!String.IsNullOrEmpty(sCulture))
        {
            int nCulture = int.Parse(sCulture);
            smarty.Add("LCID", nCulture);
            System.Threading.Thread.CurrentThread.CurrentCulture = new System.Globalization.CultureInfo(nCulture, false);
        }
        if (System.Web.HttpContext.Current.Session["locale_xml"] != null)
        {
            smarty.Add("Captions", AspNetRunnerPage.GetTableCaptions((XmlNode)System.Web.HttpContext.Current.Session["locale_xml"],
                                                                     (string)System.Web.HttpContext.Current.Session["language"]));
            if (!string.IsNullOrEmpty(strTableName))
            {
                smarty.Add("Labels", AspNetRunnerPage.GetFieldCaptions((XmlNode)System.Web.HttpContext.Current.Session["locale_xml"],
                                                                       (string)System.Web.HttpContext.Current.Session["language"], "dbo_PBJ"));
            }
        }
        IDictionary <string, object> par = new Dictionary <string, object>();

        keyField      = "KODEPBJ";
        par[keyField] = keys[1 - 1];
        keyField      = "KODEPBJ";
        par[keyField] = keys[1 - 1];

        PBJController controller = new PBJController();
        PBJ           item       = controller.FetchByManyID(par);

        string keylink = string.Empty;

        if (item != null)
        {
            keylink += "&key1=" + Control.HTMLEncodeSpecialChars(HttpUtility.UrlEncode(item.KODEPBJ.ToString()));
        }

        string value = "";

        Control control_KODEPBJ = new Control("KODEPBJ", item.KODEPBJ, false, smarty, page.Request, builder, MODE.MODE_LIST);

        //	KODEPBJ -
        value = control_KODEPBJ.GetData();
        value = control_KODEPBJ.ProcessLargeText(value, "field=KODEPBJ" + keylink, "", MODE.MODE_LIST);
        smarty.Add("KODEPBJ_mastervalue", value);

        Control control_NAMAKEGIATAN = new Control("NAMAKEGIATAN", item.NAMAKEGIATAN, false, smarty, page.Request, builder, MODE.MODE_LIST);

        //	NAMAKEGIATAN -
        value = control_NAMAKEGIATAN.GetData();
        value = control_NAMAKEGIATAN.ProcessLargeText(value, "field=NAMAKEGIATAN" + keylink, "", MODE.MODE_LIST);
        smarty.Add("NAMAKEGIATAN_mastervalue", value);

        Control control_NAMAPAKET = new Control("NAMAPAKET", item.NAMAPAKET, false, smarty, page.Request, builder, MODE.MODE_LIST);

        //	NAMAPAKET -
        value = control_NAMAPAKET.GetData();
        value = control_NAMAPAKET.ProcessLargeText(value, "field=NAMAPAKET" + keylink, "", MODE.MODE_LIST);
        smarty.Add("NAMAPAKET_mastervalue", value);

        Control control_KODESKPD = new Control("KODESKPD", item.KODESKPD, false, smarty, page.Request, builder, MODE.MODE_LIST);

        //	KODESKPD -
        control_KODESKPD.Value = func.GetLookupValue(control_KODESKPD.FieldInfo);
        value = control_KODESKPD.DisplayLookupWizard();
        smarty.Add("KODESKPD_mastervalue", value);

        Control control_PPK = new Control("PPK", item.PPK, false, smarty, page.Request, builder, MODE.MODE_LIST);

        //	PPK -
        control_PPK.Value = func.GetLookupValue(control_PPK.FieldInfo);
        value             = control_PPK.DisplayLookupWizard();
        smarty.Add("PPK_mastervalue", value);

        Control control_PPTK = new Control("PPTK", item.PPTK, false, smarty, page.Request, builder, MODE.MODE_LIST);

        //	PPTK -
        control_PPTK.Value = func.GetLookupValue(control_PPTK.FieldInfo);
        value = control_PPTK.DisplayLookupWizard();
        smarty.Add("PPTK_mastervalue", value);

        Control control_KODEJENISKEGIATAN = new Control("KODEJENISKEGIATAN", item.KODEJENISKEGIATAN, false, smarty, page.Request, builder, MODE.MODE_LIST);

        //	KODEJENISKEGIATAN -
        control_KODEJENISKEGIATAN.Value = func.GetLookupValue(control_KODEJENISKEGIATAN.FieldInfo);
        value = control_KODEJENISKEGIATAN.DisplayLookupWizard();
        smarty.Add("KODEJENISKEGIATAN_mastervalue", value);

        Control control_TANGGALPENGAJUAN = new Control("TANGGALPENGAJUAN", item.TANGGALPENGAJUAN, false, smarty, page.Request, builder, MODE.MODE_LIST);

        //	TANGGALPENGAJUAN - Short Date
        value = control_TANGGALPENGAJUAN.GetData();
        value = control_TANGGALPENGAJUAN.ProcessLargeText(value, "field=TANGGALPENGAJUAN" + keylink, "", MODE.MODE_LIST);
        smarty.Add("TANGGALPENGAJUAN_mastervalue", value);

        Control control_LENGKAP = new Control("LENGKAP", item.LENGKAP, false, smarty, page.Request, builder, MODE.MODE_LIST);

        //	LENGKAP -
        value = control_LENGKAP.GetData();
        value = control_LENGKAP.ProcessLargeText(value, "field=LENGKAP" + keylink, "", MODE.MODE_LIST);
        smarty.Add("LENGKAP_mastervalue", value);

        Control control_DIKEMBALIKAN = new Control("DIKEMBALIKAN", item.DIKEMBALIKAN, false, smarty, page.Request, builder, MODE.MODE_LIST);

        //	DIKEMBALIKAN -
        value = control_DIKEMBALIKAN.GetData();
        value = control_DIKEMBALIKAN.ProcessLargeText(value, "field=DIKEMBALIKAN" + keylink, "", MODE.MODE_LIST);
        smarty.Add("DIKEMBALIKAN_mastervalue", value);

        Control control_KODESTATUSPBJ = new Control("KODESTATUSPBJ", item.KODESTATUSPBJ, false, smarty, page.Request, builder, MODE.MODE_LIST);

        //	KODESTATUSPBJ -
        control_KODESTATUSPBJ.Value = func.GetLookupValue(control_KODESTATUSPBJ.FieldInfo);
        value = control_KODESTATUSPBJ.DisplayLookupWizard();
        smarty.Add("KODESTATUSPBJ_mastervalue", value);
        return(func.BuildOutput(page, @"~\PBJ_masterlist.aspx", smarty));
    }
Example #12
0
 /// <summary>
 /// Holds the Jelly when the hold Jelly button is clicked.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="args"></param>
 private void OnHoldJelly(object sender, RoutedEventArgs args)
 {
     PBJ.HoldJelly();
 }
Example #13
0
 /// <summary>
 /// Holds the Peanut Butter when the hold Peanut Butter button is clicked.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="args"></param>
 private void OnHoldPeanutButter(object sender, RoutedEventArgs args)
 {
     PBJ.HoldPeanutButter();
 }