示例#1
0
        /// <summary>
        /// doPurchaseOrderEntry
        /// </summary>
        /// <remarks>
        /// This runs a template-driven screen.
        /// The template is held in the parameter file on the server.
        /// </remarks>
        protected void doPurchaseOrderEntry(String orderId)
        {
            string screenXML  = String.Empty;
            String screenName = (Server.Instance.moneyFormat == 1 ? "PURCHASE_SCREEN_INTL" : "PURCHASE_SCREEN");

            if (Server.Instance.readParameter(screenName, ref screenXML) == false)
            {
                return;
            }
            ScreenDefn defn = ScreenDefn.fromXML(screenXML.Replace(Server.FM_STR, Server.CRLF));

            if (defn == null)
            {
                return;
            }
            fScreen f = new fScreen();

            f.MdiParent = this;
            f.Show();
            f.Defn = defn;
            if (String.IsNullOrEmpty(orderId) == false)
            {
                f.Id = orderId;
            }
        }
示例#2
0
        /// <summary>
        /// doMaintainSalesTax
        /// </summary>
        /// <remarks>
        /// This runs a template-driven screen to maintain shipping costs.
        /// The template is held in the parameter file on the server.
        /// </remarks>
        protected void doMaintainSalesTax()
        {
            string screenXML = String.Empty;

            if (Server.Instance.readParameter("SALESTAX_SCREEN", ref screenXML) == false)
            {
                return;
            }
            ScreenDefn defn = ScreenDefn.fromXML(screenXML.Replace(Server.FM_STR, Server.CRLF));

            if (defn == null)
            {
                return;
            }
            fScreen f = new fScreen();

            f.MdiParent = this;
            f.Show();
            f.Defn = defn;
        }
示例#3
0
        /// <summary>
        /// doMaintainSupplier
        /// </summary>
        /// <remarks>
        /// This runs a template-driven screen to maintain shipping costs.
        /// The template is held in the parameter file on the server.
        /// </remarks>
        protected void doMaintainSupplier()
        {
            string screenXML  = String.Empty;
            String screenName = (Server.Instance.moneyFormat == 1 ? "SUPPLIERS_SCREEN_INTL" : "SUPPLIERS_SCREEN");

            if (Server.Instance.readParameter(screenName, ref screenXML) == false)
            {
                return;
            }
            ScreenDefn defn = ScreenDefn.fromXML(screenXML.Replace(Server.FM_STR, Server.CRLF));

            if (defn == null)
            {
                return;
            }
            fScreen f = new fScreen();

            f.MdiParent = this;
            f.Show();
            f.Defn = defn;
        }