Skip to content

Instantly share code, notes, and snippets.

View smarenich's full-sized avatar

Sergey Marenich smarenich

View GitHub Profile
<?xml version="1.0" encoding="utf-8"?>
<config xmlns="http://tempuri.org/XMLSchema2.xsd">
<general>
<browser>*firefox</browser>
<browserbin>C:\TestSDK\firefox\firefox.exe</browserbin>
<site_dst>
<rmhost/>
<url>http://localhost/BobRentAll</url>
<login>admin</login>
<pswd>123</pswd>
public class Test1 : Check
{
//Add your test-specific logic in the method below for every test.
public override void Execute()
{
PxLogin.LogIn("admin", "123");
//Test case 1
JournalEntry journalEntry = new JournalEntry();
journalEntry.OpenScreen();
public class PartnersInq : PXGraph<PartnersInq>
{
public PartnersInq()
{
GenerateColumns(Partners.Cache, Courses.Select().Select(m => (UNCourse)m).ToList());
}
protected void GenerateColumns(PXCache sender, List<UNCourse> cources)
{
foreach (UNCourse cource in cources)
internal class CompanySelectorAttribute : PXCustomSelectorAttribute
{
public CompanySelectorAttribute()
: base(typeof(UPCompany.companyID))
{ }
protected virtual IEnumerable GetRecords()
{
return PXCompanyHelper.SelectCompanies();
}
public class PXSYProviderSelector : PXCustomSelectorAttribute
{
[Serializable]
public class ProviderRec : IBqlTable
{
#region TypeName
public abstract class typeName : PX.Data.IBqlField { }
[PXString(128, InputMask = "", IsKey = true)]
[PXUIField(DisplayName = "Type Name", Visibility = PXUIVisibility.SelectorVisible)]
public virtual string TypeName { get; set; }
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using PX.Api;
using PX.Data;
using PX.DataSync.Filter;
namespace PX.DataSync
#region FTPFileExchange
[System.Net.WebPermission(System.Security.Permissions.SecurityAction.Assert, Unrestricted = true)]
public class FTPFileExchange : BaseFileExchange, IFileExchange
{
public String Name { get { return Messages.ExchangeFTP; } }
public String Code { get { return Codes.ExchangeFTPCode; } }
public FTPFileExchange(String login, String password)
: base(login, password)
{ }
//General usage
[PXDBInt]
[PXSelector(typeof(Search<FAClass.assetID, Where<FAClass.recordType, Equal<FARecordType.classType>>>),
typeof(FAClass.assetCD), typeof(FAClass.assetTypeID), typeof(FAClass.description), typeof(FAClass.usefulLife),
SubstituteKey = typeof(FAClass.assetCD),
DescriptionField = typeof(FAClass.description), CacheGlobal = true)]
[PXRestrictor(typeof(Where<FAClass.active, Equal<True>>), Messages.InactiveFAClass, typeof(FAClass.assetCD))]
[PXUIField(DisplayName = "Asset Class", Visibility = PXUIVisibility.Visible)]
public virtual int? ClassID { get; set; }
public class MyGraph : PXGraph<MyGraph>
{
public MyGraph()
{
MainCommand.MenuAutoOpen = true;
MainCommand.AddMenuAction(SubCommand2);
MainCommand.AddMenuAction(SubCommand1);
}
public PXAction<UPCompany> MainCommand;
DECLARE @TableName varchar(255)
DECLARE TableCursor CURSOR FOR
SELECT table_name FROM information_schema.tables
WHERE table_type = 'base table'
OPEN TableCursor
FETCH NEXT FROM TableCursor INTO @TableName
WHILE @@FETCH_STATUS = 0
BEGIN
DBCC DBREINDEX(@TableName,' ',90)