예제 #1
0
 public SaleCOM()
 {
     mTA04 = app.Tables.Item("TA04");
     mKEY = mTA04.Fields.Item("KEY");
     mTX1 = mTA04.Fields.Item("TX1");
       mKST = mTA04.Fields.Item("KST");
 }
예제 #2
0
 public Table()
 {
     mTA = app.Tables.Item("TA");
     mKEY = mTA.Fields.Item("KEY");
     mTX1 = mTA.Fields.Item("TX1");
     mTX2 = mTA.Fields.Item("TX2");
     mKD1 = mTA.Fields.Item("KD1");
 }
예제 #3
0
 public ohText()
 {
     mOGK = app.Tables.Item("OGK");
     mONR = mOGK.Fields.Item("ONR");
     mRDC = mOGK.Fields.Item("RDC");
     mSQC = mOGK.Fields.Item("SQC");
     mTX1 = mOGK.Fields.Item("TX1");
     mFAF = mOGK.Fields.Item("FAF");
 }
예제 #4
0
        public Table(string prefix)
        {
            mPrefix = prefix;
            connectToGarp("","");

            mTA = app.Tables.Item("TA");
            mKEY = mTA.Fields.Item("KEY");
            mTX1 = mTA.Fields.Item("TX1");
            mTX2 = mTA.Fields.Item("TX2");
            mKD1 = mTA.Fields.Item("KD1");
        }
예제 #5
0
        public ProductCOM()
        {
            mAGA = app.Tables.Item("AGA");
              mRKPX = app.Tables.Item("RKPX");

              mAGA_ANR = mAGA.Fields.Item("ANR");
            mAGA_BEN = mAGA.Fields.Item("BEN");
            mAGA_PRI = mAGA.Fields.Item("PRI");

              mRKPX_KNR = mRKPX.Fields.Item("KNR");
              mRKPX_TX1 = mRKPX.Fields.Item("TX1");
        }
예제 #6
0
        public Customer()
        {
            try
            {
                mBCCustomer = ConfigurationManager.AppSettings["CustomerLoginName"].ToString();
                //mBCUserName = ConfigurationManager.AppSettings["UserLoginName"].ToString();
                //mBCPassword = ConfigurationManager.AppSettings["Password"].ToString();
                mBCLanguage = ConfigurationManager.AppSettings["Language"].ToString();
                mBCPackage = ConfigurationManager.AppSettings["PackageName"].ToString();
                mBCReportType = ConfigurationManager.AppSettings["ReportType"].ToString();
            }
            catch { }

            try
            {
                app = new Garp.Application();

                mTA = app.Tables.Item("TA");
                mTA_TX1 = mTA.Fields.Item("TX1");

                if (mTA.Find("W100FU" + app.User.Trim()))
                {
                    if (noNULL(mTA_TX1.Value).Contains(";"))
                    {
                        string[] s = mTA_TX1.Value.Split(';');
                        mBCUserName = s[0];
                        mBCPassword = s[1];
                    }
                }

                oComp = app.Components;
                dsKA = app.Datasets.Item("McDataSet1");
                oComp.BaseComponent = "Panel1";

                if (!string.IsNullOrEmpty(mBCUserName))
                {
                    createButton();

                    oComp.Item("McText1").Width = oComp.Item("McText1").Width + 5;
                    dsKA.BeforePost += new Garp.IDatasetEvents_BeforePostEventHandler(dsKA_BeforePost);
                    dsKA.AfterScroll += new Garp.IDatasetEvents_AfterScrollEventHandler(dsKA_AfterScroll);
                    app.ButtonClick += new Garp.IGarpApplicationEvents_ButtonClickEventHandler(app_ButtonClick);
                }

                //                ctx = new DataImport2SoapClient("DataImport2Soap");

            }
            catch (Exception ex)
            {
                System.Windows.Forms.MessageBox.Show(ex.Message);
            }
        }
