Пример #1
0
        void cmdEdit_Click(object sender, EventArgs e)
        {
            IRight        ir  = (IRight)iapplication.GetService(typeof(IRight));
            FormBuyApplay FBA = new FormBuyApplay(iapplication, idataservice, GetPlugQueryCmdInfo());

            FBA.RegStatickElement("F_CREATEUSER", System.Data.SqlDbType.Int, ir.UserId);
            FBA.RegStatickElement("F_CREATEAGENCY", System.Data.SqlDbType.Int, ir.AgencyId);
            FBA.ShowForm(FormType.Edit);
        }
Пример #2
0
        void cmdAdd_Click(object sender, EventArgs e)
        {
            IRight        ir  = (IRight)iapplication.GetService(typeof(IRight));
            FormBuyApplay FBA = new FormBuyApplay(iapplication, idataservice, GetPlugQueryCmdInfo());

            FBA.RegStatickElement("F_CREATEUSER", System.Data.SqlDbType.Int, ir.UserId);
            FBA.RegStatickElement("F_CREATEAGENCY", System.Data.SqlDbType.Int, ir.AgencyId);

            FBA.ShowForm(FormType.Insert);
            // FormCreateOrder FCO = new FormCreateOrder(iapplication,idataservice,GetPlugQueryCmdInfo());
            //
            //
            //// FCO.RegStatickElement("F_CREATENAME", System.Data.SqlDbType.VarChar, ir.UserName);
            //// FCO.RegStatickElement("F_CREATEAGENCY", System.Data.SqlDbType.VarChar, ir.AgencyName);
            // FCO.ShowForm(FormType.Insert);
        }