public JNode GetNode(DataRow pRow) { JNode Node = new JNode(Convert.ToInt32(pRow["Code"]), "Bascol.JWeight"); Nodes.hidColumns = "dele,verify,FullW,PrintNo,pay_h,Duty,Tax,ProductCode,FirstWeight,Khales,PostName,Code,p1,p2,p3,p4,UserPostCode,TruckCode,PersonCode"; Node.Name = pRow["PlokNo"].ToString(); Node.Icone = JImageIndex.land.GetHashCode(); Node.Hint = pRow["PlokNo"].ToString(); //اکشن جمع کل JAction TotalAction = new JAction("TatalPrice", "Bascol.JWeight.TotalPrice", null, null); Node.MouseClickAction = TotalAction; //اکشن لیست سیاه JAction BlackListAction = new JAction("BlackList", "Bascol.JWeight.AddBlackList", new object[] { Convert.ToInt32(pRow["BascoolID"]) }, null); Node.MouseClickAction = BlackListAction; //اکشن ویرایش JAction editAction = new JAction("Edit...", "Bascol.JWeight.ShowDialog", new object[] { Node.Code }, null); Node.MouseDBClickAction = editAction; //اکشن حذف //JAction DeleteAction = new JAction("Delete", "Bascol.JWeight.Delete", new object[] { Node.Code }, null); //Node.DeleteClickAction = DeleteAction; //اکشن جدید JAction newAction = new JAction("New...", "Bascol.JWeight.ShowDialog", new object[] { 0 }, null); Node.Popup.Insert(BlackListAction); Node.Popup.Insert(TotalAction); //Node.Popup.Insert(DeleteAction); //Node.Popup.Insert(editAction); Node.Popup.Insert(newAction); return(Node); }
public void InputText(string Tvalue, string Target, string sType) { //Deal with Command List <string> Itmes = JSupport.ComandParse(ref Tvalue, ref Target, ref sType); //Action foreach (string item in Itmes) { switch (item) { case "@普通文本框": element = JElement.GetInputElement(driver, Tvalue, Target); break; case "@文件文本框": element = JElement.GetFileInputElement(driver, Tvalue, Target); break; case "@清空": JAction.Clear(element); break; case "@搜索": JAction.EnterAction(driver, element); break; case "@输入": JAction.SendKeys(element, Tvalue); break; default: throw new ArgumentOutOfRangeException(string.Format("✘:sType命令中不存在:{0},请核对", item)); } } }
private void OnDragEndEvent(GameObject go, PointerEventData eventData) { UIUtility.Safe_UGUI(ref button_text, "结束拖拽"); JAction j = new JAction() .Delay(1) .Do(() => UIUtility.Safe_UGUI(ref button_text, "按住可以拖拽")) .Execute(true); }
private void OnDoubleClick() { UIUtility.Safe_UGUI(ref double_text, "按钮被双击了"); JAction j = new JAction() .Delay(1) .Do(() => UIUtility.Safe_UGUI(ref double_text, "尝试双击")) .Execute(true); }
public static JNode _ArchivePlaceNode() { JAction ActionPlacesShow = new JAction("ArchivePlaces", "ArchivedDocuments.JPlacesTree.Show", null, null); JNode PlacesNode = new JNode(0, "ArchivedDocuments.JArchivedDocuments"); PlacesNode.Name = "ArchivePlaces"; PlacesNode.MouseDBClickAction = ActionPlacesShow; PlacesNode.MouseClickAction = ActionPlacesShow; return(PlacesNode); }
public static JNode _ArchiveSubjectNode() { JAction DBAction = new JAction("ArchivedSubject", "ArchivedDocuments.JSubjectTree.Show", null, null); JNode Node = new JNode(0, "ArchivedDocuments.JArchivedDocuments"); Node.Name = "ArchiveSubject"; Node.MouseDBClickAction = DBAction; Node.MouseClickAction = DBAction; return(Node); }
public JNode GetNode(DataRow pDR) { JNode _Node = new JNode((int)pDR["Code"], this.GetType().FullName); //درخواست آرشیو JAction editAction = new JAction("Request Archive...", "ArchivedDocuments.JRequestArchiveFile.ReferShow", new object[] { 0, _Node.Code, 0 }, null); //_Node.MouseDBClickAction = editAction; _Node.Popup.Insert(editAction); return(_Node); }
public static JNode GetTreeNode() { JNode Node = new JNode(0, "Documents.JAUTDocumentReportForm"); Node.Name = "Reports"; JAction Ac = new JAction("Reports", "BusManagment.Documents.JAUTDocumentReportForm.ShowDialog", null, null, false); Node.MouseClickAction = Ac; return(Node); }
public void ListView() { JSystem.Nodes.DataTable = GetDataTable(null, 0); JSystem.Nodes.ObjectBase = new JAction("Bus", "BusManagment.Documents.JAUTDocument.GetNode"); JAction ActInsertAutombile = new JAction("Insert", "BusManagment.Documents.JDocumentForm.ShowDialog"); JToolbarNode InsertAutombile = new JToolbarNode(); InsertAutombile.Click = ActInsertAutombile; InsertAutombile.Icon = JImageIndex.Add; JSystem.Nodes.AddToolbar(InsertAutombile); }
public static JNode _ArchiveDocuments() { JAction ActionArchiveDocuments = new JAction("ArchivePlaces", "ArchivedDocuments.JArchiveDocuments.ListView", null, null); JNode ArchiveDocuments = new JNode(0, "ArchivedDocuments.JArchivedDocuments"); ArchiveDocuments.Name = "ArchiveDocuments"; ArchiveDocuments.MouseDBClickAction = ActionArchiveDocuments; ArchiveDocuments.MouseClickAction = ActionArchiveDocuments; ArchiveDocuments.ChildsAction = new JAction("", "ArchivedDocuments.JAStaticNode._ArchiveDocumentssub"); return(ArchiveDocuments); }
public static JNode _RequestArchiveFile() { JNode Node = new JNode(0, "ArchivedDocuments.JRequestArchiveFile"); Node.Name = "RequestArchiveFile"; Node.Hint = "RequestArchiveFile"; JAction Ac = new JAction("RequestArchiveFile", "ArchivedDocuments.JRequestArchiveFiles.ListView", null, null, true); Node.MouseClickAction = Ac; return(Node); }
public void ListView() { JSystem.Nodes.DataTable = GetDataTable(null, 0); JSystem.Nodes.ObjectBase = new JAction("Bus", "BusManagment.Documents.JAUTPayment.GetNode"); JAction actInsert = new JAction("Insert", "BusManagment.Documents.JPaymentForm.ShowDialog"); JToolbarNode nodeInsert = new JToolbarNode(); nodeInsert.Click = actInsert; nodeInsert.Icon = JImageIndex.Add; JSystem.Nodes.AddToolbar(nodeInsert); }
public void ListView() { JSystem.Nodes.DataTable = GetDataTable(0); JSystem.Nodes.ObjectBase = new JAction("Vacation", "BusManagment.WorkOrder.JAUTVacation.GetNode"); JAction ActInsertAutombile = new JAction("Insert", "BusManagment.WorkOrder.JVacationForm.ShowDialog"); JToolbarNode InsertAutombile = new JToolbarNode(); InsertAutombile.Click = ActInsertAutombile; InsertAutombile.Icon = JImageIndex.Add; JSystem.Nodes.AddToolbar(InsertAutombile); }
private void ShowButtons() { if (Tiles != null && WBGame.TileSheet != null && LoadButton.Hidden) { LoadButton.Hidden = false; CreateButton.Hidden = false; LoadButton.RunAction("enter", JAction.FadeInFromAngle(90, 30, 1, StepType.EaseInSin)); CreateButton.RunAction("enter", JAction.FadeInFromAngle(90, 30, 1, StepType.EaseInSin)); } }
/// <summary> /// /// </summary> /// <returns></returns> public static JNode _ChangPlok() { JNode Node = new JNode(0, "Bascol.JChangePlokForm"); Node.Name = "ChangePlok"; JAction Ac = new JAction("ChangePlok", "Bascol.JReport.ShowChangePlokForm", null, null, true); Node.MouseClickAction = Ac; Node.MouseDBClickAction = Ac; Node.Icone = JImageIndex.report.GetHashCode(); return(Node); }
// View Nodes #region View public void ListView() { JAction InsertAction = new JAction("New", "Automation.JASubsidiaries.InsertForm"); Nodes.GlobalMenuActions = new JPopupMenu("Automation.JASubsidiaries", 0); Nodes.GlobalMenuActions.Insert(InsertAction); foreach (JASubsidiaries Sec in Items) { Nodes.Insert(Sec.GetNode()); } }
/// <summary> /// /// </summary> /// <returns></returns> public static JNode _Products() { JNode Node = new JNode(0, "Bascol.JProductss"); Node.Name = "Products"; JAction Ac = new JAction("Products", "Bascol.JProductss.ListView", null, null, true); Node.MouseClickAction = Ac; Node.MouseDBClickAction = Ac; Node.Icone = JImageIndex.ResCostCenter.GetHashCode(); return(Node); }
/// <summary> /// گزارش کاربر /// </summary> /// <returns></returns> public static JNode _ReportUser() { JNode Node = new JNode(0, "Bascol.JReport"); Node.Name = "ReportUser"; JAction Ac = new JAction("ReportUser", "Bascol.JReport.ShowReportUserForm", null, null, true); Node.MouseClickAction = Ac; Node.MouseDBClickAction = Ac; Node.Icone = JImageIndex.report.GetHashCode(); return(Node); }
/// <summary> /// /// </summary> /// <returns></returns> public static JNode _ConfigTax() { JNode Node = new JNode(0, "Bascol.JConfigBascolForm"); Node.Name = "ConfigTaxDuty"; JAction Ac = new JAction("ConfigTaxDuty", "Bascol.JReport.ShowTaxForm", null, null, true); Node.MouseClickAction = Ac; Node.MouseDBClickAction = Ac; Node.Icone = JImageIndex.report.GetHashCode(); return(Node); }
public static JNode _ReportForm() { JNode Node = new JNode(0, "BusManagment.JDailyPerformanceReportOnBus"); Node.Name = "JDailyPerformanceRportOnBus"; //Node.Icone = 4; Node.Hint = "JDailyPerformanceRportOnBus"; JAction Ac = new JAction("JDailyPerformanceReportOnBus", "BusManagment.Reports.JDailyPerformanceRportOnBus.ShowForm", null, null, true); Node.MouseClickAction = Ac; return(Node); }
public void ListView() { Nodes.ObjectBase = new JAction("Weights", "Bascol.JWeight.GetNode"); Nodes.DataTable = GetDataTable(); JAction newAction = new JAction("New...", "Bascol.JWeight.ShowDialog", new object[] { 0 }, null); Nodes.GlobalMenuActions.Insert(newAction); JToolbarNode JTN = new JToolbarNode(); JTN.Click = newAction; JTN.Icon = JImageIndex.Add; Nodes.AddToolbar(JTN); }
public static JNode _ShowOnlineMap() { JNode Node = new JNode(0, "BusManagment.JShowOnlineMapForm"); Node.Name = "JShowOnlineMapForm"; //Node.Icone = 4; Node.Hint = "JShowOnlineMapForm"; JAction Ac = new JAction("JShowOnlineMapForm", "BusManagment.AVL.JOnlineMapForm.ShowDialog", null, null, true); Node.MouseClickAction = Ac; return(Node); }
public void ListView() { JSystem.Nodes.DataTable = GetDataTable(0); JSystem.Nodes.ObjectBase = new JAction("UserDynamicDashboard", "BusManagment.UserDynamicDashboard.JUserDynamicDashboard.GetNode"); JAction ActInsertAutombile = new JAction("Insert", "BusManagment.UserDynamicDashboard.JUserDynamicDashboardForm.ShowDialog"); JToolbarNode InsertAutombile = new JToolbarNode(); InsertAutombile.Click = ActInsertAutombile; InsertAutombile.Icon = JImageIndex.Add; JSystem.Nodes.AddToolbar(InsertAutombile); }
//ooo public void ListView() { JSystem.Nodes.DataTable = GetDataTable(); JSystem.Nodes.ObjectBase = new JAction("DriverLog", "Driver.JDriverLog.GetNode"); JAction ActInsertAutombile = new JAction("Insert", "BusManagment.Driver.DriverLogForm.ShowDialog"); JToolbarNode InsertAutombile = new JToolbarNode(); InsertAutombile.Click = ActInsertAutombile; InsertAutombile.Icon = JImageIndex.Add; JSystem.Nodes.AddToolbar(InsertAutombile); }
public void ListView() { JSystem.Nodes.DataTable = GetDataTable(); JSystem.Nodes.ObjectBase = new JAction("Path", "BusManagment.Line.JLineNodePathse.GetNode"); JAction ActInsertAutombile = new JAction("Insert", "BusManagment.Line.PathForm.ShowDialog"); JToolbarNode InsertAutombile = new JToolbarNode(); InsertAutombile.Click = ActInsertAutombile; InsertAutombile.Icon = JImageIndex.Add; JSystem.Nodes.AddToolbar(InsertAutombile); }
public void ListView() { JSystem.Nodes.DataTable = GetDataTable(); JSystem.Nodes.ObjectBase = new JAction("Personel", "BusManagment.Personel.JPersonel.GetNode"); JAction ActInsertAutombile = new JAction("Insert", "BusManagment.Personel.JPersonelForm.ShowDialog"); JAction NewItem = new JAction("New...", "BusManagment.Personel.JPersonelForm.ShowDialog", null, new object[] { }); JToolbarNode InsertAutombile = new JToolbarNode(); InsertAutombile.Click = NewItem; InsertAutombile.Icon = JImageIndex.Add; JSystem.Nodes.AddToolbar(InsertAutombile); }
/// <summary> /// توزین /// </summary> /// <returns></returns> public static JNode _TozinNode() { JNode Node = new JNode(0, "Bascol.JWeight"); Node.Name = "Weight"; //Node.Icone = 4; Node.Hint = "Weight"; JAction Ac = new JAction("Weight", "Bascol.JWeights.ListView", null, null, true); Node.MouseClickAction = Ac; Node.MouseDBClickAction = Ac; return(Node); }
public void ListView() { JSystem.Nodes.DataTable = GetDataTable(); JSystem.Nodes.ObjectBase = new JAction("Autombile", "AUTOMOBILE.AutomobileDefine.JAutomobileDefine.GetNode"); JAction ActInsertAutombile = new JAction("Insert", "AUTOMOBILE.AutomobileDefine.JAutomobileForm.ShowDialog"); JToolbarNode InsertAutombile = new JToolbarNode(); InsertAutombile.Click = ActInsertAutombile; InsertAutombile.Icon = JImageIndex.Add; JSystem.Nodes.AddToolbar(InsertAutombile); }
/// <summary> /// ماشین /// </summary> /// <returns></returns> public static JNode _TruckNode() { JNode Node = new JNode(0, "Bascol.JTruck"); Node.Name = "Trucks"; //Node.Icone = 4; Node.Hint = "Trucks"; JAction Ac = new JAction("Trucks", "Bascol.JTrucks.ListView", null, null, true); Node.MouseClickAction = Ac; Node.MouseDBClickAction = Ac; return(Node); }
public JNode GetNode(DataRow pRow) { JNode Node = new JNode((int)pRow["Code"], "BusManagment.WorkOrder.JTariff"); Node.MouseDBClickAction = new JAction("EditFleet", "BusManagment.WorkOrder.JVacationForm.ShowDialog", null, new object[] { (int)pRow["Code"], 0 }); JAction DeleteItem = new JAction("Delete", "BusManagment.WorkOrder.JAUTVacation.Delete", null, new object[] { (int)pRow["Code"] }); JAction NewItem = new JAction("New...", "BusManagment.WorkOrder.JVacationForm.ShowDialog", null, new object[] { }); JAction EditItem = new JAction("Edit...", "BusManagment.WorkOrder.JVacationForm.ShowDialog", null, new object[] { (int)pRow["Code"], 0 }); Node.Popup.Insert(DeleteItem); Node.Popup.Insert(EditItem); Node.Popup.Insert(NewItem); return(Node); }