예제 #7
0
        public ErrandCOM()
        {
            mI2H  = app.Tables.Item("I2H");
            mI2R  = app.Tables.Item("I2R");
            mTA04 = app.Tables.Item("TA04");

            mI2H_HN1 = mI2H.Fields.Item("HN1");
            mI2H_HN2 = mI2H.Fields.Item("HN2");
            mI2H_HN3 = mI2H.Fields.Item("HN3");

            mI2R_HN1 = mI2R.Fields.Item("HN1");
            mI2R_HN2 = mI2R.Fields.Item("HN2");
            mI2R_HN3 = mI2R.Fields.Item("HN3");
            mI2R_TXT = mI2R.Fields.Item("TXT");
            mErrand = app.Appointment;
        }
예제 #8
0
        public Contacts()
        {
            mI2H = app.Tables.Item("I2H");
            mI2R = app.Tables.Item("I2R");

            mI2H_HN1 = mI2H.Fields.Item("HN1");
            mI2H_HN2 = mI2H.Fields.Item("HN2");
            mI2H_HN3 = mI2H.Fields.Item("HN3");
            mI2H_DEL = mI2H.Fields.Item("DEL");
            mI2H_LAY = mI2H.Fields.Item("LAY");
            mI2H_NYC = mI2H.Fields.Item("NYC");

            mI2R_HN1 = mI2R.Fields.Item("HN1");
            mI2R_HN2 = mI2R.Fields.Item("HN2");
            mI2R_HN3 = mI2R.Fields.Item("HN3");
            mI2R_TXT = mI2R.Fields.Item("TXT");
        }
예제 #9
0
        /// <summary>
        /// The constructor creates the Garp.ApplicationClass
        /// and all the Garp objects
        /// </summary>
        public GarpReferrals()
        {
            try
            {
                app = new Garp.Application();
                oCust = new Ortoped.GarpFunctions.CustomerFunc();
            }
            catch
            {
                Console.WriteLine("Garp kunde inte startas..");
            }

            mKA = app.Tables.Item("KA");
            mAGA = app.Tables.Item("AGA");
            mAGT = app.Tables.Item("AGT");

            mAGA_ANR = mAGA.Fields.Item("ANR");
            mAGA_SES = mAGA.Fields.Item("SES");
            mAGA_STA = mAGA.Fields.Item("STA");
            mAGA_KD1 = mAGA.Fields.Item("KD1");
            mAGA_KD6 = mAGA.Fields.Item("KD6");

            mAGT_ANR = mAGT.Fields.Item("ANR");
            mAGT_TX15 = mAGT.Fields.Item("TX15");

            mKA_KNR = mKA.Fields.Item("KNR");
            mKA_NAM = mKA.Fields.Item("NAM");
            mKA_AD1 = mKA.Fields.Item("AD1");
            mKA_AD2 = mKA.Fields.Item("AD2");
            mKA_ORT = mKA.Fields.Item("ORT");
            mKA_KAT = mKA.Fields.Item("KAT");
            mKA_LVK = mKA.Fields.Item("LVK");
            mKA_KD6 = mKA.Fields.Item("KD6");
            mKA_BVK = mKA.Fields.Item("BVK");
            mKA_PRL = mKA.Fields.Item("PRL");
            mKA_MOM = mKA.Fields.Item("MOM");
            mKA_LSE = mKA.Fields.Item("LSE");
            mKA_KTY = mKA.Fields.Item("KTY");
        }
예제 #10
0
 public Prislista()
 {
     mAPD = app.Tables.Item("APD");
     mPRL = mAPD.Fields.Item("PRL");
     mBEN = mAPD.Fields.Item("BEN");
 }
예제 #11
0
 public DeliveryMode()
 {
     TA03 = app.Tables.Item("TA03");
     KEY = TA03.Fields.Item("KEY");
     TX1 = TA03.Fields.Item("TX1");
 }