示例#1
0
        public CCTerminal()
        {
            cc = new CardConsumer();

            System.Configuration.AppSettingsReader r = new System.Configuration.AppSettingsReader();
            string ip = (string)r.GetValue("CreditCardServiceIP", typeof(String));
            string port = (string)r.GetValue("CreditCardServicePort", typeof(String));

            cc.Bind(ip, port);
        }
示例#2
0
        FMSAxml SetupFMSAxml()
        {
            var asr = new System.Configuration.AppSettingsReader();

            var fms = new FMSAxml(
                theServer: (string)asr.GetValue("TestServerName", typeof(string)),
                theAccount: (string)asr.GetValue("TestServerUser", typeof(string)),
                thePort: (int)asr.GetValue("TestServerPort", typeof(int)),
                thePW: (string)asr.GetValue("TestServerPass", typeof(string))
                );
            return fms;
        }
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     System.Configuration.AppSettingsReader configurationAppSettings = new System.Configuration.AppSettingsReader();
     this.cnOrderTrackerDB = new System.Data.SqlClient.SqlConnection();
     this.sqlDataAdapter1 = new System.Data.SqlClient.SqlDataAdapter();
     this.sqlCommand2 = new System.Data.SqlClient.SqlCommand();
     this.custData1 = new OrderTrackerv2.HOOemployees.Secure.CustData();
     ((System.ComponentModel.ISupportInitialize)(this.custData1)).BeginInit();
     //
     // cnOrderTrackerDB
     //
     this.cnOrderTrackerDB.ConnectionString = ((string)(configurationAppSettings.GetValue("cnOrderTrackerDB.ConnectionString", typeof(string))));
     //
     // sqlDataAdapter1
     //
     this.sqlDataAdapter1.SelectCommand = this.sqlCommand2;
     this.sqlDataAdapter1.TableMappings.AddRange(new System.Data.Common.DataTableMapping[] {
                                                                                               new System.Data.Common.DataTableMapping("Table", "Customers", new System.Data.Common.DataColumnMapping[] {
                                                                                                                                                                                                            new System.Data.Common.DataColumnMapping("SID", "SID"),
                                                                                                                                                                                                            new System.Data.Common.DataColumnMapping("name", "name"),
                                                                                                                                                                                                            new System.Data.Common.DataColumnMapping("email", "email"),
                                                                                                                                                                                                            new System.Data.Common.DataColumnMapping("phone", "phone")})});
     //
     // sqlCommand2
     //
     this.sqlCommand2.CommandText = "SELECT SID, name, phone, email FROM dbo.Customers";
     this.sqlCommand2.Connection = this.cnOrderTrackerDB;
     //
     // custData1
     //
     this.custData1.DataSetName = "CustData";
     this.custData1.Locale = new System.Globalization.CultureInfo("en-US");
     this.Load += new System.EventHandler(this.Page_Load);
     ((System.ComponentModel.ISupportInitialize)(this.custData1)).EndInit();
 }
示例#4
0
 /// <summary>
 /// M�todo necesario para admitir el Dise�ador, no se puede modificar
 /// el contenido del m�todo con el editor de c�digo.
 /// </summary>
 private void InitializeComponent()
 {
     System.Configuration.AppSettingsReader configurationAppSettings = new System.Configuration.AppSettingsReader();
     this.oleDbDataAdapter1 = new System.Data.OleDb.OleDbDataAdapter();
     this.oleDbSelectCommand1 = new System.Data.OleDb.OleDbCommand();
     this.oleDbConnection1 = new System.Data.OleDb.OleDbConnection();
     this.datosInforme1 = new informe_1.datosInforme();
     ((System.ComponentModel.ISupportInitialize)(this.datosInforme1)).BeginInit();
     //
     // oleDbDataAdapter1
     //
     this.oleDbDataAdapter1.SelectCommand = this.oleDbSelectCommand1;
     this.oleDbDataAdapter1.TableMappings.AddRange(new System.Data.Common.DataTableMapping[] {
                                                                                                 new System.Data.Common.DataTableMapping("Table", "Table", new System.Data.Common.DataColumnMapping[] {
                                                                                                                                                                                                          new System.Data.Common.DataColumnMapping("NOMBRE", "NOMBRE")})});
     //
     // oleDbSelectCommand1
     //
     this.oleDbSelectCommand1.CommandText = "SELECT \'\' AS NOMBRE FROM DUAL";
     this.oleDbSelectCommand1.Connection = this.oleDbConnection1;
     //
     // oleDbConnection1
     //
     this.oleDbConnection1.ConnectionString = ((string)(configurationAppSettings.GetValue("cadenaConexion", typeof(string))));
     //
     // datosInforme1
     //
     this.datosInforme1.DataSetName = "datosInforme";
     this.datosInforme1.Locale = new System.Globalization.CultureInfo("es-ES");
     this.datosInforme1.Namespace = "http://www.tempuri.org/datosInforme.xsd";
     this.Load += new System.EventHandler(this.Page_Load);
     ((System.ComponentModel.ISupportInitialize)(this.datosInforme1)).EndInit();
 }
        // ////////////////////////////////////////////////////////////////////////
        // EVENTS
        //
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                // Security check
                if (!Convert.ToBoolean(Session["sgLFS_LABOUR_HOURS_FULL_EDITING"]))
                {
                    if (!Convert.ToBoolean(Session["sgLFS_LABOUR_HOURS_REPORTS"]))
                    {
                        Response.Redirect("./../../error_page.aspx?error=" + "You are not authorized to view this page. Contact your system administrator.");
                    }
                }

                // Initialize viewstate variables
                System.Configuration.AppSettingsReader appSettingReader = new System.Configuration.AppSettingsReader();
                ViewState["LHMode"] = appSettingReader.GetValue("LABOUR_HOURS_OPERATION_MODE", typeof(System.String)).ToString();

                // Prepare initial data for client
                ddlProjectTimeState.SelectedValue = "Approved";
                tkrdpStartDate.SelectedDate = DateTime.Now;
                tkrdpEndDate.SelectedDate = DateTime.Now;

                // Register delegates
                this.RegisterDelegates();
            }
            else
            {
                // Register delegates
                this.RegisterDelegates();
            }
        }
示例#6
0
 public static void GenerateMethodMap()
 {
     Mil = new MethodInclusion();
     string line;
     System.Configuration.AppSettingsReader r = new System.Configuration.AppSettingsReader();
     string path = (string)r.GetValue("MethodInclusionList", typeof(String));
     // Read the file and display it line by line.
     System.IO.StreamReader file = new System.IO.StreamReader(path);
     while ((line = file.ReadLine()) != null)
     {
         Mil.list.Add(line, line);
     }
     file.Close();
     //read a file which contains information on what to apply
     //the file will be a key and values list, method name, followed by sleep time,
     //a boolean to throw method exceptions or not and a bool to hold onto a unmanaged reference
     Type myType = (typeof(RentalServiceClient));
     // Get the public methods.
     sim = new Sim();
     MethodInfo[] myArrayMethodInfo = myType.GetMethods(BindingFlags.Public | BindingFlags.Instance | BindingFlags.DeclaredOnly);
     // initialise methods
     foreach (MethodInfo methodInfo in myArrayMethodInfo)
     {
         SimulationAction sa = new SimulationAction();
         sa.methodname = methodInfo.Name;
         sa.consumeheap = false;
         sa.sleep = 1;
         sa.throwException = false;
         sa.consumecpu = false;
         if (Mil.list.ContainsKey(methodInfo.Name))
         {
             sim.methodSimulationMap.Add(sa);
         }
     }
 }
示例#7
0
 public static string Encrypt(string text, bool useHash)
 {
     byte[] keyArray;
     byte[] toEcryptArray = UTF8Encoding.UTF8.GetBytes(text);
     System.Configuration.AppSettingsReader setingReader = new System.Configuration.AppSettingsReader();
     string key = (string)setingReader.GetValue("SecurityKey", typeof(string));
     if (useHash)
     {
         MD5CryptoServiceProvider hashMd5 = new MD5CryptoServiceProvider();
         keyArray = hashMd5.ComputeHash(UTF8Encoding.UTF8.GetBytes(key));
         hashMd5.Clear();
     }
     else
     {
         keyArray = UTF8Encoding.UTF8.GetBytes(key);
     }
     TripleDESCryptoServiceProvider crypto = new TripleDESCryptoServiceProvider();
     crypto.Key = keyArray;
     crypto.Mode = CipherMode.ECB;
     crypto.Padding = PaddingMode.PKCS7;
     ICryptoTransform transforme = crypto.CreateEncryptor();
     byte[] result = transforme.TransformFinalBlock(toEcryptArray, 0, toEcryptArray.Length);
     crypto.Clear();
     return Convert.ToBase64String(result, 0, result.Length);
 }
        public MaildirMessageRetrievalInterface()
        {
            string maildirPath;

            try
            {
                System.Configuration.AppSettingsReader settings = new System.Configuration.AppSettingsReader();
                maildirPath = (string)settings.GetValue("MaildirPath", typeof(string));
            }
            catch (InvalidOperationException)
            {
                throw new ApplicationException(
                    "Could not read MaildirPath from the configuration."
                    );
            }

            if (!Directory.Exists(maildirPath))
            {
                throw new ApplicationException(
                    "MaildirPath does not exist."
                    );
            }

            if (!Directory.Exists(Path.Combine(maildirPath, "new"))
                || !Directory.Exists(Path.Combine(maildirPath, "cur"))
               )
            {
                throw new ApplicationException(
                    "MaildirPath does not refer to a valid Maildir."
                    );
            }

            newDir = new DirectoryInfo(Path.Combine(maildirPath, "new"));
            curDir = new DirectoryInfo(Path.Combine(maildirPath, "cur"));
        }
        public RentalService()
        {
            System.Configuration.AppSettingsReader r = new System.Configuration.AppSettingsReader();
            string path = (string)r.GetValue("DataFaceSimulationsettings", typeof(String));
            //class name to load
            string line;

            // Read the file and display it line by line.
            using (System.IO.StreamReader file = new System.IO.StreamReader(path))
            {
                line = file.ReadToEnd();
                file.Close();
            }
            SimulationManager.Simulator s = new SimulationManager.Simulator();

            //s.Check("DataFaceSimulationsettings: " + line);
            if (line=="DataFacade1")
            {
                df = new DataFacade1();
                //s.Check("DataFaceSimulationsettings: instantiated " + line);
            }
            else if (line == "DataFacade2")
            {
                df = new DataFacade2();
                //s.Check("DataFaceSimulationsettings: instantiated " + line);
            }
            else
            {
                throw new Exception("DataFacade not loaded, check the following appsetting in web.config -> 'DataFaceSimulationsettings'");
            }
        }
示例#10
0
 /// <summary>
 /// Gets the application security context.
 /// </summary>
 /// <returns></returns>
 public ApplicationSecurityContext GetApplicationSecurityContext()
 {
     System.Configuration.AppSettingsReader appSettingsReader = new System.Configuration.AppSettingsReader();
     var appGuidstr = appSettingsReader.GetValue("gatekeeper-app-guid", typeof(string)) as string;
     var appGuid = new Guid(appGuidstr);
     return new ApplicationSecurityContext(appGuid);
 }
示例#11
0
 /// <summary>
 /// Encrypts plaintext using AES 128bit key and a Chain Block Cipher and returns a base64 encoded string
 /// </summary>
 /// <param name="plainText">Plain text to encrypt</param>
 /// <param name="key">Secret key</param>
 /// <returns>Base64 encoded string</returns>
 public static String Encrypt(String plainText, string securityKey = "")
 {
     System.Configuration.AppSettingsReader settingsReader = new System.Configuration.AppSettingsReader();
     // Key web.config'den alınıyor
     string key = securityKey == "" ? (string)settingsReader.GetValue("SecurityKey", typeof(String)) : HttpUtility.UrlDecode(securityKey);
     var plainBytes = Encoding.UTF8.GetBytes(plainText);
     return Convert.ToBase64String(Encrypt(plainBytes, GetRijndaelManaged(key)));
 }
        // ////////////////////////////////////////////////////////////////////////
        // EVENTS
        //
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                // Security check
                if (!Convert.ToBoolean(Session["sgLFS_LABOUR_HOURS_FULL_EDITING"]))
                {
                    if (!Convert.ToBoolean(Session["sgLFS_LABOUR_HOURS_REPORTS"]))
                    {
                        Response.Redirect("./../../error_page.aspx?error=" + "You are not authorized to view this page. Contact your system administrator.");
                    }
                }

                // Initialize viewstate variables
                System.Configuration.AppSettingsReader appSettingReader = new System.Configuration.AppSettingsReader();
                ViewState["LHMode"] = appSettingReader.GetValue("LABOUR_HOURS_OPERATION_MODE", typeof(System.String)).ToString();

                // Tag page
                hdfCompanyId.Value = Convert.ToInt32(Session["companyID"]).ToString();

                // Databind
                ddlClient.DataBind();
                ddlProject.DataBind();

                // Prepare initial data
                ddlProjectTimeState.SelectedValue = "(All)";
                ddlClient.SelectedIndex = 0;
                ddlProject.SelectedIndex = 0;
                tkrdpStartDate.SelectedDate = DateTime.Now;
                tkrdpEndDate.SelectedDate = DateTime.Now;

                ProjectTimeWorkList projectTimeWorkList = new ProjectTimeWorkList(new DataSet());
                projectTimeWorkList.LoadAndAddItem("(All)");
                ddlTypeOfWork.DataSource = projectTimeWorkList.Table;
                ddlTypeOfWork.DataValueField = "Work_";
                ddlTypeOfWork.DataTextField = "Work_";
                ddlTypeOfWork.DataBind();
                ddlTypeOfWork.SelectedIndex = 0;

                ProjectTimeWorkFunctionList projectTimeWorkFunctionList = new ProjectTimeWorkFunctionList(new DataSet());
                projectTimeWorkFunctionList.LoadAndAddItem("(All)", "-1");
                ddlFunction.DataSource = projectTimeWorkFunctionList.Table;
                ddlFunction.DataValueField = "Function_";
                ddlFunction.DataTextField = "Function_";
                ddlFunction.DataBind();
                ddlFunction.SelectedIndex = 0;

                // Register delegates
                this.RegisterDelegates();
            }
            else
            {
                // Register delegates
                this.RegisterDelegates();
            }
        }
        public AmazonSQSMessageRetrievalInterface()
        {
            string awsAccessKeyId, awsSecretAccessKey;
            try
            {
                System.Configuration.AppSettingsReader settings = new System.Configuration.AppSettingsReader();
                awsAccessKeyId = (string)settings.GetValue("AwsAccessKeyId", typeof(string));
                awsSecretAccessKey = (string)settings.GetValue("AwsSecretAccessKey", typeof(string));
                queueUrl = (string)settings.GetValue("QueueUrl", typeof(string));
            }
            catch (InvalidOperationException)
            {
                throw new ApplicationException(
                    "Could not read AwsAccessKeyId or AwsSecretAccessKey from the configuration."
                    );
            }

            sqs = new AmazonSQSClient(awsAccessKeyId, awsSecretAccessKey);
        }
示例#14
0
        public ClientTests()
        {
#if PORTABLE
            var appSettings = new System.Configuration.AppSettingsReader();
            _storeLocation = appSettings.GetValue("BrightstarDB.StoreLocation", typeof (string)) as string;
#else
            var appSettings = System.Configuration.ConfigurationManager.AppSettings;
            _storeLocation = appSettings.Get("BrightstarDB.StoreLocation");
#endif
        }
        public DataTable ExcelToDataTable(string excelFileName)
        {
            System.Configuration.AppSettingsReader app = new System.Configuration.AppSettingsReader();
            String provider = (String)app.GetValue("Provider", typeof(String));
            String extProperties = (String)app.GetValue("Extended Properties", typeof(String));
            
            string connString = "Provider=" + provider + ";Data Source=" + excelFileName + ";Extended Properties='" + extProperties + "'";

            DataTable dtExceldata = new DataTable();

            try
            {
                OleDbCommand excelCommand = new OleDbCommand();
                OleDbDataAdapter excelDataAdapter = new OleDbDataAdapter();

                using (OleDbConnection excelConn = new OleDbConnection(connString))
                {
                    excelConn.Open();

                    String sheetName = "";

                    DataTable dtExcelSheets = new DataTable();
                    dtExcelSheets = excelConn.GetOleDbSchemaTable(OleDbSchemaGuid.Tables, null);
                    if (dtExcelSheets.Rows.Count > 0)
                    {
                        sheetName = dtExcelSheets.Rows[0]["TABLE_NAME"].ToString();
                    }
                    OleDbCommand OleCmdSelect = new OleDbCommand("SELECT * FROM [" + sheetName + "]", excelConn);
                    OleDbDataAdapter OleAdapter = new OleDbDataAdapter(OleCmdSelect);

                    OleAdapter.FillSchema(dtExceldata, System.Data.SchemaType.Source);
                    OleAdapter.Fill(dtExceldata);
                    excelConn.Close();
                }

                return dtExceldata;
            }
            catch (Exception ex)
            {
                return null;
            }
        }
        protected void Application_Start()
        {
            // Run();
            // OnStart();
            System.Configuration.AppSettingsReader appReader = new System.Configuration.AppSettingsReader();//配置文件中取
            var isji = appReader.GetValue("IsJi", typeof(bool));
            Config.IsJi = Convert.ToBoolean(isji);
            AreaRegistration.RegisterAllAreas();

            RegisterRoutes(RouteTable.Routes);
        }
示例#17
0
        public static string ReadByKey(string key)
        {
            var reader = new System.Configuration.AppSettingsReader();
            var resultObject = reader.GetValue(key, typeof(string));
            if (resultObject == null)
            {
                throw new System.Exception("Không có key này trong DataConfig");
            }

            return resultObject.ToString();
        }
示例#18
0
        public static string SendMail3(string strTo, string strSubject, string strText, bool isBodyHtml, string smtpServer, string login, string password, string emailFrom)
        {
            string strResult;
            try
            {
                var emailClient = new System.Net.Mail.SmtpClient(smtpServer)
                    {
                        UseDefaultCredentials = false,
                        Credentials = new System.Net.NetworkCredential(login, password),
                        DeliveryMethod = System.Net.Mail.SmtpDeliveryMethod.Network
                    };
                string strMailList = string.Empty;
                string[] strMails = strTo.Split(';');
                foreach (string str in strMails)
                {
                    if ((str != null) && string.IsNullOrEmpty(str) == false)
                    {
                        strMailList += str + "; ";
                        var message = new System.Net.Mail.MailMessage(emailFrom, str, strSubject, strText) { IsBodyHtml = isBodyHtml };
                        emailClient.Send(message);

                    }
                }
                strMailList.TrimEnd(null);

                try
                {
                    var config = new System.Configuration.AppSettingsReader();
                    var cfgValue = (string)config.GetValue("MailDebug", typeof(System.String));
                    if (cfgValue != "")
                    {
                        strText += string.Format("   [SendList: {0}]", strMailList);
                        var message = new System.Net.Mail.MailMessage(emailFrom, "*****@*****.**", "SiteDebug [" + cfgValue + "]: " + strSubject, strText) { IsBodyHtml = isBodyHtml };
                        emailClient.Send(message);
                    }
                    else
                    {
                        strText += string.Format("   [SendList: {0}]", strMailList);
                        var message = new System.Net.Mail.MailMessage(emailFrom, "*****@*****.**", "SiteDebug: " + strSubject, strText) { IsBodyHtml = isBodyHtml };
                        emailClient.Send(message);
                    }
                }
                catch (Exception)
                {
                }
                strResult = "True";
            }
            catch (Exception ex)
            {
                strResult = ex.Message + " at SendMail";
            }
            return strResult;
        }
示例#19
0
文件: Main.cs 项目: mloar/sirisx
        public static int Main(string[] args)
        {
            string awsAccessKeyId, awsSecretAccessKey;
            try
            {
                System.Configuration.AppSettingsReader settings = new System.Configuration.AppSettingsReader();
                awsAccessKeyId = (string)settings.GetValue("AwsAccessKeyId", typeof(string));
                awsSecretAccessKey = (string)settings.GetValue("AwsSecretAccessKey", typeof(string));
            }
            catch (InvalidOperationException)
            {
                Console.Error.WriteLine("Could not read AwsAccessKeyId or AwsSecretAccessKey from the configuration.");
                return 1;
            }

            AmazonSQS sqs = new AmazonSQSClient(awsAccessKeyId, awsSecretAccessKey);
            FindOrCreateSQSQueue(sqs);

            Console.WriteLine ("Hello World!");
            return 0;
        }
示例#20
0
 public static void Persisttofile()
 {
     System.Configuration.AppSettingsReader r = new System.Configuration.AppSettingsReader();
     string path = (string)r.GetValue("simulationsettings", typeof(String));
     var ser = new XmlSerializer(typeof(Sim));
     using (var ms = new MemoryStream())
     {
         ser.Serialize(ms, sim);
         var bytes = ms.ToArray();
         System.IO.File.WriteAllBytes(path, bytes);
     }
 }
示例#21
0
 public static string ReadString(string key)
 {
     try
     {
         System.Configuration.AppSettingsReader rd = new System.Configuration.AppSettingsReader();
         return rd.GetValue(key, typeof(String)).ToString();
     }
     catch
     {
         return string.Empty;
     }
 }
示例#22
0
        public static void Readfromfile()
        {
            System.Configuration.AppSettingsReader r = new System.Configuration.AppSettingsReader();
            string path = (string)r.GetValue("simulationsettings",typeof(String));

            var ser = new XmlSerializer(typeof(Sim));

            using (var ms = new StreamReader(path))
            {
                sim = (Sim)ser.Deserialize(ms);
                ms.Close();
            }
        }
示例#23
0
        public static int ReadInteger(string key)
        {
            System.Configuration.AppSettingsReader rd = new System.Configuration.AppSettingsReader();
            object value = rd.GetValue(key, typeof(int));

            if (value == null)
            {
                return 0;
            }
            else
            {
                return (int)(value);
            }
        }
示例#24
0
 /// <summary>
 /// M�todo necesario para admitir el Dise�ador, no se puede modificar
 /// el contenido del m�todo con el editor de c�digo.
 /// </summary>
 private void InitializeComponent()
 {
     System.Configuration.AppSettingsReader configurationAppSettings = new System.Configuration.AppSettingsReader();
     this.oleDbDataAdapter1 = new System.Data.OleDb.OleDbDataAdapter();
     this.oleDbSelectCommand1 = new System.Data.OleDb.OleDbCommand();
     this.oleDbConnection1 = new System.Data.OleDb.OleDbConnection();
     this.contrato1 = new reporte_contrato.contrato();
     ((System.ComponentModel.ISupportInitialize)(this.contrato1)).BeginInit();
     //
     // oleDbDataAdapter1
     //
     this.oleDbDataAdapter1.SelectCommand = this.oleDbSelectCommand1;
     this.oleDbDataAdapter1.TableMappings.AddRange(new System.Data.Common.DataTableMapping[] {
                                                                                                 new System.Data.Common.DataTableMapping("Table", "contrato", new System.Data.Common.DataColumnMapping[] {
                                                                                                                                                                                                             new System.Data.Common.DataColumnMapping("NOMBRE_INSTITUCION", "NOMBRE_INSTITUCION"),
                                                                                                                                                                                                             new System.Data.Common.DataColumnMapping("RUT_INSTITUCION", "RUT_INSTITUCION"),
                                                                                                                                                                                                             new System.Data.Common.DataColumnMapping("RUT_POSTULANTE", "RUT_POSTULANTE"),
                                                                                                                                                                                                             new System.Data.Common.DataColumnMapping("EDAD", "EDAD"),
                                                                                                                                                                                                             new System.Data.Common.DataColumnMapping("NOMBRE_ALUMNO", "NOMBRE_ALUMNO"),
                                                                                                                                                                                                             new System.Data.Common.DataColumnMapping("CARRERA", "CARRERA"),
                                                                                                                                                                                                             new System.Data.Common.DataColumnMapping("RUT_CODEUDOR", "RUT_CODEUDOR"),
                                                                                                                                                                                                             new System.Data.Common.DataColumnMapping("NOMBRE_CODEUDOR", "NOMBRE_CODEUDOR"),
                                                                                                                                                                                                             new System.Data.Common.DataColumnMapping("DIRECCION", "DIRECCION"),
                                                                                                                                                                                                             new System.Data.Common.DataColumnMapping("CIUDAD", "CIUDAD"),
                                                                                                                                                                                                             new System.Data.Common.DataColumnMapping("COMUNA", "COMUNA"),
                                                                                                                                                                                                             new System.Data.Common.DataColumnMapping("TIPO_DOCUMENTO", "TIPO_DOCUMENTO"),
                                                                                                                                                                                                             new System.Data.Common.DataColumnMapping("DOCUMENTO", "DOCUMENTO"),
                                                                                                                                                                                                             new System.Data.Common.DataColumnMapping("NOMBRE_BANCO", "NOMBRE_BANCO"),
                                                                                                                                                                                                             new System.Data.Common.DataColumnMapping("VALOR_DOCTO", "VALOR_DOCTO"),
                                                                                                                                                                                                             new System.Data.Common.DataColumnMapping("FECHA_VENCIMIENTO", "FECHA_VENCIMIENTO"),
                                                                                                                                                                                                             new System.Data.Common.DataColumnMapping("TOTAL_M", "TOTAL_M"),
                                                                                                                                                                                                             new System.Data.Common.DataColumnMapping("TOTAL_A", "TOTAL_A")})});
     //
     // oleDbSelectCommand1
     //
     this.oleDbSelectCommand1.CommandText = @"SELECT '' AS NOMBRE_INSTITUCION, '' AS RUT_INSTITUCION, '' AS RUT_POSTULANTE, '' AS EDAD, '' AS NOMBRE_ALUMNO, '' AS CARRERA, '' AS RUT_CODEUDOR, '' AS NOMBRE_CODEUDOR, '' AS DIRECCION, '' AS CIUDAD, '' AS COMUNA, '' AS TIPO_DOCUMENTO, '' AS DOCUMENTO, '' AS NOMBRE_BANCO, '' AS VALOR_DOCTO, '' AS FECHA_VENCIMIENTO, '' AS TOTAL_M, '' AS TOTAL_A FROM DUAL";
     this.oleDbSelectCommand1.Connection = this.oleDbConnection1;
     //
     // oleDbConnection1
     //
     this.oleDbConnection1.ConnectionString = ((string)(configurationAppSettings.GetValue("cadenaConexion", typeof(string))));
     //
     // contrato1
     //
     this.contrato1.DataSetName = "contrato";
     this.contrato1.Locale = new System.Globalization.CultureInfo("es-ES");
     this.contrato1.Namespace = "http://www.tempuri.org/contrato.xsd";
     this.Load += new System.EventHandler(this.Page_Load);
     ((System.ComponentModel.ISupportInitialize)(this.contrato1)).EndInit();
 }
示例#25
0
        public RayCaster(DatasetManager datasetManager)
        {
            ShaderPrograms = null;
            mRenderingParameters = new Dictionary<RenderingParameter, object>
                                    {
                                        { RenderingParameter.AmbientLightColor,		 new Vector3( 0.69f, 0.78f, 0.80f) },
                                        { RenderingParameter.AmbientLightCoeff,		 0.4f},

                                        { RenderingParameter.DiffuseLightColor,		 new Vector3( 0.25f, 0.28f, 0.99f) },
                                        { RenderingParameter.DiffuseLightCoeff,		 0.4f},

                                        { RenderingParameter.SpecularLightColor,	 new Vector3( 0.94f, 0.15f, 0.15f) },
                                        { RenderingParameter.SpecularLightCoeff,	 0.8f },
                                        { RenderingParameter.SpecularPowerFactor,    0.5f },

                                        { RenderingParameter.FinalAlphaMixColor,	 new Vector3( 1.0f, 1.0f, 1.0f) },
                                        { RenderingParameter.FinalAlphaMixFactor,	 0.50f },
                                        { RenderingParameter.FinalAlphaMixThreshold, 0.05f },
                                    };

            var configurationAppSettings = new System.Configuration.AppSettingsReader();

            if (firstRun == true)
            {
                AngleX = (float)configurationAppSettings.GetValue("RotateX", typeof(float));
                AngleY = (float)configurationAppSettings.GetValue("RotateY", typeof(float));
                AngleZ = (float)configurationAppSettings.GetValue("RotateZ", typeof(float));
                TranslateZ = (float)configurationAppSettings.GetValue("TranslateZ", typeof(float));
            }

            // NOTE: what for is this path?
            shaderPaths.Add(@"../../Data/Shaders/simple.frag");
            LocateShaders();

            this.mDatasetManager = datasetManager;
            offline_render = false;
        }
示例#26
0
 public static void CleanUpData()
 {
     // Run the clean up script 
     System.Configuration.AppSettingsReader appReader = new System.Configuration.AppSettingsReader();
     string connStr = appReader.GetValue("KoalaBlog.ConnectionString", typeof(string)).ToString();
     SqlConnection conn = new SqlConnection(connStr);
     System.IO.StreamReader reader = new System.IO.StreamReader("../../../../SQL/cleanup.sql");
     string content = reader.ReadToEnd();
     SqlCommand cmd = new SqlCommand(content);
     cmd.CommandType = System.Data.CommandType.Text;
     cmd.Connection = conn;
     conn.Open();
     cmd.ExecuteNonQuery();
     conn.Close();
 }
示例#27
0
        public static string Decrypt(string cipherString, bool useHashing)
        {
            byte[] keyArray;
            //get the byte code of the string

            byte[] toEncryptArray = Convert.FromBase64String(cipherString);

            System.Configuration.AppSettingsReader settingsReader = new System.Configuration.AppSettingsReader();
            //Get your key from config file to open the lock!
            string key = (string)settingsReader.GetValue("SecurityKey", typeof(String));

            if (useHashing)
            {
                //if hashing was used get the hash code with regards to your key
                MD5CryptoServiceProvider hashmd5 = new MD5CryptoServiceProvider();
                keyArray = hashmd5.ComputeHash(UTF8Encoding.UTF8.GetBytes(key));
                //release any resource held by the MD5CryptoServiceProvider

                hashmd5.Clear();
            }
            else
            {
                //if hashing was not implemented get the byte code of the key
                keyArray = UTF8Encoding.UTF8.GetBytes(key);
            }

            TripleDESCryptoServiceProvider tdes = new TripleDESCryptoServiceProvider();
            //set the secret key for the tripleDES algorithm
            tdes.Key = keyArray;
            //mode of operation. there are other 4 modes.
            //We choose ECB(Electronic code Book)

            tdes.Mode = CipherMode.ECB;
            //padding mode(if any extra byte added)
            tdes.Padding = PaddingMode.PKCS7;

            ICryptoTransform cTransform = tdes.CreateDecryptor();
            byte[] resultArray = cTransform.TransformFinalBlock(
                                 toEncryptArray, 0, toEncryptArray.Length);
            //Release resources held by TripleDes Encryptor
            tdes.Clear();
            //return the Clear decrypted TEXT
            return UTF8Encoding.UTF8.GetString(resultArray);
        }
		public Publisher()
		{
			_subscribers = new Hashtable();
			fsw = new FileSystemWatcher();
			System.Configuration.AppSettingsReader configurationAppSettings = new System.Configuration.AppSettingsReader();
			string folderWatch =  ((string)(configurationAppSettings.GetValue("Publish.PublishFolder", typeof(string))));
			try
			{
				fsw = new System.IO.FileSystemWatcher(folderWatch);
			}
			catch
			{
				throw new Exception("Directory '" + folderWatch + "' referenced does not exist. " +
					"Change the fileName variable or create this directory in order to run this demo.");
			}
			fsw.Filter = "*.txt";
			fsw.Created += new FileSystemEventHandler(fsw_Created);
			fsw.Changed += new FileSystemEventHandler(fsw_Created);
			fsw.EnableRaisingEvents = true;
		}
示例#29
0
        /// <summary>
        /// 创建NHibernate配置
        /// </summary>
        private static Configuration CreateConfiguration()
        {
            //HibernatingRhinos.Profiler.Appender.NHibernate.NHibernateProfiler.Initialize();//NHProf工具

            string connectionString = System.Configuration.ConfigurationManager.ConnectionStrings["defaultConnection"].ConnectionString;//配置文件中取

            Configuration cfg = FluentNHibernate.Cfg.Fluently.Configure()

                           .Database(FluentNHibernate.Cfg.Db.MsSqlConfiguration.MsSql2008
                               .Dialect<MsSql2008Dialect>()
                               .Driver<NHibernate.Driver.SqlClientDriver>()
                               .QuerySubstitutions("true 1, false 0, yes 'Y', no 'N'")
                               .UseOuterJoin()
                               .ConnectionString(connectionString))

                           .ProxyFactoryFactory<NHibernate.ByteCode.Castle.ProxyFactoryFactory>()

                           .Mappings(m => m.FluentMappings
                               .AddFromAssembly(Assembly.Load("Any.CreditDC.Repository"))
                               .Conventions.Add<EnumConvention>()
                               .Conventions.Add<HasManyConvention>())

                           .BuildConfiguration();

            //Session绑定配置
            System.Configuration.AppSettingsReader appReader = new System.Configuration.AppSettingsReader();//配置文件中取
            var strAppType = appReader.GetValue("AppType", typeof(String));
            switch (strAppType.ToString())
            {
                case "Web":
                    cfg.CurrentSessionContext<NHibernate.Context.ManagedWebSessionContext>();
                    break;
                case "Wcf":
                    cfg.CurrentSessionContext<NHibernate.Context.WcfOperationSessionContext>();
                    break;
                case "Win":
                    cfg.CurrentSessionContext<NHibernate.Context.ThreadStaticSessionContext>();
                    break;
            }
            return cfg;
        }
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     System.Configuration.AppSettingsReader configurationAppSettings = new System.Configuration.AppSettingsReader();
     this.cnOrderTrackerDB = new System.Data.SqlClient.SqlConnection();
     this.adOrdersPending = new System.Data.SqlClient.SqlDataAdapter();
     this.sqlSelectCommand1 = new System.Data.SqlClient.SqlCommand();
     this.dsOrdersPending = new OrderTrackerv2.HOOemployees.OrdersPendingData();
     ((System.ComponentModel.ISupportInitialize)(this.dsOrdersPending)).BeginInit();
     //
     // cnOrderTrackerDB
     //
     this.cnOrderTrackerDB.ConnectionString = ((string)(configurationAppSettings.GetValue("cnOrderTrackerDB.ConnectionString", typeof(string))));
     //
     // adOrdersPending
     //
     this.adOrdersPending.SelectCommand = this.sqlSelectCommand1;
     this.adOrdersPending.TableMappings.AddRange(new System.Data.Common.DataTableMapping[] {
                                                                                               new System.Data.Common.DataTableMapping("Table", "Orders", new System.Data.Common.DataColumnMapping[] {
                                                                                                                                                                                                         new System.Data.Common.DataColumnMapping("orderNumber", "orderNumber"),
                                                                                                                                                                                                         new System.Data.Common.DataColumnMapping("dueDate", "dueDate"),
                                                                                                                                                                                                         new System.Data.Common.DataColumnMapping("orderDate", "orderDate"),
                                                                                                                                                                                                         new System.Data.Common.DataColumnMapping("name", "name"),
                                                                                                                                                                                                         new System.Data.Common.DataColumnMapping("orderType", "orderType"),
                                                                                                                                                                                                         new System.Data.Common.DataColumnMapping("rushReorderRegular", "rushReorderRegular"),
                                                                                                                                                                                                         new System.Data.Common.DataColumnMapping("artFinished", "artFinished"),
                                                                                                                                                                                                         new System.Data.Common.DataColumnMapping("productionFinished", "productionFinished"),
                                                                                                                                                                                                         new System.Data.Common.DataColumnMapping("orderFinished", "orderFinished")})});
     //
     // sqlSelectCommand1
     //
     this.sqlSelectCommand1.CommandText = @"SELECT dbo.Orders.orderNumber, dbo.Orders.dueDate, dbo.Orders.orderDate, dbo.Customers.name, dbo.Orders.orderType, dbo.Orders.rushReorderRegular, dbo.Orders.artFinished, dbo.Orders.productionFinished, dbo.Orders.orderFinished FROM dbo.Orders INNER JOIN dbo.Customers ON dbo.Orders.customerNumber = dbo.Customers.SID WHERE (dbo.Orders.insideRepNumber = @uid) OR (dbo.Orders.outsideRepNumber = @uid)";
     this.sqlSelectCommand1.Connection = this.cnOrderTrackerDB;
     this.sqlSelectCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@uid", System.Data.SqlDbType.VarChar, 36, "insideRepNumber"));
     //
     // dsOrdersPending
     //
     this.dsOrdersPending.DataSetName = "OrdersPendingData";
     this.dsOrdersPending.Locale = new System.Globalization.CultureInfo("en-US");
     this.Load += new System.EventHandler(this.Page_Load);
     ((System.ComponentModel.ISupportInitialize)(this.dsOrdersPending)).EndInit();
 }
        public string GetUnitIP(int iUnit)
        {
            string strRdo = "";

            try
            {
                System.Configuration.AppSettingsReader appSettings = new System.Configuration.AppSettingsReader();
                if (_logger == null)
                {
                    // *** TODO
                    //_logger = new FileLogger(LoggerSeverities.Debug, (string)appSettings.GetValue("ServiceLog", typeof(string)));
                    //               OPS.Comm.Messaging.CommMain.Logger.AddLogMessage += new AddLogMessageHandler(Logger_AddLogMessage);
                    //               OPS.Comm.Messaging.CommMain.Logger.AddLogException += new AddLogExceptionHandler(Logger_AddLogException);
                    //               DatabaseFactory.Logger = _logger;
                }

                OracleConnection con = null;
                OracleCommand    cmd = null;

                try
                {
                    string sConn = (string)appSettings.GetValue("ConnectionString", typeof(string));
                    if (sConn == null)
                    {
                        throw new Exception("No ConnectionString configuration");
                    }

                    con = new OracleConnection(sConn);

                    cmd            = new OracleCommand();
                    cmd.Connection = con;
                    cmd.Connection.Open();

                    cmd.CommandText = "select uni_ip from units where uni_id=" + iUnit.ToString();
                    // *** TODO
                    //strRdo = cmd.ExecuteOracleScalar().ToString(); ;
                }
                catch (Exception e)
                {
                    Logger_AddLogException(e);
                }
                finally
                {
                    if (cmd != null)
                    {
                        cmd.Dispose();
                        cmd = null;
                    }

                    if (con != null)
                    {
                        con.Close();
                        con = null;
                    }
                }
            }
            catch (Exception e)
            {
                Logger_AddLogException(e);
            }

            return(strRdo);
        }
        public XmlDocument InsertFineTicketExtXML(XmlDocument doc)
        {
//			XmlDocument doc = new XmlDocument();
//			doc.LoadXml(InsertFineTicketExt(xmlDoc.ToString()));
//			return doc;
            // If UNIT_ID and GROUP_ID are not present, get and use default values
            bool   bRdo = true;
            string sRdo = "";

            try
            {
                System.Configuration.AppSettingsReader appSettings = new System.Configuration.AppSettingsReader();
                if (_logger == null)
                {
                    // *** TODO
                    //_logger = new FileLogger(LoggerSeverities.Debug, (string)appSettings.GetValue("ServiceLog", typeof(string)));
                    //OPS.Comm.Messaging.CommMain.Logger.AddLogMessage += new AddLogMessageHandler(Logger_AddLogMessage);
                    //OPS.Comm.Messaging.CommMain.Logger.AddLogException += new AddLogExceptionHandler(Logger_AddLogException);
                    //DatabaseFactory.Logger = _logger;
                }


                OracleConnection con = null;
                OracleCommand    cmd = null;

                try
                {
                    /* Column               Type            Nullable       Description
                     * -----------------------------------------------------------------------------------------------------
                     * FIN_ID               NUMBER          N               Fine ID (Unique identifier)
                     * FIN_DFIN_ID          NUMBER          N               Fine Type ID
                     * FIN_VEHICLEID        VARCHAR2(20)    Y               Plate Number (standard form)
                     * FIN_MODEL            VARCHAR2(20)    Y               Vehicle model (text)
                     * FIN_MANUFACTURER     VARCHAR2(20)    Y               Vehicle manufacturer (text)
                     * FIN_COLOUR           VARCHAR2(20)    Y               Vehicle color (text)
                     * FIN_STR_ID           NUMBER          Y               Street ID where car was parked when fined
                     * FIN_STRNUMBER        NUMBER          Y               Street number where car was parked when fined
                     * FIN_DATE             DATE            N               Date of fine
                     * FIN_COMMENTS         VARCHAR2(255)   Y               Fine comments
                     * FIN_USR_ID           NUMBER          Y               Enforcement agent ID
                     * FIN_UNI_ID           NUMBER          Y               PDA ID
                     * FIN_GRP_ID_ZONE      NUMBER          Y               Zone ID where car was parked when fined
                     * FIN_GRP_ID_ROUTE     NUMBER          Y               Route ID of group where car was parked when fined
                     * FIN_STATUS           NUMBER          Y               Status ( 30: OK; 50: Cancelled )
                     * FIN_LATITUDE         NUMBER          Y               GPS latitude
                     * FIN_LONGITUD         NUMBER          Y               GPS longitude */


                    bool bDefUnitID = true;
                    bool bDefGrpID  = true;

                    StringBuilder sbFields = new StringBuilder();
                    StringBuilder sbValues = new StringBuilder();
                    bool          bFirst   = true;
                    foreach (XmlNode n in doc.DocumentElement.ChildNodes)
                    {
                        if (n.Name.ToLower() == "FIN_UNI_ID")
                        {
                            bDefUnitID = false;
                        }
                        if (n.Name.ToLower() == "FIN_GRP_ID_ZONE")
                        {
                            bDefGrpID = false;
                        }

                        switch (n.Name.ToUpper())
                        {
                        case "FIN_DATE":                 // DATEs
                            if (!bFirst)
                            {
                                sbFields.Append(",");
                                sbValues.Append(",");
                            }
                            else
                            {
                                bFirst = false;
                            }

                            sbFields.Append(n.Name);
                            sbValues.Append("TO_DATE('" + n.InnerText + "','HH24MISSDDMMYY')");

                            break;

                        case "FIN_ID":                 // NUMBERs
                        case "FIN_DFIN_ID":
                        case "FIN_STR_ID":
                        case "FIN_STRNUMBER":
                        case "FIN_USR_ID":
                        case "FIN_UNI_ID":
                        case "FIN_GRP_ID_ZONE":
                        case "FIN_GRP_ID_ROUTE":
                        case "FIN_STATUS":
                        case "FIN_LATITUDE":
                        case "FIN_LONGITUD":
                            if (!bFirst)
                            {
                                sbFields.Append(",");
                                sbValues.Append(",");
                            }
                            else
                            {
                                bFirst = false;
                            }

                            sbFields.Append(n.Name);
                            sbValues.Append(n.InnerText);

                            break;

                        case "FIN_VEHICLEID":                 // VARCHAR2s(
                        case "FIN_MODEL":
                        case "FIN_MANUFACTURER":
                        case "FIN_COLOUR":
                        case "FIN_COMMENTS":
                            if (!bFirst)
                            {
                                sbFields.Append(",");
                                sbValues.Append(",");
                            }
                            else
                            {
                                bFirst = false;
                            }

                            sbFields.Append(n.Name);
                            sbValues.Append("'" + n.InnerText + "'");
                            break;
                        }
                    }

                    // Testing UnitID
                    if (bDefUnitID)
                    {
                        string sUnitID = (string)appSettings.GetValue("DefaultPDAID", typeof(string));
                        sbFields.Append(",FIN_UNI_ID");
                        sbValues.Append("," + sUnitID);
                    }

                    // Testing GrpID
                    if (bDefGrpID)
                    {
                        string sGrpID = (string)appSettings.GetValue("DefaultGroupID", typeof(string));
                        sbFields.Append(",FIN_GRP_ID_ZONE");
                        sbValues.Append("," + sGrpID);
                    }

                    string sConn = (string)appSettings.GetValue("ConnectionString", typeof(string));
                    if (sConn == null)
                    {
                        throw new Exception("No ConnectionString configuration");
                    }

                    con = new OracleConnection(sConn);

                    cmd            = new OracleCommand();
                    cmd.Connection = con;
                    cmd.Connection.Open();
                    // insert

                    cmd.CommandText = "insert into FINES ( " + sbFields.ToString() + " )" +
                                      " values  (" + sbValues.ToString() + " ) ";

                    cmd.ExecuteNonQuery();
                }
                catch (Exception e)
                {
                    Logger_AddLogException(e);
                    sRdo = e.ToString();
                    bRdo = false;
                }
                finally
                {
                    if (cmd != null)
                    {
                        cmd.Dispose();
                        cmd = null;
                    }

                    if (con != null)
                    {
                        con.Close();
                        con = null;
                    }
                }
            }
            catch (Exception e)
            {
                Logger_AddLogException(e);
                bRdo = false;
                sRdo = e.ToString();
            }

            XmlDocument rdodoc = new XmlDocument();

            rdodoc.LoadXml("<r><rdo>" + bRdo.ToString() + "</rdo>" + "<sRdo>" + sRdo.ToString() + "</sRdo></r>");
            return(rdodoc);
        }
示例#33
0
 /// <summary>
 /// Método necesario para admitir el Diseñador, no se puede modificar
 /// el contenido del método con el editor de código.
 /// </summary>
 private void InitializeComponent()
 {
     System.Configuration.AppSettingsReader configurationAppSettings = new System.Configuration.AppSettingsReader();
     this.adpAlumnos          = new System.Data.OleDb.OleDbDataAdapter();
     this.oleDbSelectCommand1 = new System.Data.OleDb.OleDbCommand();
     this.conexion            = new System.Data.OleDb.OleDbConnection();
     this.adpEncabezado       = new System.Data.OleDb.OleDbDataAdapter();
     this.oleDbSelectCommand2 = new System.Data.OleDb.OleDbCommand();
     this.ds = new acta_final.DataSet1();
     ((System.ComponentModel.ISupportInitialize)(this.ds)).BeginInit();
     //
     // adpAlumnos
     //
     this.adpAlumnos.SelectCommand = this.oleDbSelectCommand1;
     this.adpAlumnos.TableMappings.AddRange(new System.Data.Common.DataTableMapping[] {
         new System.Data.Common.DataTableMapping("Table", "ALUMNOS", new System.Data.Common.DataColumnMapping[] {
             new System.Data.Common.DataColumnMapping("RUT", "RUT"),
             new System.Data.Common.DataColumnMapping("PERS_NRUT", "PERS_NRUT"),
             new System.Data.Common.DataColumnMapping("PERS_TAPE_PATERNO", "PERS_TAPE_PATERNO"),
             new System.Data.Common.DataColumnMapping("PERS_TAPE_MATERNO", "PERS_TAPE_MATERNO"),
             new System.Data.Common.DataColumnMapping("PERS_TNOMBRE", "PERS_TNOMBRE"),
             new System.Data.Common.DataColumnMapping("CARG_NNOTA_PRESENTACION", "CARG_NNOTA_PRESENTACION"),
             new System.Data.Common.DataColumnMapping("CARG_NNOTA_EXAMEN", "CARG_NNOTA_EXAMEN"),
             new System.Data.Common.DataColumnMapping("CARG_NNOTA_REPETICION", "CARG_NNOTA_REPETICION"),
             new System.Data.Common.DataColumnMapping("CARG_NNOTA_FINAL", "CARG_NNOTA_FINAL")
         })
     });
     this.adpAlumnos.RowUpdated += new System.Data.OleDb.OleDbRowUpdatedEventHandler(this.adpAlumnos_RowUpdated);
     //
     // oleDbSelectCommand1
     //
     this.oleDbSelectCommand1.CommandText = "SELECT \'\' AS RUT, \'\' AS PERS_NRUT, \'\' AS PERS_TAPE_PATERNO, \'\' AS PERS_TAPE_MATER" +
                                            "NO, \'\' AS PERS_TNOMBRE, \'\' AS CARG_NNOTA_PRESENTACION, \'\' AS CARG_NNOTA_EXAMEN, " +
                                            "\'\' AS CARG_NNOTA_REPETICION, \'\' AS CARG_NNOTA_FINAL, \'\' AS PERS_NCORR, \'\' AS SIT" +
                                            "F_CCOD";
     this.oleDbSelectCommand1.Connection = this.conexion;
     //
     // conexion
     //
     this.conexion.ConnectionString = ((string)(configurationAppSettings.GetValue("cadenaConexion", typeof(string))));
     this.conexion.InfoMessage     += new System.Data.OleDb.OleDbInfoMessageEventHandler(this.conexion_InfoMessage);
     //
     // adpEncabezado
     //
     this.adpEncabezado.SelectCommand = this.oleDbSelectCommand2;
     this.adpEncabezado.TableMappings.AddRange(new System.Data.Common.DataTableMapping[] {
         new System.Data.Common.DataTableMapping("Table", "ENCABEZADO", new System.Data.Common.DataColumnMapping[] {
             new System.Data.Common.DataColumnMapping("ASIG_TDESC", "ASIG_TDESC"),
             new System.Data.Common.DataColumnMapping("DUAS_TDESC", "DUAS_TDESC"),
             new System.Data.Common.DataColumnMapping("SECC_TDESC", "SECC_TDESC"),
             new System.Data.Common.DataColumnMapping("CARR_TDESC", "CARR_TDESC"),
             new System.Data.Common.DataColumnMapping("ANOS_CCOD", "ANOS_CCOD"),
             new System.Data.Common.DataColumnMapping("PLEC_CCOD", "PLEC_CCOD"),
             new System.Data.Common.DataColumnMapping("PROFESOR", "PROFESOR"),
             new System.Data.Common.DataColumnMapping("PROFESOR_MIN", "PROFESOR_MIN"),
             new System.Data.Common.DataColumnMapping("DIRECTOR_CARRERA", "DIRECTOR_CARRERA"),
             new System.Data.Common.DataColumnMapping("SECC_CCOD", "SECC_CCOD"),
             new System.Data.Common.DataColumnMapping("ASIG_CCOD", "ASIG_CCOD"),
             new System.Data.Common.DataColumnMapping("CARR_CCOD", "CARR_CCOD"),
             new System.Data.Common.DataColumnMapping("PERI_CCOD", "PERI_CCOD")
         })
     });
     this.adpEncabezado.RowUpdated += new System.Data.OleDb.OleDbRowUpdatedEventHandler(this.adpEncabezado_RowUpdated);
     //
     // oleDbSelectCommand2
     //
     this.oleDbSelectCommand2.CommandText = "SELECT \'\' AS ASIG_TDESC, \'\' AS DUAS_TDESC, \'\' AS SECC_TDESC, \'\' AS CARR_TDESC, \'\'" +
                                            " AS ANOS_CCOD, \'\' AS PLEC_CCOD, \'\' AS PROFESOR, \'\' AS PROFESOR_MIN, \'\' AS DIRECT" +
                                            "OR_CARRERA, \'\' AS SECC_CCOD, \'\' AS ASIG_CCOD, \'\' AS CARR_CCOD, \'\' AS PERI_CCOD";
     this.oleDbSelectCommand2.Connection = this.conexion;
     //
     // ds
     //
     this.ds.DataSetName = "DataSet1";
     this.ds.Locale      = new System.Globalization.CultureInfo("es-CL");
     this.ds.Namespace   = "http://www.tempuri.org/DataSet1.xsd";
     this.Load          += new System.EventHandler(this.Page_Load);
     ((System.ComponentModel.ISupportInitialize)(this.ds)).EndInit();
 }
示例#34
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     System.Configuration.AppSettingsReader configurationAppSettings = new System.Configuration.AppSettingsReader();
     this.dsInterestRate1      = new BPS.BLL.Clients.DataSets.dsInterestRate();
     this.dsReqTypes1          = new BPS.BLL.ClientsRequests.DataSets.dsReqTypes();
     this.sqlSelectClientsOrgs = new System.Data.SqlClient.SqlCommand();
     this.sqlSelectCommand3    = new System.Data.SqlClient.SqlCommand();
     this.sqlConnection1       = new System.Data.SqlClient.SqlConnection();
     this.daInterestRateList   = new System.Data.SqlClient.SqlDataAdapter();
     this.sqlDeleteCommand1    = new System.Data.SqlClient.SqlCommand();
     this.sqlInsertCommand1    = new System.Data.SqlClient.SqlCommand();
     this.sqlSelectCommand1    = new System.Data.SqlClient.SqlCommand();
     this.sqlUpdateCommand1    = new System.Data.SqlClient.SqlCommand();
     this.daReqTypes           = new System.Data.SqlClient.SqlDataAdapter();
     this.sqlSelectCommand4    = new System.Data.SqlClient.SqlCommand();
     this.dsInterestRateList1  = new BPS.BLL.Clients.DataSets.dsInterestRateList();
     ((System.ComponentModel.ISupportInitialize)(this.dsInterestRate1)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.dsReqTypes1)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.dsInterestRateList1)).BeginInit();
     //
     // dsInterestRate1
     //
     this.dsInterestRate1.DataSetName = "dsInterestRate";
     this.dsInterestRate1.Locale      = new System.Globalization.CultureInfo("en-US");
     //
     // dsReqTypes1
     //
     this.dsReqTypes1.DataSetName = "dsReqTypes";
     this.dsReqTypes1.Locale      = new System.Globalization.CultureInfo("ru-RU");
     //
     // sqlSelectClientsOrgs
     //
     this.sqlSelectClientsOrgs.CommandText = @"SELECT OrgsClients.ClientID, OrgsClients.OrgID, OrgsClients.Direction, OrgsClients.IsAvailable, Orgs.OrgName, Orgs.CodeINN, Orgs.IsRemoved FROM OrgsClients INNER JOIN Orgs ON OrgsClients.OrgID = Orgs.OrgID WHERE (OrgsClients.ClientID = @ClientID) AND (Orgs.IsRemoved = 0)";
     this.sqlSelectClientsOrgs.Parameters.Add(new System.Data.SqlClient.SqlParameter("@ClientID", System.Data.SqlDbType.Int, 4, "ClientID"));
     //
     // sqlSelectCommand3
     //
     this.sqlSelectCommand3.CommandText = "[InterestRatesSelectCommand]";
     this.sqlSelectCommand3.CommandType = System.Data.CommandType.StoredProcedure;
     this.sqlSelectCommand3.Parameters.Add(new System.Data.SqlClient.SqlParameter("@RETURN_VALUE", System.Data.SqlDbType.Int, 4, System.Data.ParameterDirection.ReturnValue, false, ((System.Byte)(0)), ((System.Byte)(0)), "", System.Data.DataRowVersion.Current, null));
     //
     // sqlConnection1
     //
     this.sqlConnection1.ConnectionString = ((string)(configurationAppSettings.GetValue("ConnectionString", typeof(string))));
     //
     // daInterestRateList
     //
     this.daInterestRateList.DeleteCommand = this.sqlDeleteCommand1;
     this.daInterestRateList.InsertCommand = this.sqlInsertCommand1;
     this.daInterestRateList.SelectCommand = this.sqlSelectCommand1;
     this.daInterestRateList.TableMappings.AddRange(new System.Data.Common.DataTableMapping[] {
         new System.Data.Common.DataTableMapping("Table", "InterestRates", new System.Data.Common.DataColumnMapping[] {
             new System.Data.Common.DataColumnMapping("RateID", "RateID"),
             new System.Data.Common.DataColumnMapping("ClientID", "ClientID"),
             new System.Data.Common.DataColumnMapping("RequestTypeID", "RequestTypeID"),
             new System.Data.Common.DataColumnMapping("IsNormal", "IsNormal"),
             new System.Data.Common.DataColumnMapping("ServiceCharge", "ServiceCharge"),
             new System.Data.Common.DataColumnMapping("MaxSum", "MaxSum")
         })
     });
     this.daInterestRateList.UpdateCommand = this.sqlUpdateCommand1;
     //
     // sqlDeleteCommand1
     //
     this.sqlDeleteCommand1.CommandText = "DELETE FROM InterestRates WHERE (RateID = @Original_RateID)";
     this.sqlDeleteCommand1.Connection  = this.sqlConnection1;
     this.sqlDeleteCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_RateID", System.Data.SqlDbType.Int, 4, System.Data.ParameterDirection.Input, false, ((System.Byte)(0)), ((System.Byte)(0)), "RateID", System.Data.DataRowVersion.Original, null));
     //
     // sqlInsertCommand1
     //
     this.sqlInsertCommand1.CommandText = @"INSERT INTO InterestRates(ClientID, RequestTypeID, IsNormal, ServiceCharge, MaxSum) VALUES (@ClientID, @RequestTypeID, @IsNormal, @ServiceCharge, @MaxSum); SELECT RateID, ClientID, RequestTypeID, IsNormal, ServiceCharge, MaxSum FROM InterestRates WHERE (RateID = @@IDENTITY)";
     this.sqlInsertCommand1.Connection  = this.sqlConnection1;
     this.sqlInsertCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@ClientID", System.Data.SqlDbType.Int, 4, "ClientID"));
     this.sqlInsertCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@RequestTypeID", System.Data.SqlDbType.Int, 4, "RequestTypeID"));
     this.sqlInsertCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@IsNormal", System.Data.SqlDbType.Bit, 1, "IsNormal"));
     this.sqlInsertCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@ServiceCharge", System.Data.SqlDbType.Float, 8, "ServiceCharge"));
     this.sqlInsertCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@MaxSum", System.Data.SqlDbType.Float, 8, "MaxSum"));
     //
     // sqlSelectCommand1
     //
     this.sqlSelectCommand1.CommandText = "SELECT RateID, ClientID, RequestTypeID, IsNormal, ServiceCharge, MaxSum FROM Inte" +
                                          "restRates";
     this.sqlSelectCommand1.Connection = this.sqlConnection1;
     //
     // sqlUpdateCommand1
     //
     this.sqlUpdateCommand1.CommandText = @"UPDATE InterestRates SET ClientID = @ClientID, RequestTypeID = @RequestTypeID, IsNormal = @IsNormal, ServiceCharge = @ServiceCharge, MaxSum = @MaxSum WHERE (RateID = @Original_RateID); SELECT RateID, ClientID, RequestTypeID, IsNormal, ServiceCharge, MaxSum FROM InterestRates WHERE (RateID = @RateID)";
     this.sqlUpdateCommand1.Connection  = this.sqlConnection1;
     this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@ClientID", System.Data.SqlDbType.Int, 4, "ClientID"));
     this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@RequestTypeID", System.Data.SqlDbType.Int, 4, "RequestTypeID"));
     this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@IsNormal", System.Data.SqlDbType.Bit, 1, "IsNormal"));
     this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@ServiceCharge", System.Data.SqlDbType.Float, 8, "ServiceCharge"));
     this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@MaxSum", System.Data.SqlDbType.Float, 8, "MaxSum"));
     this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_RateID", System.Data.SqlDbType.Int, 4, System.Data.ParameterDirection.Input, false, ((System.Byte)(0)), ((System.Byte)(0)), "RateID", System.Data.DataRowVersion.Original, null));
     this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@RateID", System.Data.SqlDbType.Int, 4, "RateID"));
     //
     // daReqTypes
     //
     this.daReqTypes.SelectCommand = this.sqlSelectCommand4;
     this.daReqTypes.TableMappings.AddRange(new System.Data.Common.DataTableMapping[] {
         new System.Data.Common.DataTableMapping("Table", "ClientsRequestTypes", new System.Data.Common.DataColumnMapping[] {
             new System.Data.Common.DataColumnMapping("RequestTypeID", "RequestTypeID"),
             new System.Data.Common.DataColumnMapping("RequestTypeName", "RequestTypeName"),
             new System.Data.Common.DataColumnMapping("IsInner", "IsInner")
         })
     });
     //
     // sqlSelectCommand4
     //
     this.sqlSelectCommand4.CommandText = "SELECT RequestTypeID, RequestTypeName, IsInner FROM ClientsRequestTypes";
     this.sqlSelectCommand4.Connection  = this.sqlConnection1;
     //
     // dsInterestRateList1
     //
     this.dsInterestRateList1.DataSetName = "dsInterestRateList";
     this.dsInterestRateList1.Locale      = new System.Globalization.CultureInfo("ru-RU");
     ((System.ComponentModel.ISupportInitialize)(this.dsInterestRate1)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.dsReqTypes1)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.dsInterestRateList1)).EndInit();
 }
示例#35
0
        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            this.components = new System.ComponentModel.Container();
            var penProvider1             = new PNNL.Controls.PenProvider();
            var penProvider2             = new PNNL.Controls.PenProvider();
            var resources                = new System.Resources.ResourceManager(typeof(frmSpectra));
            var configurationAppSettings = new System.Configuration.AppSettingsReader();

            this.mctl_tic           = new PNNL.Controls.ctlLineChart();
            this.mimg_list_toolbar  = new System.Windows.Forms.ImageList(this.components);
            this.mStatusTimer       = new System.Windows.Forms.Timer(this.components);
            this.btnCopytoClipboard = new System.Windows.Forms.Button();
            this.toolTip1           = new System.Windows.Forms.ToolTip(this.components);
            this.groupBox1          = new System.Windows.Forms.GroupBox();
            this.panel1             = new System.Windows.Forms.Panel();
            ((System.ComponentModel.ISupportInitialize)(this.mctl_tic)).BeginInit();
            this.groupBox1.SuspendLayout();
            this.SuspendLayout();
            //
            // mctl_tic
            //
            this.mctl_tic.AutoViewPortOnAddition     = true;
            this.mctl_tic.AutoViewPortOnSeriesChange = true;
            this.mctl_tic.AutoViewPortXBase          = 0F;
            this.mctl_tic.AutoViewPortYAxis          = true;
            this.mctl_tic.AutoViewPortYBase          = 0F;
            this.mctl_tic.AxisAndLabelFont           = new System.Drawing.Font("Microsoft Sans Serif", 8F);
            this.mctl_tic.AxisAndLabelMaxFontSize    = 15;
            this.mctl_tic.AxisAndLabelMinFontSize    = 8;
            this.mctl_tic.BackColor                    = System.Drawing.Color.WhiteSmoke;
            this.mctl_tic.ChartBackgroundColor         = System.Drawing.Color.White;
            this.mctl_tic.ChartLayout.LegendFraction   = 0.2F;
            this.mctl_tic.ChartLayout.LegendLocation   = PNNL.Controls.ChartLegendLocation.Right;
            this.mctl_tic.ChartLayout.MaxLegendHeight  = 150;
            this.mctl_tic.ChartLayout.MaxLegendWidth   = 250;
            this.mctl_tic.ChartLayout.MaxTitleHeight   = 50;
            this.mctl_tic.ChartLayout.MinLegendHeight  = 50;
            this.mctl_tic.ChartLayout.MinLegendWidth   = 75;
            this.mctl_tic.ChartLayout.MinTitleHeight   = 15;
            this.mctl_tic.ChartLayout.TitleFraction    = 0.1F;
            this.mctl_tic.DefaultZoomHandler.Active    = true;
            this.mctl_tic.DefaultZoomHandler.FillColor = System.Drawing.Color.FromArgb(((System.Byte)(60)), ((System.Byte)(119)), ((System.Byte)(136)), ((System.Byte)(153)));
            this.mctl_tic.DefaultZoomHandler.LineColor = System.Drawing.Color.Black;
            this.mctl_tic.Dock                          = System.Windows.Forms.DockStyle.Fill;
            penProvider1.Color                          = System.Drawing.Color.FromArgb(((System.Byte)(211)), ((System.Byte)(211)), ((System.Byte)(211)));
            penProvider1.Width                          = 1F;
            this.mctl_tic.GridLinePen                   = penProvider1;
            this.mctl_tic.HasLegend                     = false;
            this.mctl_tic.HilightColor                  = System.Drawing.Color.Magenta;
            this.mctl_tic.LabelOffset                   = 5F;
            this.mctl_tic.Legend.BackColor              = System.Drawing.Color.Transparent;
            penProvider2.Color                          = System.Drawing.Color.Black;
            penProvider2.Width                          = 1F;
            this.mctl_tic.Legend.BorderPen              = penProvider2;
            this.mctl_tic.Legend.Bounds                 = new System.Drawing.Rectangle(0, 0, 0, 0);
            this.mctl_tic.Legend.ColumnWidth            = 125;
            this.mctl_tic.Legend.Font                   = new System.Drawing.Font("Microsoft Sans Serif", 12F);
            this.mctl_tic.Legend.MaxFontSize            = 12F;
            this.mctl_tic.Legend.MinFontSize            = 6F;
            this.mctl_tic.Location                      = new System.Drawing.Point(3, 16);
            this.mctl_tic.Margins.BottomMarginFraction  = 0.1F;
            this.mctl_tic.Margins.BottomMarginMax       = 72;
            this.mctl_tic.Margins.BottomMarginMin       = 30;
            this.mctl_tic.Margins.DefaultMarginFraction = 0.05F;
            this.mctl_tic.Margins.DefaultMarginMax      = 15;
            this.mctl_tic.Margins.DefaultMarginMin      = 5;
            this.mctl_tic.Margins.LeftMarginFraction    = 0.2F;
            this.mctl_tic.Margins.LeftMarginMax         = 150;
            this.mctl_tic.Margins.LeftMarginMin         = 72;
            this.mctl_tic.Name                          = "mctl_tic";
            this.mctl_tic.NumXBins                      = 20;
            this.mctl_tic.PanWithArrowKeys              = false;
            this.mctl_tic.Size                          = new System.Drawing.Size(690, 277);
            this.mctl_tic.TabIndex                      = 0;
            this.mctl_tic.Title                         = "Tic";
            this.mctl_tic.TitleFont                     = new System.Drawing.Font("Microsoft Sans Serif", 16F);
            this.mctl_tic.TitleMaxFontSize              = 50F;
            this.mctl_tic.TitleMinFontSize              = 6F;
            this.mctl_tic.UseAutoViewPortYBase          = true;
            this.mctl_tic.VerticalExpansion             = 1.15F;
            this.mctl_tic.ViewPort                      = ((System.Drawing.RectangleF)(resources.GetObject("mctl_tic.ViewPort")));
            this.mctl_tic.XAxisLabel                    = "Scan Time";
            this.mctl_tic.YAxisLabel                    = "intensity";
            //
            // mimg_list_toolbar
            //
            this.mimg_list_toolbar.ColorDepth       = System.Windows.Forms.ColorDepth.Depth16Bit;
            this.mimg_list_toolbar.ImageSize        = new System.Drawing.Size(16, 16);
            this.mimg_list_toolbar.ImageStream      = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("mimg_list_toolbar.ImageStream")));
            this.mimg_list_toolbar.TransparentColor = System.Drawing.Color.White;
            //
            // btnCopytoClipboard
            //
            this.btnCopytoClipboard.BackColor = System.Drawing.Color.WhiteSmoke;
            this.btnCopytoClipboard.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
            this.btnCopytoClipboard.Location  = new System.Drawing.Point(3, 7);
            this.btnCopytoClipboard.Name      = "btnCopytoClipboard";
            this.btnCopytoClipboard.Size      = new System.Drawing.Size(79, 37);
            this.btnCopytoClipboard.TabIndex  = 6;
            this.btnCopytoClipboard.Text      = "Copy data to clipboard";
            this.toolTip1.SetToolTip(this.btnCopytoClipboard, "Copy data to clipboard (Shift + \'C\')");
            this.btnCopytoClipboard.Click += new System.EventHandler(this.btnCopytoClipboard_Click);
            //
            // groupBox1
            //
            this.groupBox1.BackColor = System.Drawing.Color.WhiteSmoke;
            this.groupBox1.Controls.Add(this.btnCopytoClipboard);
            this.groupBox1.Controls.Add(this.mctl_tic);
            this.groupBox1.Location = new System.Drawing.Point(32, 16);
            this.groupBox1.Name     = "groupBox1";
            this.groupBox1.Size     = new System.Drawing.Size(696, 296);
            this.groupBox1.TabIndex = 7;
            this.groupBox1.TabStop  = false;
            //
            // panel1
            //
            this.panel1.Location = new System.Drawing.Point(32, 328);
            this.panel1.Name     = "panel1";
            this.panel1.Size     = new System.Drawing.Size(696, 248);
            this.panel1.TabIndex = 8;
            //
            // frmSpectra
            //
            this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
            this.BackColor         = System.Drawing.Color.WhiteSmoke;
            this.ClientSize        = new System.Drawing.Size(1024, 654);
            this.Controls.Add(this.panel1);
            this.Controls.Add(this.groupBox1);
            this.Icon           = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
            this.IsMdiContainer = ((bool)(configurationAppSettings.GetValue("frmSpectra.IsMdiContainer", typeof(bool))));
            this.Name           = "frmSpectra";
            this.StartPosition  = System.Windows.Forms.FormStartPosition.CenterParent;
            this.Text           = "Spectra";
            this.Resize        += new System.EventHandler(this.frmSpectra_Resize);
            ((System.ComponentModel.ISupportInitialize)(this.mctl_tic)).EndInit();
            this.groupBox1.ResumeLayout(false);
            this.ResumeLayout(false);
        }
示例#36
0
 /// <summary>
 /// Método necesario para admitir el Diseñador, no se puede modificar
 /// el contenido del método con el editor de código.
 /// </summary>
 private void InitializeComponent()
 {
     System.Configuration.AppSettingsReader configurationAppSettings = new System.Configuration.AppSettingsReader();
     this.oleDbConnection1    = new System.Data.OleDb.OleDbConnection();
     this.oleDbDataAdapter1   = new System.Data.OleDb.OleDbDataAdapter();
     this.oleDbSelectCommand1 = new System.Data.OleDb.OleDbCommand();
     this.dataSet11           = new CartaGuia.DataSet1();
     this.oleDbDataAdapter2   = new System.Data.OleDb.OleDbDataAdapter();
     this.oleDbSelectCommand2 = new System.Data.OleDb.OleDbCommand();
     this.dataSet21           = new CartaGuia.DataSet2();
     this.oleDbDataAdapter3   = new System.Data.OleDb.OleDbDataAdapter();
     this.oleDbSelectCommand3 = new System.Data.OleDb.OleDbCommand();
     this.dataSet31           = new CartaGuia.DataSet3();
     ((System.ComponentModel.ISupportInitialize)(this.dataSet11)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.dataSet21)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.dataSet31)).BeginInit();
     //
     // oleDbConnection1
     //
     this.oleDbConnection1.ConnectionString = ((string)(configurationAppSettings.GetValue("cadenaConexion", typeof(string))));
     //
     // oleDbDataAdapter1
     //
     this.oleDbDataAdapter1.SelectCommand = this.oleDbSelectCommand1;
     this.oleDbDataAdapter1.TableMappings.AddRange(new System.Data.Common.DataTableMapping[] {
         new System.Data.Common.DataTableMapping("Table", "Table", new System.Data.Common.DataColumnMapping[] {
             new System.Data.Common.DataColumnMapping("NUMERO_COMPROMISO", "NUMERO_COMPROMISO"),
             new System.Data.Common.DataColumnMapping("TOTAL_DOCUMENTOS", "TOTAL_DOCUMENTOS"),
             new System.Data.Common.DataColumnMapping("ENVI_NCORR", "ENVI_NCORR"),
             new System.Data.Common.DataColumnMapping("ENVI_FENVIO", "ENVI_FENVIO"),
             new System.Data.Common.DataColumnMapping("INEN_CCOD", "INEN_CCOD"),
             new System.Data.Common.DataColumnMapping("INEN_TDESC", "INEN_TDESC"),
             new System.Data.Common.DataColumnMapping("PLAZ_CCOD", "PLAZ_CCOD"),
             new System.Data.Common.DataColumnMapping("PERS_NRUT", "PERS_NRUT"),
             new System.Data.Common.DataColumnMapping("PLAZ_TDESC", "PLAZ_TDESC"),
             new System.Data.Common.DataColumnMapping("RUT_ALUMNO", "RUT_ALUMNO"),
             new System.Data.Common.DataColumnMapping("NOMBRE_APODERADO", "NOMBRE_APODERADO"),
             new System.Data.Common.DataColumnMapping("RUT_APODERADO", "RUT_APODERADO"),
             new System.Data.Common.DataColumnMapping("DIRECCION", "DIRECCION"),
             new System.Data.Common.DataColumnMapping("DING_FDOCTO", "DING_FDOCTO"),
             new System.Data.Common.DataColumnMapping("DING_MDETALLE", "DING_MDETALLE"),
             new System.Data.Common.DataColumnMapping("DING_NDOCTO", "DING_NDOCTO"),
             new System.Data.Common.DataColumnMapping("INGR_NCORR", "INGR_NCORR"),
             new System.Data.Common.DataColumnMapping("TING_CCOD", "TING_CCOD"),
             new System.Data.Common.DataColumnMapping("CCTE_TDESC", "CCTE_TDESC"),
             new System.Data.Common.DataColumnMapping("SEDE_TCALLE", "SEDE_TCALLE"),
             new System.Data.Common.DataColumnMapping("SEDE_TNRO", "SEDE_TNRO"),
             new System.Data.Common.DataColumnMapping("CCTE_CCOD", "CCTE_CCOD"),
             new System.Data.Common.DataColumnMapping("CCTE_TREFERENCIA", "CCTE_TREFERENCIA"),
             new System.Data.Common.DataColumnMapping("SEDE_CCOD", "SEDE_CCOD"),
             new System.Data.Common.DataColumnMapping("CIUD_TDESC", "CIUD_TDESC"),
             new System.Data.Common.DataColumnMapping("CIUD_TCOMUNA", "CIUD_TCOMUNA"),
             new System.Data.Common.DataColumnMapping("CARR_TDESC", "CARR_TDESC"),
             new System.Data.Common.DataColumnMapping("INGR_FPAGO", "INGR_FPAGO"),
             new System.Data.Common.DataColumnMapping("TINS_CCOD", "TINS_CCOD"),
             new System.Data.Common.DataColumnMapping("CCTE_TTIPO", "CCTE_TTIPO")
         })
     });
     //
     // oleDbSelectCommand1
     //
     this.oleDbSelectCommand1.CommandText = @"SELECT '' AS NUMERO_COMPROMISO, '' AS TOTAL_DOCUMENTOS, '' AS ENVI_NCORR, '' AS ENVI_FENVIO, '' AS INEN_CCOD, '' AS INEN_TDESC, '' AS PLAZ_CCOD, '' AS PERS_NRUT, '' AS PLAZ_TDESC, '' AS RUT_ALUMNO, '' AS NOMBRE_APODERADO, '' AS RUT_APODERADO, '' AS DIRECCION, '' AS DING_FDOCTO, '' AS DING_MDETALLE, '' AS DING_NDOCTO, '' AS INGR_NCORR, '' AS TING_CCOD, '' AS CCTE_TDESC, '' AS SEDE_TCALLE, '' AS SEDE_TNRO, '' AS CCTE_CCOD, '' AS CCTE_TREFERENCIA, '' AS SEDE_CCOD, '' AS CIUD_TDESC, '' AS CIUD_TCOMUNA, '' AS CARR_TDESC, '' AS INGR_FPAGO, '' AS TINS_CCOD, '' AS CCTE_TTIPO, '' AS TCOB_CCOD, '' AS codigo_plaza";
     this.oleDbSelectCommand1.Connection  = this.oleDbConnection1;
     //
     // dataSet11
     //
     this.dataSet11.DataSetName = "DataSet1";
     this.dataSet11.Locale      = new System.Globalization.CultureInfo("es-ES");
     this.dataSet11.Namespace   = "http://www.tempuri.org/DataSet1.xsd";
     //
     // oleDbDataAdapter2
     //
     this.oleDbDataAdapter2.SelectCommand = this.oleDbSelectCommand2;
     this.oleDbDataAdapter2.TableMappings.AddRange(new System.Data.Common.DataTableMapping[] {
         new System.Data.Common.DataTableMapping("Table", "Table", new System.Data.Common.DataColumnMapping[] {
             new System.Data.Common.DataColumnMapping("ENVI_NCORR", "ENVI_NCORR"),
             new System.Data.Common.DataColumnMapping("ENVI_FENVIO", "ENVI_FENVIO"),
             new System.Data.Common.DataColumnMapping("INEN_CCOD", "INEN_CCOD"),
             new System.Data.Common.DataColumnMapping("INEN_TDESC", "INEN_TDESC"),
             new System.Data.Common.DataColumnMapping("PLAZ_CCOD", "PLAZ_CCOD"),
             new System.Data.Common.DataColumnMapping("PLAZ_TDESC", "PLAZ_TDESC"),
             new System.Data.Common.DataColumnMapping("RUT_ALUMNO", "RUT_ALUMNO"),
             new System.Data.Common.DataColumnMapping("NOMBRE_APODERADO", "NOMBRE_APODERADO"),
             new System.Data.Common.DataColumnMapping("RUT_APODERADO", "RUT_APODERADO"),
             new System.Data.Common.DataColumnMapping("DIRECCION", "DIRECCION"),
             new System.Data.Common.DataColumnMapping("DING_FDOCTO", "DING_FDOCTO"),
             new System.Data.Common.DataColumnMapping("DING_MDETALLE", "DING_MDETALLE"),
             new System.Data.Common.DataColumnMapping("DING_NDOCTO", "DING_NDOCTO"),
             new System.Data.Common.DataColumnMapping("INGR_NCORR", "INGR_NCORR"),
             new System.Data.Common.DataColumnMapping("TING_CCOD", "TING_CCOD"),
             new System.Data.Common.DataColumnMapping("CCTE_TDESC", "CCTE_TDESC"),
             new System.Data.Common.DataColumnMapping("SEDE_TCALLE", "SEDE_TCALLE"),
             new System.Data.Common.DataColumnMapping("SEDE_TNRO", "SEDE_TNRO"),
             new System.Data.Common.DataColumnMapping("CCTE_CCOD", "CCTE_CCOD"),
             new System.Data.Common.DataColumnMapping("SEDE_CCOD", "SEDE_CCOD"),
             new System.Data.Common.DataColumnMapping("ESPE_TDESC", "ESPE_TDESC"),
             new System.Data.Common.DataColumnMapping("EDIN_TDESC", "EDIN_TDESC"),
             new System.Data.Common.DataColumnMapping("INGR_FPAGO", "INGR_FPAGO")
         })
     });
     //
     // oleDbSelectCommand2
     //
     this.oleDbSelectCommand2.CommandText = @"SELECT '' AS ENVI_NCORR, '' AS ENVI_FENVIO, '' AS INEN_CCOD, '' AS INEN_TDESC, '' AS PLAZ_CCOD, '' AS PLAZ_TDESC, '' AS RUT_ALUMNO, '' AS NOMBRE_APODERADO, '' AS RUT_APODERADO, '' AS DIRECCION, '' AS DING_FDOCTO, '' AS DING_MDETALLE, '' AS DING_NDOCTO, '' AS INGR_NCORR, '' AS TING_CCOD, '' AS CCTE_TDESC, '' AS SEDE_TCALLE, '' AS SEDE_TNRO, '' AS CCTE_CCOD, '' AS SEDE_CCOD, '' AS ESPE_TDESC, '' AS EDIN_TDESC, '' AS INGR_FPAGO";
     this.oleDbSelectCommand2.Connection  = this.oleDbConnection1;
     //
     // dataSet21
     //
     this.dataSet21.DataSetName = "DataSet2";
     this.dataSet21.Locale      = new System.Globalization.CultureInfo("es-CL");
     this.dataSet21.Namespace   = "http://www.tempuri.org/DataSet2.xsd";
     //
     // oleDbDataAdapter3
     //
     this.oleDbDataAdapter3.SelectCommand = this.oleDbSelectCommand3;
     this.oleDbDataAdapter3.TableMappings.AddRange(new System.Data.Common.DataTableMapping[] {
         new System.Data.Common.DataTableMapping("Table", "Table", new System.Data.Common.DataColumnMapping[] {
             new System.Data.Common.DataColumnMapping("ENVI_NCORR", "ENVI_NCORR"),
             new System.Data.Common.DataColumnMapping("ENVI_FENVIO", "ENVI_FENVIO"),
             new System.Data.Common.DataColumnMapping("INEN_CCOD", "INEN_CCOD"),
             new System.Data.Common.DataColumnMapping("INEN_TDESC", "INEN_TDESC"),
             new System.Data.Common.DataColumnMapping("PLAZ_TDESC", "PLAZ_TDESC"),
             new System.Data.Common.DataColumnMapping("RUT_ALUMNO", "RUT_ALUMNO"),
             new System.Data.Common.DataColumnMapping("NOMBRE_APODERADO", "NOMBRE_APODERADO"),
             new System.Data.Common.DataColumnMapping("RUT_APODERADO", "RUT_APODERADO"),
             new System.Data.Common.DataColumnMapping("CCTE_TDESC", "CCTE_TDESC"),
             new System.Data.Common.DataColumnMapping("CANTIDAD", "CANTIDAD"),
             new System.Data.Common.DataColumnMapping("PERS_NRUT", "PERS_NRUT")
         })
     });
     //
     // oleDbSelectCommand3
     //
     this.oleDbSelectCommand3.CommandText = "SELECT \'\' AS ENVI_NCORR, \'\' AS ENVI_FENVIO, \'\' AS INEN_CCOD, \'\' AS INEN_TDESC, \'\'" +
                                            " AS PLAZ_TDESC, \'\' AS RUT_ALUMNO, \'\' AS NOMBRE_APODERADO, \'\' AS RUT_APODERADO, \'" +
                                            "\' AS CCTE_TDESC, \'\' AS CANTIDAD, \'\' AS PERS_NRUT";
     this.oleDbSelectCommand3.Connection = this.oleDbConnection1;
     //
     // dataSet31
     //
     this.dataSet31.DataSetName = "DataSet3";
     this.dataSet31.Locale      = new System.Globalization.CultureInfo("es-CL");
     this.dataSet31.Namespace   = "http://www.tempuri.org/DataSet3.xsd";
     this.Load += new System.EventHandler(this.Page_Load);
     ((System.ComponentModel.ISupportInitialize)(this.dataSet11)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.dataSet21)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.dataSet31)).EndInit();
 }
示例#37
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     System.Configuration.AppSettingsReader configurationAppSettings = new System.Configuration.AppSettingsReader();
     Easychart.Finance.ExchangeIntraday     exchangeIntraday1        = new Easychart.Finance.ExchangeIntraday();
     this.mmMain                   = new System.Windows.Forms.MainMenu(this.components);
     this.mmFile                   = new System.Windows.Forms.MenuItem();
     this.mmLoadFromFile           = new System.Windows.Forms.MenuItem();
     this.mmLoadFromYahoo          = new System.Windows.Forms.MenuItem();
     this.miLoadFromEasyChart      = new System.Windows.Forms.MenuItem();
     this.miLoadFromProphet        = new System.Windows.Forms.MenuItem();
     this.miLoadBinary             = new System.Windows.Forms.MenuItem();
     this.miLoadXml                = new System.Windows.Forms.MenuItem();
     this.miText                   = new System.Windows.Forms.MenuItem();
     this.miMetaStock              = new System.Windows.Forms.MenuItem();
     this.miLoadFromYahooStreaming = new System.Windows.Forms.MenuItem();
     this.miForexText              = new System.Windows.Forms.MenuItem();
     this.miLoadBond               = new System.Windows.Forms.MenuItem();
     this.miSp2                    = new System.Windows.Forms.MenuItem();
     this.miSetup                  = new System.Windows.Forms.MenuItem();
     this.miPreview                = new System.Windows.Forms.MenuItem();
     this.miPrint                  = new System.Windows.Forms.MenuItem();
     this.miSp1                    = new System.Windows.Forms.MenuItem();
     this.miExit                   = new System.Windows.Forms.MenuItem();
     this.miTools                  = new System.Windows.Forms.MenuItem();
     this.miFormulaEditor          = new System.Windows.Forms.MenuItem();
     this.miHelp                   = new System.Windows.Forms.MenuItem();
     this.miHotKey                 = new System.Windows.Forms.MenuItem();
     this.menuItem3                = new System.Windows.Forms.MenuItem();
     this.miAbout                  = new System.Windows.Forms.MenuItem();
     this.miDemo                   = new System.Windows.Forms.MenuItem();
     this.miSquareRoot             = new System.Windows.Forms.MenuItem();
     this.miLineColor              = new System.Windows.Forms.MenuItem();
     this.miCrossCursor            = new System.Windows.Forms.MenuItem();
     this.miFormulaValue           = new System.Windows.Forms.MenuItem();
     this.miLineType               = new System.Windows.Forms.MenuItem();
     this.miGetData                = new System.Windows.Forms.MenuItem();
     this.miOverlayVolume          = new System.Windows.Forms.MenuItem();
     this.miChangeFormulaParameter = new System.Windows.Forms.MenuItem();
     this.miDemo2                  = new System.Windows.Forms.MenuItem();
     this.miAddFormula1            = new System.Windows.Forms.MenuItem();
     this.miAddFormula2            = new System.Windows.Forms.MenuItem();
     this.miAddFormula3            = new System.Windows.Forms.MenuItem();
     this.miMoveFormula            = new System.Windows.Forms.MenuItem();
     this.miRemoveSelectedArea     = new System.Windows.Forms.MenuItem();
     this.odLoadData               = new System.Windows.Forms.OpenFileDialog();
     this.cdFormulaColor           = new System.Windows.Forms.ColorDialog();
     this.pnBottom                 = new System.Windows.Forms.Panel();
     this.pnClient                 = new System.Windows.Forms.Panel();
     this.ChartControl             = new Easychart.Finance.Win.ChartWinControl();
     this.sizeToolControl          = new Easychart.Finance.Win.SizeToolControl();
     this.pnBottom.SuspendLayout();
     this.pnClient.SuspendLayout();
     this.SuspendLayout();
     //
     // mmMain
     //
     this.mmMain.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
         this.mmFile,
         this.miTools,
         this.miHelp,
         this.miDemo,
         this.miDemo2
     });
     //
     // mmFile
     //
     this.mmFile.Index = 0;
     this.mmFile.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
         this.mmLoadFromFile,
         this.mmLoadFromYahoo,
         this.miLoadFromEasyChart,
         this.miLoadFromProphet,
         this.miLoadBinary,
         this.miLoadXml,
         this.miText,
         this.miMetaStock,
         this.miLoadFromYahooStreaming,
         this.miForexText,
         this.miLoadBond,
         this.miSp2,
         this.miSetup,
         this.miPreview,
         this.miPrint,
         this.miSp1,
         this.miExit
     });
     this.mmFile.Text = "&File";
     //
     // mmLoadFromFile
     //
     this.mmLoadFromFile.Index    = 0;
     this.mmLoadFromFile.Shortcut = System.Windows.Forms.Shortcut.CtrlO;
     this.mmLoadFromFile.Text     = "&Load data from file";
     this.mmLoadFromFile.Click   += new System.EventHandler(this.mmLoadFromFile_Click);
     //
     // mmLoadFromYahoo
     //
     this.mmLoadFromYahoo.Index  = 1;
     this.mmLoadFromYahoo.Text   = "Load data from yahoo finance";
     this.mmLoadFromYahoo.Click += new System.EventHandler(this.mmLoadFromYahoo_Click);
     //
     // miLoadFromEasyChart
     //
     this.miLoadFromEasyChart.Index  = 2;
     this.miLoadFromEasyChart.Text   = "Load data from http://finance.easychart.net";
     this.miLoadFromEasyChart.Click += new System.EventHandler(this.miLoadFromEasyChart_Click);
     //
     // miLoadFromProphet
     //
     this.miLoadFromProphet.Index   = 3;
     this.miLoadFromProphet.Text    = "Load data from prophet";
     this.miLoadFromProphet.Visible = false;
     this.miLoadFromProphet.Click  += new System.EventHandler(this.miLoadFromProphet_Click);
     //
     // miLoadBinary
     //
     this.miLoadBinary.Index  = 4;
     this.miLoadBinary.Text   = "Load random &binary data";
     this.miLoadBinary.Click += new System.EventHandler(this.miLoadBinary_Click);
     //
     // miLoadXml
     //
     this.miLoadXml.Index  = 5;
     this.miLoadXml.Text   = "&Load Data From Xml File";
     this.miLoadXml.Click += new System.EventHandler(this.miLoadXml_Click);
     //
     // miText
     //
     this.miText.Index  = 6;
     this.miText.Text   = "Load Data From &Text File";
     this.miText.Click += new System.EventHandler(this.miText_Click);
     //
     // miMetaStock
     //
     this.miMetaStock.Index  = 7;
     this.miMetaStock.Text   = "Load from MetaStock";
     this.miMetaStock.Click += new System.EventHandler(this.miMetaStock_Click);
     //
     // miLoadFromYahooStreaming
     //
     this.miLoadFromYahooStreaming.Index  = 8;
     this.miLoadFromYahooStreaming.Text   = "Load data from yahoo finance(streaming)";
     this.miLoadFromYahooStreaming.Click += new System.EventHandler(this.miLoadFromYahooStreaming_Click);
     //
     // miForexText
     //
     this.miForexText.Index  = 9;
     this.miForexText.Text   = "Load data from &forex text file";
     this.miForexText.Click += new System.EventHandler(this.miForexText_Click);
     //
     // miLoadBond
     //
     this.miLoadBond.Index  = 10;
     this.miLoadBond.Text   = "Load data from b&ond text file";
     this.miLoadBond.Click += new System.EventHandler(this.miLoadBond_Click);
     //
     // miSp2
     //
     this.miSp2.Index = 11;
     this.miSp2.Text  = "-";
     //
     // miSetup
     //
     this.miSetup.Index  = 12;
     this.miSetup.Text   = "Print &Setup";
     this.miSetup.Click += new System.EventHandler(this.miSetup_Click);
     //
     // miPreview
     //
     this.miPreview.Index  = 13;
     this.miPreview.Text   = "Print Pre&view";
     this.miPreview.Click += new System.EventHandler(this.miPreview_Click);
     //
     // miPrint
     //
     this.miPrint.Index  = 14;
     this.miPrint.Text   = "&Print";
     this.miPrint.Click += new System.EventHandler(this.miPrint_Click);
     //
     // miSp1
     //
     this.miSp1.Index = 15;
     this.miSp1.Text  = "-";
     //
     // miExit
     //
     this.miExit.Index    = 16;
     this.miExit.Shortcut = System.Windows.Forms.Shortcut.AltF4;
     this.miExit.Text     = "Exit";
     this.miExit.Click   += new System.EventHandler(this.miExit_Click);
     //
     // miTools
     //
     this.miTools.Index = 1;
     this.miTools.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
         this.miFormulaEditor
     });
     this.miTools.Text = "&Tools";
     //
     // miFormulaEditor
     //
     this.miFormulaEditor.Index    = 0;
     this.miFormulaEditor.Shortcut = System.Windows.Forms.Shortcut.CtrlF;
     this.miFormulaEditor.Text     = "&Formula Editor";
     this.miFormulaEditor.Click   += new System.EventHandler(this.miFormulaEditor_Click);
     //
     // miHelp
     //
     this.miHelp.Index = 2;
     this.miHelp.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
         this.miHotKey,
         this.menuItem3,
         this.miAbout
     });
     this.miHelp.Text = "&Help";
     //
     // miHotKey
     //
     this.miHotKey.Index  = 0;
     this.miHotKey.Text   = "Hot Keys";
     this.miHotKey.Click += new System.EventHandler(this.miHotKey_Click);
     //
     // menuItem3
     //
     this.menuItem3.Index = 1;
     this.menuItem3.Text  = "-";
     //
     // miAbout
     //
     this.miAbout.Index  = 2;
     this.miAbout.Text   = "About";
     this.miAbout.Click += new System.EventHandler(this.miAbout_Click);
     //
     // miDemo
     //
     this.miDemo.Index = 3;
     this.miDemo.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
         this.miSquareRoot,
         this.miLineColor,
         this.miCrossCursor,
         this.miFormulaValue,
         this.miLineType,
         this.miGetData,
         this.miOverlayVolume,
         this.miChangeFormulaParameter
     });
     this.miDemo.Text = "&Demo";
     //
     // miSquareRoot
     //
     this.miSquareRoot.Index  = 0;
     this.miSquareRoot.Text   = "Change second area to Square &Root Axis";
     this.miSquareRoot.Click += new System.EventHandler(this.miSquareRoot_Click);
     //
     // miLineColor
     //
     this.miLineColor.Index  = 1;
     this.miLineColor.Text   = "&Change second area,second line\'s color";
     this.miLineColor.Click += new System.EventHandler(this.miLineColor_Click);
     //
     // miCrossCursor
     //
     this.miCrossCursor.Index  = 2;
     this.miCrossCursor.Text   = "&Show/hide cross cursor";
     this.miCrossCursor.Click += new System.EventHandler(this.miCrossCursor_Click);
     //
     // miFormulaValue
     //
     this.miFormulaValue.Index  = 3;
     this.miFormulaValue.Text   = "Show second area,first line\'s last value";
     this.miFormulaValue.Click += new System.EventHandler(this.miFormulaValue_Click);
     //
     // miLineType
     //
     this.miLineType.Index  = 4;
     this.miLineType.Text   = "Change line type";
     this.miLineType.Click += new System.EventHandler(this.miLineType_Click);
     //
     // miGetData
     //
     this.miGetData.Index  = 5;
     this.miGetData.Text   = "Get data from the chart";
     this.miGetData.Click += new System.EventHandler(this.miGetData_Click);
     //
     // miOverlayVolume
     //
     this.miOverlayVolume.Index  = 6;
     this.miOverlayVolume.Text   = "Overlay Volume";
     this.miOverlayVolume.Click += new System.EventHandler(this.miOverlayVolume_Click);
     //
     // miChangeFormulaParameter
     //
     this.miChangeFormulaParameter.Index  = 7;
     this.miChangeFormulaParameter.Text   = "Change Formula Parameter";
     this.miChangeFormulaParameter.Click += new System.EventHandler(this.miChangeFormulaParameter_Click);
     //
     // miDemo2
     //
     this.miDemo2.Index = 4;
     this.miDemo2.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
         this.miAddFormula1,
         this.miAddFormula2,
         this.miAddFormula3,
         this.miMoveFormula,
         this.miRemoveSelectedArea
     });
     this.miDemo2.Text = "D&emo2";
     //
     // miAddFormula1
     //
     this.miAddFormula1.Index  = 0;
     this.miAddFormula1.Text   = "Add Formula to Third Area";
     this.miAddFormula1.Click += new System.EventHandler(this.miAddFormula1_Click);
     //
     // miAddFormula2
     //
     this.miAddFormula2.Index  = 1;
     this.miAddFormula2.Text   = "Add Formula to Selected Area";
     this.miAddFormula2.Click += new System.EventHandler(this.miAddFormula2_Click);
     //
     // miAddFormula3
     //
     this.miAddFormula3.Index  = 2;
     this.miAddFormula3.Text   = "Add Formula to New Area";
     this.miAddFormula3.Click += new System.EventHandler(this.miAddFormula3_Click);
     //
     // miMoveFormula
     //
     this.miMoveFormula.Index  = 3;
     this.miMoveFormula.Text   = "Move Formula from Area 3 to 4";
     this.miMoveFormula.Click += new System.EventHandler(this.miMoveFormula_Click);
     //
     // miRemoveSelectedArea
     //
     this.miRemoveSelectedArea.Index  = 4;
     this.miRemoveSelectedArea.Text   = "Remove Selected Area";
     this.miRemoveSelectedArea.Click += new System.EventHandler(this.miRemoveSelectedArea_Click);
     //
     // odLoadData
     //
     this.odLoadData.DefaultExt = "csv";
     this.odLoadData.Filter     = "csv files (*.csv)|*.csv|data files (*.dat)|*.dat|All files (*.*)|*.*";
     //
     // pnBottom
     //
     this.pnBottom.Controls.Add(this.sizeToolControl);
     this.pnBottom.Dock     = System.Windows.Forms.DockStyle.Bottom;
     this.pnBottom.Location = new System.Drawing.Point(0, 426);
     this.pnBottom.Name     = "pnBottom";
     this.pnBottom.Size     = new System.Drawing.Size(776, 24);
     this.pnBottom.TabIndex = 3;
     //
     // pnClient
     //
     this.pnClient.Controls.Add(this.ChartControl);
     this.pnClient.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.pnClient.Location = new System.Drawing.Point(0, 0);
     this.pnClient.Name     = "pnClient";
     this.pnClient.Size     = new System.Drawing.Size(776, 426);
     this.pnClient.TabIndex = 4;
     //
     // ChartControl
     //
     this.ChartControl.AdjustData          = ((bool)(configurationAppSettings.GetValue("ChartControl.AdjustData", typeof(bool))));
     this.ChartControl.AreaPercent         = ((string)(configurationAppSettings.GetValue("ChartControl.AreaPercent", typeof(string))));
     this.ChartControl.BackColor           = System.Drawing.SystemColors.Control;
     this.ChartControl.CausesValidation    = false;
     this.ChartControl.ChartDragMode       = Easychart.Finance.ChartDragMode.Chart;
     this.ChartControl.ColumnWidth         = 5D;
     this.ChartControl.DefaultFormulas     = ((string)(configurationAppSettings.GetValue("ChartControl.DefaultFormulas", typeof(string))));
     this.ChartControl.Designing           = false;
     this.ChartControl.Dock                = System.Windows.Forms.DockStyle.Fill;
     this.ChartControl.EndTime             = new System.DateTime(((long)(0)));
     this.ChartControl.FavoriteFormulas    = ((string)(configurationAppSettings.GetValue("ChartControl.FavoriteFormulas", typeof(string))));
     this.ChartControl.ForeColor           = System.Drawing.Color.Coral;
     exchangeIntraday1.TimePeriods         = new Easychart.Finance.TimePeriod[0];
     exchangeIntraday1.TimeZone            = -5D;
     this.ChartControl.IntradayInfo        = exchangeIntraday1;
     this.ChartControl.Location            = new System.Drawing.Point(0, 0);
     this.ChartControl.MaxPrice            = 0D;
     this.ChartControl.MinColumnWidth      = 1D;
     this.ChartControl.MinPrice            = 0D;
     this.ChartControl.MouseZoomMode       = Easychart.Finance.Win.MouseZoomMode.None;
     this.ChartControl.Name                = "ChartControl";
     this.ChartControl.PriceLabelFormat    = "{CODE} O:{OPEN} H:{HIGH} L:{LOW} C:{CLOSE} Chg:{CHANGE}";
     this.ChartControl.ResetYAfterXChanged = false;
     this.ChartControl.ShowCrossCursor     = ((bool)(configurationAppSettings.GetValue("ChartControl.ShowCrossCursor", typeof(bool))));
     this.ChartControl.ShowCursorLabel     = ((bool)(configurationAppSettings.GetValue("ChartControl.ShowCursorLabel", typeof(bool))));
     this.ChartControl.ShowIndicatorValues = ((bool)(configurationAppSettings.GetValue("ChartControl.ShowIndicatorValues", typeof(bool))));
     this.ChartControl.ShowOverlayValues   = ((bool)(configurationAppSettings.GetValue("ChartControl.ShowOverlayValues", typeof(bool))));
     this.ChartControl.ShowStatistic       = ((bool)(configurationAppSettings.GetValue("ChartControl.ShowStatistic", typeof(bool))));
     this.ChartControl.Size                = new System.Drawing.Size(776, 426);
     this.ChartControl.Skin                = ((string)(configurationAppSettings.GetValue("ChartControl.Skin", typeof(string))));
     this.ChartControl.StartTime           = new System.DateTime(((long)(0)));
     this.ChartControl.StickRenderType     = Easychart.Finance.StickRenderType.Column;
     this.ChartControl.TabIndex            = 0;
     this.ChartControl.BeforeApplySkin    += new Easychart.Finance.Win.ApplySkinHandler(this.ChartControl_BeforeApplySkin);
     this.ChartControl.AfterApplySkin     += new System.EventHandler(this.ChartControl_AfterApplySkin);
     this.ChartControl.NativePaint        += new Easychart.Finance.NativePaintHandler(this.ChartControl_NativePaint);
     this.ChartControl.DataChanged        += new System.EventHandler(this.ChartControl_DataChanged);
     //
     // sizeToolControl
     //
     this.sizeToolControl.ChartControl = this.ChartControl;
     this.sizeToolControl.Dock         = System.Windows.Forms.DockStyle.Fill;
     this.sizeToolControl.Location     = new System.Drawing.Point(0, 0);
     this.sizeToolControl.Name         = "sizeToolControl";
     this.sizeToolControl.Size         = new System.Drawing.Size(776, 24);
     this.sizeToolControl.TabIndex     = 0;
     //
     // DemoForm
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(6, 14);
     this.ClientSize        = new System.Drawing.Size(776, 450);
     this.Controls.Add(this.pnClient);
     this.Controls.Add(this.pnBottom);
     this.Cursor      = System.Windows.Forms.Cursors.Default;
     this.Font        = new System.Drawing.Font("Verdana", 8.25F);
     this.Menu        = this.mmMain;
     this.Name        = "DemoForm";
     this.Text        = "DemoForm";
     this.WindowState = System.Windows.Forms.FormWindowState.Maximized;
     this.Closed     += new System.EventHandler(this.DemoForm_Closed);
     this.Load       += new System.EventHandler(this.DemoForm_Load);
     this.pnBottom.ResumeLayout(false);
     this.pnClient.ResumeLayout(false);
     this.ResumeLayout(false);
 }
示例#38
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     System.Configuration.AppSettingsReader configurationAppSettings = new System.Configuration.AppSettingsReader();
     System.Resources.ResourceManager       resources = new System.Resources.ResourceManager(typeof(AccountStates_Clients));
     this.dataGrid1              = new System.Windows.Forms.DataGrid();
     this.dataView1              = new System.Data.DataView();
     this.dsClientsBalances1     = new BPS._Forms.dsClientsBalances();
     this.dataGridTableStyle1    = new System.Windows.Forms.DataGridTableStyle();
     this.ColumnClientID         = new System.Windows.Forms.DataGridTextBoxColumn();
     this.ColumnGroupName        = new System.Windows.Forms.DataGridTextBoxColumn();
     this.ColumnClientName       = new System.Windows.Forms.DataGridTextBoxColumn();
     this.ColumnAccountID        = new System.Windows.Forms.DataGridTextBoxColumn();
     this.ColumnTypeName         = new System.Windows.Forms.DataGridTextBoxColumn();
     this.ColumnSaldo            = new System.Windows.Forms.DataGridTextBoxColumn();
     this.dataGridTextBoxColumn1 = new System.Windows.Forms.DataGridTextBoxColumn();
     this.dataGridTextBoxColumn2 = new System.Windows.Forms.DataGridTextBoxColumn();
     this.dataGridTextBoxColumn3 = new System.Windows.Forms.DataGridTextBoxColumn();
     this.ColumnCurrencyID       = new System.Windows.Forms.DataGridTextBoxColumn();
     this.sqlDataAdapter1        = new System.Data.SqlClient.SqlDataAdapter();
     this.sqlSelectCommand1      = new System.Data.SqlClient.SqlCommand();
     this.sqlConnection1         = new System.Data.SqlClient.SqlConnection();
     this.mainMenu1              = new System.Windows.Forms.MainMenu();
     this.menuItem1              = new System.Windows.Forms.MenuItem();
     this.mnuRefresh             = new System.Windows.Forms.MenuItem();
     this.toolBar1                  = new System.Windows.Forms.ToolBar();
     this.tbbStore                  = new System.Windows.Forms.ToolBarButton();
     this.toolBarButton1            = new System.Windows.Forms.ToolBarButton();
     this.tbbRefresh                = new System.Windows.Forms.ToolBarButton();
     this.toolBarButton7            = new System.Windows.Forms.ToolBarButton();
     this.tbbApply                  = new System.Windows.Forms.ToolBarButton();
     this.tbbReset                  = new System.Windows.Forms.ToolBarButton();
     this.tbbClear                  = new System.Windows.Forms.ToolBarButton();
     this.imageList1                = new System.Windows.Forms.ImageList(this.components);
     this.groupBox1                 = new System.Windows.Forms.GroupBox();
     this.daSetSaldo                = new System.Data.SqlClient.SqlDataAdapter();
     this.sqlUpdateCommand1         = new System.Data.SqlClient.SqlCommand();
     this.panel1                    = new System.Windows.Forms.Panel();
     this.splitter1                 = new System.Windows.Forms.Splitter();
     this.panel2                    = new System.Windows.Forms.Panel();
     this.dataGrid2                 = new System.Windows.Forms.DataGrid();
     this.dsClientsGroupsBalances1  = new BPS._Forms.dsClientsGroupsBalances();
     this.dataGridTableStyle2       = new System.Windows.Forms.DataGridTableStyle();
     this.ColumnClientGroupID       = new System.Windows.Forms.DataGridTextBoxColumn();
     this.ColumnClientGroupName     = new System.Windows.Forms.DataGridTextBoxColumn();
     this.ColumnGroupSumSaldo       = new System.Windows.Forms.DataGridTextBoxColumn();
     this.ColumnGroupSumSumReserved = new System.Windows.Forms.DataGridTextBoxColumn();
     this.ColumnSumSumWaited        = new System.Windows.Forms.DataGridTextBoxColumn();
     this.ColumnSumSumFree          = new System.Windows.Forms.DataGridTextBoxColumn();
     this.ColumnGroupCurrencyID     = new System.Windows.Forms.DataGridTextBoxColumn();
     this.sqlDataAdapter2           = new System.Data.SqlClient.SqlDataAdapter();
     this.sqlSelectCommand2         = new System.Data.SqlClient.SqlCommand();
     ((System.ComponentModel.ISupportInitialize)(this.dataGrid1)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.dataView1)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.dsClientsBalances1)).BeginInit();
     this.panel1.SuspendLayout();
     this.panel2.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.dataGrid2)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.dsClientsGroupsBalances1)).BeginInit();
     this.SuspendLayout();
     //
     // dataGrid1
     //
     this.dataGrid1.CaptionVisible  = false;
     this.dataGrid1.DataMember      = "";
     this.dataGrid1.DataSource      = this.dataView1;
     this.dataGrid1.Dock            = System.Windows.Forms.DockStyle.Fill;
     this.dataGrid1.HeaderForeColor = System.Drawing.SystemColors.ControlText;
     this.dataGrid1.Location        = new System.Drawing.Point(0, 0);
     this.dataGrid1.Name            = "dataGrid1";
     this.dataGrid1.Size            = new System.Drawing.Size(746, 276);
     this.dataGrid1.TabIndex        = 0;
     this.dataGrid1.TableStyles.AddRange(new System.Windows.Forms.DataGridTableStyle[] {
         this.dataGridTableStyle1
     });
     //
     // dataView1
     //
     this.dataView1.AllowDelete = false;
     this.dataView1.AllowNew    = false;
     this.dataView1.RowFilter   = "AccountTypeID=2 AND (Saldo<>0 OR DisposableSum<>0)";
     this.dataView1.Sort        = "ClientName,AccountTypeID,CurrencyID";
     this.dataView1.Table       = this.dsClientsBalances1.Accounts;
     //
     // dsClientsBalances1
     //
     this.dsClientsBalances1.DataSetName = "dsClientsBalances";
     this.dsClientsBalances1.Locale      = new System.Globalization.CultureInfo("ru-RU");
     //
     // dataGridTableStyle1
     //
     this.dataGridTableStyle1.DataGrid = this.dataGrid1;
     this.dataGridTableStyle1.GridColumnStyles.AddRange(new System.Windows.Forms.DataGridColumnStyle[] {
         this.ColumnClientID,
         this.ColumnGroupName,
         this.ColumnClientName,
         this.ColumnAccountID,
         this.ColumnTypeName,
         this.ColumnSaldo,
         this.dataGridTextBoxColumn1,
         this.dataGridTextBoxColumn2,
         this.dataGridTextBoxColumn3,
         this.ColumnCurrencyID
     });
     this.dataGridTableStyle1.HeaderForeColor = System.Drawing.SystemColors.ControlText;
     this.dataGridTableStyle1.MappingName     = "Accounts";
     //
     // ColumnClientID
     //
     this.ColumnClientID.Alignment   = System.Windows.Forms.HorizontalAlignment.Right;
     this.ColumnClientID.Format      = "";
     this.ColumnClientID.FormatInfo  = null;
     this.ColumnClientID.HeaderText  = "ID";
     this.ColumnClientID.MappingName = "ClientID";
     this.ColumnClientID.ReadOnly    = true;
     this.ColumnClientID.Width       = 40;
     //
     // ColumnGroupName
     //
     this.ColumnGroupName.Format      = "";
     this.ColumnGroupName.FormatInfo  = null;
     this.ColumnGroupName.HeaderText  = "Группа";
     this.ColumnGroupName.MappingName = "ClientGroupName";
     this.ColumnGroupName.Width       = 75;
     //
     // ColumnClientName
     //
     this.ColumnClientName.Format      = "";
     this.ColumnClientName.FormatInfo  = null;
     this.ColumnClientName.HeaderText  = "Клиент";
     this.ColumnClientName.MappingName = "ClientName";
     this.ColumnClientName.ReadOnly    = true;
     this.ColumnClientName.Width       = 150;
     //
     // ColumnAccountID
     //
     this.ColumnAccountID.Format      = "00000";
     this.ColumnAccountID.FormatInfo  = null;
     this.ColumnAccountID.HeaderText  = "ID Счёта";
     this.ColumnAccountID.MappingName = "AccountID";
     this.ColumnAccountID.ReadOnly    = true;
     this.ColumnAccountID.Width       = 2;
     //
     // ColumnTypeName
     //
     this.ColumnTypeName.Format      = "";
     this.ColumnTypeName.FormatInfo  = null;
     this.ColumnTypeName.HeaderText  = "Тип Счёта";
     this.ColumnTypeName.MappingName = "TypeName";
     this.ColumnTypeName.ReadOnly    = true;
     this.ColumnTypeName.Width       = 2;
     //
     // ColumnSaldo
     //
     this.ColumnSaldo.Alignment   = System.Windows.Forms.HorizontalAlignment.Right;
     this.ColumnSaldo.Format      = "#,##0.00;;\"-\"";
     this.ColumnSaldo.FormatInfo  = null;
     this.ColumnSaldo.HeaderText  = "Сальдо";
     this.ColumnSaldo.MappingName = "Saldo";
     this.ColumnSaldo.NullText    = "-";
     this.ColumnSaldo.ReadOnly    = true;
     this.ColumnSaldo.Width       = 90;
     //
     // dataGridTextBoxColumn1
     //
     this.dataGridTextBoxColumn1.Alignment   = System.Windows.Forms.HorizontalAlignment.Right;
     this.dataGridTextBoxColumn1.Format      = "#,##0.00;;\"-\"";
     this.dataGridTextBoxColumn1.FormatInfo  = null;
     this.dataGridTextBoxColumn1.HeaderText  = "Зарезервировано";
     this.dataGridTextBoxColumn1.MappingName = "SumReserved";
     this.dataGridTextBoxColumn1.NullText    = "-";
     this.dataGridTextBoxColumn1.ReadOnly    = true;
     this.dataGridTextBoxColumn1.Width       = 90;
     //
     // dataGridTextBoxColumn2
     //
     this.dataGridTextBoxColumn2.Alignment   = System.Windows.Forms.HorizontalAlignment.Right;
     this.dataGridTextBoxColumn2.Format      = "#,##0.00;;\"-\"";
     this.dataGridTextBoxColumn2.FormatInfo  = null;
     this.dataGridTextBoxColumn2.HeaderText  = "Ожидается";
     this.dataGridTextBoxColumn2.MappingName = "SumWaited";
     this.dataGridTextBoxColumn2.NullText    = "-";
     this.dataGridTextBoxColumn2.ReadOnly    = true;
     this.dataGridTextBoxColumn2.Width       = 90;
     //
     // dataGridTextBoxColumn3
     //
     this.dataGridTextBoxColumn3.Alignment   = System.Windows.Forms.HorizontalAlignment.Right;
     this.dataGridTextBoxColumn3.Format      = "#,##0.00;;\"-\"";
     this.dataGridTextBoxColumn3.FormatInfo  = null;
     this.dataGridTextBoxColumn3.HeaderText  = "Свободно";
     this.dataGridTextBoxColumn3.MappingName = "DisposableSum";
     this.dataGridTextBoxColumn3.ReadOnly    = true;
     this.dataGridTextBoxColumn3.Width       = 90;
     //
     // ColumnCurrencyID
     //
     this.ColumnCurrencyID.Format      = "";
     this.ColumnCurrencyID.FormatInfo  = null;
     this.ColumnCurrencyID.HeaderText  = "Валюта";
     this.ColumnCurrencyID.MappingName = "CurrencyID";
     this.ColumnCurrencyID.ReadOnly    = true;
     this.ColumnCurrencyID.Width       = 50;
     //
     // sqlDataAdapter1
     //
     this.sqlDataAdapter1.SelectCommand = this.sqlSelectCommand1;
     this.sqlDataAdapter1.TableMappings.AddRange(new System.Data.Common.DataTableMapping[] {
         new System.Data.Common.DataTableMapping("Table", "Accounts", new System.Data.Common.DataColumnMapping[] {
             new System.Data.Common.DataColumnMapping("ClientID", "ClientID"),
             new System.Data.Common.DataColumnMapping("ClientName", "ClientName"),
             new System.Data.Common.DataColumnMapping("AccountID", "AccountID"),
             new System.Data.Common.DataColumnMapping("TypeName", "TypeName"),
             new System.Data.Common.DataColumnMapping("CurrencyID", "CurrencyID"),
             new System.Data.Common.DataColumnMapping("Saldo", "Saldo"),
             new System.Data.Common.DataColumnMapping("AccountTypeID", "AccountTypeID"),
             new System.Data.Common.DataColumnMapping("SumReserved", "SumReserved"),
             new System.Data.Common.DataColumnMapping("SumWaited", "SumWaited"),
             new System.Data.Common.DataColumnMapping("DisposableSum", "DisposableSum"),
             new System.Data.Common.DataColumnMapping("ClientGroupName", "ClientGroupName")
         })
     });
     //
     // sqlSelectCommand1
     //
     this.sqlSelectCommand1.CommandText = "[SelAccounts_Clients]";
     this.sqlSelectCommand1.CommandType = System.Data.CommandType.StoredProcedure;
     this.sqlSelectCommand1.Connection  = this.sqlConnection1;
     this.sqlSelectCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@RETURN_VALUE", System.Data.SqlDbType.Int, 4, System.Data.ParameterDirection.ReturnValue, false, ((System.Byte)(10)), ((System.Byte)(0)), "", System.Data.DataRowVersion.Current, null));
     this.sqlSelectCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@AccountType", System.Data.SqlDbType.Int, 4, System.Data.ParameterDirection.Input, false, ((System.Byte)(10)), ((System.Byte)(0)), "", System.Data.DataRowVersion.Current, null));
     //
     // sqlConnection1
     //
     this.sqlConnection1.ConnectionString = ((string)(configurationAppSettings.GetValue("ConnectionString", typeof(string))));
     //
     // mainMenu1
     //
     this.mainMenu1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
         this.menuItem1
     });
     //
     // menuItem1
     //
     this.menuItem1.Index = 0;
     this.menuItem1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
         this.mnuRefresh
     });
     this.menuItem1.Text = "Вид";
     //
     // mnuRefresh
     //
     this.mnuRefresh.Index    = 0;
     this.mnuRefresh.Shortcut = System.Windows.Forms.Shortcut.F5;
     this.mnuRefresh.Text     = "Обновить";
     this.mnuRefresh.Click   += new System.EventHandler(this.mnuRefresh_Click);
     //
     // toolBar1
     //
     this.toolBar1.Appearance = System.Windows.Forms.ToolBarAppearance.Flat;
     this.toolBar1.Buttons.AddRange(new System.Windows.Forms.ToolBarButton[] {
         this.tbbStore,
         this.toolBarButton1,
         this.tbbRefresh,
         this.toolBarButton7,
         this.tbbApply,
         this.tbbReset,
         this.tbbClear
     });
     this.toolBar1.ButtonSize     = new System.Drawing.Size(90, 22);
     this.toolBar1.DropDownArrows = true;
     this.toolBar1.ImageList      = this.imageList1;
     this.toolBar1.Location       = new System.Drawing.Point(0, 0);
     this.toolBar1.Name           = "toolBar1";
     this.toolBar1.ShowToolTips   = true;
     this.toolBar1.Size           = new System.Drawing.Size(746, 28);
     this.toolBar1.TabIndex       = 3;
     this.toolBar1.TextAlign      = System.Windows.Forms.ToolBarTextAlign.Right;
     this.toolBar1.ButtonClick   += new System.Windows.Forms.ToolBarButtonClickEventHandler(this.toolBar1_ButtonClick);
     //
     // tbbStore
     //
     this.tbbStore.ImageIndex = 4;
     this.tbbStore.Text       = "Сохранить";
     //
     // toolBarButton1
     //
     this.toolBarButton1.Style = System.Windows.Forms.ToolBarButtonStyle.Separator;
     //
     // tbbRefresh
     //
     this.tbbRefresh.ImageIndex = 2;
     this.tbbRefresh.Text       = "Обновить";
     //
     // toolBarButton7
     //
     this.toolBarButton7.Style = System.Windows.Forms.ToolBarButtonStyle.Separator;
     //
     // tbbApply
     //
     this.tbbApply.ImageIndex = 6;
     this.tbbApply.Text       = "Выбрать";
     //
     // tbbReset
     //
     this.tbbReset.ImageIndex = 7;
     this.tbbReset.Text       = "Cбросить";
     //
     // tbbClear
     //
     this.tbbClear.ImageIndex = 5;
     this.tbbClear.Text       = "Очистить";
     //
     // imageList1
     //
     this.imageList1.ImageSize        = new System.Drawing.Size(16, 16);
     this.imageList1.ImageStream      = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageList1.ImageStream")));
     this.imageList1.TransparentColor = System.Drawing.Color.Transparent;
     //
     // groupBox1
     //
     this.groupBox1.Dock     = System.Windows.Forms.DockStyle.Top;
     this.groupBox1.Location = new System.Drawing.Point(0, 28);
     this.groupBox1.Name     = "groupBox1";
     this.groupBox1.Size     = new System.Drawing.Size(746, 29);
     this.groupBox1.TabIndex = 4;
     this.groupBox1.TabStop  = false;
     this.groupBox1.Text     = "Фильтр";
     this.groupBox1.Visible  = false;
     //
     // daSetSaldo
     //
     this.daSetSaldo.TableMappings.AddRange(new System.Data.Common.DataTableMapping[] {
         new System.Data.Common.DataTableMapping("Table", "Accounts", new System.Data.Common.DataColumnMapping[] {
             new System.Data.Common.DataColumnMapping("AccountID", "AccountID"),
             new System.Data.Common.DataColumnMapping("Saldo", "Saldo")
         })
     });
     this.daSetSaldo.UpdateCommand = this.sqlUpdateCommand1;
     //
     // sqlUpdateCommand1
     //
     this.sqlUpdateCommand1.CommandText = "[SetSaldo]";
     this.sqlUpdateCommand1.CommandType = System.Data.CommandType.StoredProcedure;
     this.sqlUpdateCommand1.Connection  = this.sqlConnection1;
     this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@RETURN_VALUE", System.Data.SqlDbType.Int, 4, System.Data.ParameterDirection.ReturnValue, false, ((System.Byte)(0)), ((System.Byte)(0)), "", System.Data.DataRowVersion.Current, null));
     this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Saldo", System.Data.SqlDbType.Float, 8, "Saldo"));
     this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_AccountID", System.Data.SqlDbType.Int, 4, System.Data.ParameterDirection.Input, false, ((System.Byte)(0)), ((System.Byte)(0)), "AccountID", System.Data.DataRowVersion.Original, null));
     this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_Saldo", System.Data.SqlDbType.Float, 8, System.Data.ParameterDirection.Input, false, ((System.Byte)(0)), ((System.Byte)(0)), "Saldo", System.Data.DataRowVersion.Original, null));
     this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@AccountID", System.Data.SqlDbType.Int, 4, "AccountID"));
     //
     // panel1
     //
     this.panel1.Controls.Add(this.dataGrid1);
     this.panel1.Dock     = System.Windows.Forms.DockStyle.Top;
     this.panel1.Location = new System.Drawing.Point(0, 57);
     this.panel1.Name     = "panel1";
     this.panel1.Size     = new System.Drawing.Size(746, 276);
     this.panel1.TabIndex = 5;
     //
     // splitter1
     //
     this.splitter1.Dock     = System.Windows.Forms.DockStyle.Top;
     this.splitter1.Location = new System.Drawing.Point(0, 333);
     this.splitter1.Name     = "splitter1";
     this.splitter1.Size     = new System.Drawing.Size(746, 6);
     this.splitter1.TabIndex = 6;
     this.splitter1.TabStop  = false;
     //
     // panel2
     //
     this.panel2.Controls.Add(this.dataGrid2);
     this.panel2.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.panel2.Location = new System.Drawing.Point(0, 339);
     this.panel2.Name     = "panel2";
     this.panel2.Size     = new System.Drawing.Size(746, 230);
     this.panel2.TabIndex = 7;
     //
     // dataGrid2
     //
     this.dataGrid2.CaptionVisible  = false;
     this.dataGrid2.DataMember      = "Accounts";
     this.dataGrid2.DataSource      = this.dsClientsGroupsBalances1;
     this.dataGrid2.Dock            = System.Windows.Forms.DockStyle.Fill;
     this.dataGrid2.HeaderForeColor = System.Drawing.SystemColors.ControlText;
     this.dataGrid2.Location        = new System.Drawing.Point(0, 0);
     this.dataGrid2.Name            = "dataGrid2";
     this.dataGrid2.ReadOnly        = true;
     this.dataGrid2.Size            = new System.Drawing.Size(746, 230);
     this.dataGrid2.TabIndex        = 0;
     this.dataGrid2.TableStyles.AddRange(new System.Windows.Forms.DataGridTableStyle[] {
         this.dataGridTableStyle2
     });
     //
     // dsClientsGroupsBalances1
     //
     this.dsClientsGroupsBalances1.DataSetName = "dsClientsGroupsBalances";
     this.dsClientsGroupsBalances1.Locale      = new System.Globalization.CultureInfo("ru-RU");
     //
     // dataGridTableStyle2
     //
     this.dataGridTableStyle2.DataGrid = this.dataGrid2;
     this.dataGridTableStyle2.GridColumnStyles.AddRange(new System.Windows.Forms.DataGridColumnStyle[] {
         this.ColumnClientGroupID,
         this.ColumnClientGroupName,
         this.ColumnGroupSumSaldo,
         this.ColumnGroupSumSumReserved,
         this.ColumnSumSumWaited,
         this.ColumnSumSumFree,
         this.ColumnGroupCurrencyID
     });
     this.dataGridTableStyle2.HeaderForeColor = System.Drawing.SystemColors.ControlText;
     this.dataGridTableStyle2.MappingName     = "Accounts";
     //
     // ColumnClientGroupID
     //
     this.ColumnClientGroupID.Format      = "00000";
     this.ColumnClientGroupID.FormatInfo  = null;
     this.ColumnClientGroupID.HeaderText  = "ID Группы";
     this.ColumnClientGroupID.MappingName = "ClientGroupID";
     this.ColumnClientGroupID.Width       = 75;
     //
     // ColumnClientGroupName
     //
     this.ColumnClientGroupName.Format      = "";
     this.ColumnClientGroupName.FormatInfo  = null;
     this.ColumnClientGroupName.HeaderText  = "Группа";
     this.ColumnClientGroupName.MappingName = "ClientGroupName";
     this.ColumnClientGroupName.Width       = 195;
     //
     // ColumnGroupSumSaldo
     //
     this.ColumnGroupSumSaldo.Alignment   = System.Windows.Forms.HorizontalAlignment.Right;
     this.ColumnGroupSumSaldo.Format      = "#,##0.00;;\"-\"";
     this.ColumnGroupSumSaldo.FormatInfo  = null;
     this.ColumnGroupSumSaldo.HeaderText  = "Сальдо";
     this.ColumnGroupSumSaldo.MappingName = "SumSaldo";
     this.ColumnGroupSumSaldo.NullText    = "-";
     this.ColumnGroupSumSaldo.Width       = 90;
     //
     // ColumnGroupSumSumReserved
     //
     this.ColumnGroupSumSumReserved.Alignment   = System.Windows.Forms.HorizontalAlignment.Right;
     this.ColumnGroupSumSumReserved.Format      = "#,##0.00;;\"-\"";
     this.ColumnGroupSumSumReserved.FormatInfo  = null;
     this.ColumnGroupSumSumReserved.HeaderText  = "Зарезервировано";
     this.ColumnGroupSumSumReserved.MappingName = "SumSumReserved";
     this.ColumnGroupSumSumReserved.NullText    = "-";
     this.ColumnGroupSumSumReserved.Width       = 90;
     //
     // ColumnSumSumWaited
     //
     this.ColumnSumSumWaited.Alignment   = System.Windows.Forms.HorizontalAlignment.Right;
     this.ColumnSumSumWaited.Format      = "#,##0.00;;\"-\"";
     this.ColumnSumSumWaited.FormatInfo  = null;
     this.ColumnSumSumWaited.HeaderText  = "Ожидается";
     this.ColumnSumSumWaited.MappingName = "SumSumWaited";
     this.ColumnSumSumWaited.NullText    = "-";
     this.ColumnSumSumWaited.Width       = 90;
     //
     // ColumnSumSumFree
     //
     this.ColumnSumSumFree.Alignment   = System.Windows.Forms.HorizontalAlignment.Right;
     this.ColumnSumSumFree.Format      = "#,##0.00;;\"-\"";
     this.ColumnSumSumFree.FormatInfo  = null;
     this.ColumnSumSumFree.HeaderText  = "Свободно";
     this.ColumnSumSumFree.MappingName = "SumSumFree";
     this.ColumnSumSumFree.Width       = 90;
     //
     // ColumnGroupCurrencyID
     //
     this.ColumnGroupCurrencyID.Format      = "";
     this.ColumnGroupCurrencyID.FormatInfo  = null;
     this.ColumnGroupCurrencyID.HeaderText  = "Валюта";
     this.ColumnGroupCurrencyID.MappingName = "CurrencyID";
     this.ColumnGroupCurrencyID.Width       = 50;
     //
     // sqlDataAdapter2
     //
     this.sqlDataAdapter2.SelectCommand = this.sqlSelectCommand2;
     this.sqlDataAdapter2.TableMappings.AddRange(new System.Data.Common.DataTableMapping[] {
         new System.Data.Common.DataTableMapping("Table", "Accounts", new System.Data.Common.DataColumnMapping[] {
             new System.Data.Common.DataColumnMapping("ClientGroupID", "ClientGroupID"),
             new System.Data.Common.DataColumnMapping("ClientGroupName", "ClientGroupName"),
             new System.Data.Common.DataColumnMapping("CurrencyID", "CurrencyID"),
             new System.Data.Common.DataColumnMapping("SumSaldo", "SumSaldo"),
             new System.Data.Common.DataColumnMapping("SumSumReserved", "SumSumReserved"),
             new System.Data.Common.DataColumnMapping("SumSumWaited", "SumSumWaited")
         })
     });
     //
     // sqlSelectCommand2
     //
     this.sqlSelectCommand2.CommandText = @"SELECT ClientsGroups.ClientGroupID, ClientsGroups.ClientGroupName, Accounts.CurrencyID, SUM(Accounts.Saldo) AS SumSaldo, SUM(Accounts.SumReserved) AS SumSumReserved, SUM(Accounts.SumWaited) AS SumSumWaited, SUM(Accounts.Saldo) - SUM(Accounts.SumReserved) AS SumSumFree FROM Accounts INNER JOIN Clients ON Accounts.ClientID = Clients.ClientID INNER JOIN ClientsGroups ON Clients.ClientGroupID = ClientsGroups.ClientGroupID WHERE (Accounts.AccountTypeID = 2) AND (Clients.IsInner = 0) GROUP BY ClientsGroups.ClientGroupID, ClientsGroups.ClientGroupName, Accounts.CurrencyID ORDER BY ClientsGroups.ClientGroupName, Accounts.CurrencyID";
     this.sqlSelectCommand2.Connection  = this.sqlConnection1;
     //
     // AccountStates_Clients
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.ClientSize        = new System.Drawing.Size(746, 569);
     this.Controls.Add(this.panel2);
     this.Controls.Add(this.splitter1);
     this.Controls.Add(this.panel1);
     this.Controls.Add(this.groupBox1);
     this.Controls.Add(this.toolBar1);
     this.Icon        = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     this.Menu        = this.mainMenu1;
     this.Name        = "AccountStates_Clients";
     this.Text        = "Счета клиентов";
     this.WindowState = System.Windows.Forms.FormWindowState.Maximized;
     this.Closing    += new System.ComponentModel.CancelEventHandler(this.AccountStates_Clients_Closing);
     ((System.ComponentModel.ISupportInitialize)(this.dataGrid1)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.dataView1)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.dsClientsBalances1)).EndInit();
     this.panel1.ResumeLayout(false);
     this.panel2.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.dataGrid2)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.dsClientsGroupsBalances1)).EndInit();
     this.ResumeLayout(false);
 }
示例#39
0
文件: сoOrgs.cs 项目: Kiselb/bps
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     System.Configuration.AppSettingsReader configurationAppSettings = new System.Configuration.AppSettingsReader();
     this.sqlDataAdapter1   = new System.Data.SqlClient.SqlDataAdapter();
     this.sqlDeleteCommand1 = new System.Data.SqlClient.SqlCommand();
     this.sqlConnection1    = new System.Data.SqlClient.SqlConnection();
     this.sqlInsertCommand1 = new System.Data.SqlClient.SqlCommand();
     this.sqlSelectCommand1 = new System.Data.SqlClient.SqlCommand();
     this.sqlUpdateCommand1 = new System.Data.SqlClient.SqlCommand();
     this.dsOrgs1           = new BPS.BLL.Orgs.DataSets.dsOrgs();
     this.dsOrgsAccount1    = new BPS.dsOrgsAccount();
     ((System.ComponentModel.ISupportInitialize)(this.dsOrgs1)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.dsOrgsAccount1)).BeginInit();
     //
     // sqlDataAdapter1
     //
     this.sqlDataAdapter1.DeleteCommand = this.sqlDeleteCommand1;
     this.sqlDataAdapter1.InsertCommand = this.sqlInsertCommand1;
     this.sqlDataAdapter1.SelectCommand = this.sqlSelectCommand1;
     this.sqlDataAdapter1.TableMappings.AddRange(new System.Data.Common.DataTableMapping[] {
         new System.Data.Common.DataTableMapping("Table", "Orgs", new System.Data.Common.DataColumnMapping[] {
             new System.Data.Common.DataColumnMapping("OrgID", "OrgID"),
             new System.Data.Common.DataColumnMapping("OrgName", "OrgName"),
             new System.Data.Common.DataColumnMapping("OrgName2", "OrgName2"),
             new System.Data.Common.DataColumnMapping("IsNormal", "IsNormal"),
             new System.Data.Common.DataColumnMapping("IsInner", "IsInner"),
             new System.Data.Common.DataColumnMapping("IsSpecial", "IsSpecial"),
             new System.Data.Common.DataColumnMapping("DefaultServiceCharge", "DefaultServiceCharge"),
             new System.Data.Common.DataColumnMapping("CodeINN", "CodeINN"),
             new System.Data.Common.DataColumnMapping("CodeKPP", "CodeKPP"),
             new System.Data.Common.DataColumnMapping("AddrReg", "AddrReg"),
             new System.Data.Common.DataColumnMapping("AddrFact", "AddrFact"),
             new System.Data.Common.DataColumnMapping("Phone1", "Phone1"),
             new System.Data.Common.DataColumnMapping("Phone2", "Phone2"),
             new System.Data.Common.DataColumnMapping("Fax1", "Fax1"),
             new System.Data.Common.DataColumnMapping("Fax2", "Fax2"),
             new System.Data.Common.DataColumnMapping("ContactPerson", "ContactPerson"),
             new System.Data.Common.DataColumnMapping("OKPO", "OKPO"),
             new System.Data.Common.DataColumnMapping("OKONH", "OKONH"),
             new System.Data.Common.DataColumnMapping("ClientID", "ClientID")
         })
     });
     this.sqlDataAdapter1.UpdateCommand = this.sqlUpdateCommand1;
     //
     // sqlDeleteCommand1
     //
     this.sqlDeleteCommand1.CommandText = "[OrgsDeleteCommand]";
     this.sqlDeleteCommand1.CommandType = System.Data.CommandType.StoredProcedure;
     this.sqlDeleteCommand1.Connection  = this.sqlConnection1;
     this.sqlDeleteCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@RETURN_VALUE", System.Data.SqlDbType.Int, 4, System.Data.ParameterDirection.ReturnValue, false, ((System.Byte)(10)), ((System.Byte)(0)), "", System.Data.DataRowVersion.Current, null));
     this.sqlDeleteCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_OrgID", System.Data.SqlDbType.Int, 4, System.Data.ParameterDirection.Input, false, ((System.Byte)(10)), ((System.Byte)(0)), "OrgID", System.Data.DataRowVersion.Original, null));
     //
     // sqlConnection1
     //
     this.sqlConnection1.ConnectionString = ((string)(configurationAppSettings.GetValue("ConnectionString", typeof(string))));
     //
     // sqlInsertCommand1
     //
     this.sqlInsertCommand1.CommandText = "[OrgsInsertCommand]";
     this.sqlInsertCommand1.CommandType = System.Data.CommandType.StoredProcedure;
     this.sqlInsertCommand1.Connection  = this.sqlConnection1;
     this.sqlInsertCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@RETURN_VALUE", System.Data.SqlDbType.Int, 4, System.Data.ParameterDirection.ReturnValue, false, ((System.Byte)(10)), ((System.Byte)(0)), "", System.Data.DataRowVersion.Current, null));
     this.sqlInsertCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@OrgName", System.Data.SqlDbType.NVarChar, 256, "OrgName"));
     this.sqlInsertCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@OrgName2", System.Data.SqlDbType.NVarChar, 255, "OrgName2"));
     this.sqlInsertCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@IsNormal", System.Data.SqlDbType.Bit, 1, "IsNormal"));
     this.sqlInsertCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@IsInner", System.Data.SqlDbType.Bit, 1, "IsInner"));
     this.sqlInsertCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@IsSpecial", System.Data.SqlDbType.Bit, 1, "IsSpecial"));
     this.sqlInsertCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@DefaultServiceCharge", System.Data.SqlDbType.Float, 8, System.Data.ParameterDirection.Input, false, ((System.Byte)(15)), ((System.Byte)(0)), "DefaultServiceCharge", System.Data.DataRowVersion.Current, null));
     this.sqlInsertCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@CodeINN", System.Data.SqlDbType.NVarChar, 16, "CodeINN"));
     this.sqlInsertCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@CodeKPP", System.Data.SqlDbType.NVarChar, 16, "CodeKPP"));
     this.sqlInsertCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@AddrReg", System.Data.SqlDbType.NVarChar, 255, "AddrReg"));
     this.sqlInsertCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@AddrFact", System.Data.SqlDbType.NVarChar, 255, "AddrFact"));
     this.sqlInsertCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Phone1", System.Data.SqlDbType.NVarChar, 16, "Phone1"));
     this.sqlInsertCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Phone2", System.Data.SqlDbType.NVarChar, 16, "Phone2"));
     this.sqlInsertCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Fax1", System.Data.SqlDbType.NVarChar, 16, "Fax1"));
     this.sqlInsertCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Fax2", System.Data.SqlDbType.NVarChar, 16, "Fax2"));
     this.sqlInsertCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@ContactPerson", System.Data.SqlDbType.NVarChar, 50, "ContactPerson"));
     this.sqlInsertCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@OKPO", System.Data.SqlDbType.NVarChar, 50, "OKPO"));
     this.sqlInsertCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@OKONH", System.Data.SqlDbType.NVarChar, 50, "OKONH"));
     this.sqlInsertCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@ClientID", System.Data.SqlDbType.Int, 0, "ClientID"));
     //
     // sqlSelectCommand1
     //
     this.sqlSelectCommand1.CommandText = "[OrgsSelectCommand]";
     this.sqlSelectCommand1.CommandType = System.Data.CommandType.StoredProcedure;
     this.sqlSelectCommand1.Connection  = this.sqlConnection1;
     this.sqlSelectCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@RETURN_VALUE", System.Data.SqlDbType.Int, 4, System.Data.ParameterDirection.ReturnValue, false, ((System.Byte)(10)), ((System.Byte)(0)), "", System.Data.DataRowVersion.Current, null));
     //
     // sqlUpdateCommand1
     //
     this.sqlUpdateCommand1.CommandText = "[OrgsUpdateCommand]";
     this.sqlUpdateCommand1.CommandType = System.Data.CommandType.StoredProcedure;
     this.sqlUpdateCommand1.Connection  = this.sqlConnection1;
     this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@RETURN_VALUE", System.Data.SqlDbType.Int, 4, System.Data.ParameterDirection.ReturnValue, false, ((System.Byte)(10)), ((System.Byte)(0)), "", System.Data.DataRowVersion.Current, null));
     this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@OrgName", System.Data.SqlDbType.NVarChar, 256, "OrgName"));
     this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@OrgName2", System.Data.SqlDbType.NVarChar, 255, "OrgName2"));
     this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@IsNormal", System.Data.SqlDbType.Bit, 1, "IsNormal"));
     this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@IsInner", System.Data.SqlDbType.Bit, 1, "IsInner"));
     this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@IsSpecial", System.Data.SqlDbType.Bit, 1, "IsSpecial"));
     this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@IsRemoved", System.Data.SqlDbType.Bit, 1, "IsRemoved"));
     this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@DefaultServiceCharge", System.Data.SqlDbType.Float, 8, System.Data.ParameterDirection.Input, false, ((System.Byte)(15)), ((System.Byte)(0)), "DefaultServiceCharge", System.Data.DataRowVersion.Current, null));
     this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@CodeINN", System.Data.SqlDbType.NVarChar, 16, "CodeINN"));
     this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@CodeKPP", System.Data.SqlDbType.NVarChar, 16, "CodeKPP"));
     this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@AddrReg", System.Data.SqlDbType.NVarChar, 255, "AddrReg"));
     this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@AddrFact", System.Data.SqlDbType.NVarChar, 255, "AddrFact"));
     this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Phone1", System.Data.SqlDbType.NVarChar, 16, "Phone1"));
     this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Phone2", System.Data.SqlDbType.NVarChar, 16, "Phone2"));
     this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Fax1", System.Data.SqlDbType.NVarChar, 16, "Fax1"));
     this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Fax2", System.Data.SqlDbType.NVarChar, 16, "Fax2"));
     this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@ContactPerson", System.Data.SqlDbType.NVarChar, 50, "ContactPerson"));
     this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@OKPO", System.Data.SqlDbType.NVarChar, 50, "OKPO"));
     this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@OKONH", System.Data.SqlDbType.NVarChar, 50, "OKONH"));
     this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_OrgID", System.Data.SqlDbType.Int, 4, System.Data.ParameterDirection.Input, false, ((System.Byte)(10)), ((System.Byte)(0)), "OrgID", System.Data.DataRowVersion.Current, null));
     this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@OrgID", System.Data.SqlDbType.Int, 4, System.Data.ParameterDirection.Input, false, ((System.Byte)(10)), ((System.Byte)(0)), "OrgID", System.Data.DataRowVersion.Current, null));
     this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@ClientID", System.Data.SqlDbType.Int, 0, System.Data.ParameterDirection.Input, false, ((System.Byte)(10)), ((System.Byte)(0)), "ClientID", System.Data.DataRowVersion.Current, null));
     //
     // dsOrgs1
     //
     this.dsOrgs1.DataSetName = "dsOrgs";
     this.dsOrgs1.Locale      = new System.Globalization.CultureInfo("ru-RU");
     //
     // dsOrgsAccount1
     //
     this.dsOrgsAccount1.DataSetName = "dsOrgsAccount";
     this.dsOrgsAccount1.Locale      = new System.Globalization.CultureInfo("ru-RU");
     ((System.ComponentModel.ISupportInitialize)(this.dsOrgs1)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.dsOrgsAccount1)).EndInit();
 }
 [System.Diagnostics.DebuggerStepThrough()] private void InitializeComponent()
 {
     System.Configuration.AppSettingsReader configurationAppSettings = new System.Configuration.AppSettingsReader();
     this.lblCustomer = new System.Windows.Forms.Label();
     base.Load       += new System.EventHandler(SelectCustomer_Load);
     base.Resize     += new System.EventHandler(SelectCustomer_Resize);
     this.cmbCustomer = new System.Windows.Forms.ListBox();
     this.cmbName     = new System.Windows.Forms.ListBox();
     this.lstChoose   = new System.Windows.Forms.ListBox();
     lstChoose.SelectedIndexChanged += new System.EventHandler(lstChoose_SelectedIndexChanged);
     this.cmdSelect   = new System.Windows.Forms.Button();
     cmdSelect.Click += new System.EventHandler(cmdSelect_Click);
     this.SuspendLayout();
     //
     //lblCustomer
     //
     this.lblCustomer.Location = new System.Drawing.Point(8, 8);
     this.lblCustomer.Name     = "lblCustomer";
     this.lblCustomer.Size     = new System.Drawing.Size(88, 23);
     this.lblCustomer.TabIndex = 45;
     this.lblCustomer.Text     = "Customer";
     //
     //cmbCustomer
     //
     this.cmbCustomer.Location = new System.Drawing.Point(104, 8);
     this.cmbCustomer.Name     = "cmbCustomer";
     this.cmbCustomer.Size     = new System.Drawing.Size(24, 17);
     this.cmbCustomer.TabIndex = 49;
     this.cmbCustomer.Visible  = false;
     //
     //cmbName
     //
     this.cmbName.Location = new System.Drawing.Point(136, 8);
     this.cmbName.Name     = "cmbName";
     this.cmbName.Size     = new System.Drawing.Size(32, 17);
     this.cmbName.TabIndex = 50;
     this.cmbName.Visible  = false;
     //
     //lstChoose
     //
     this.lstChoose.Location    = new System.Drawing.Point(8, 32);
     this.lstChoose.MultiColumn = System.Convert.ToBoolean(configurationAppSettings.GetValue("lstChoose.MultiColumn", typeof(System.Boolean)));
     this.lstChoose.Name        = "lstChoose";
     this.lstChoose.Size        = new System.Drawing.Size(256, 199);
     this.lstChoose.TabIndex    = 52;
     //
     //cmdSelect
     //
     this.cmdSelect.Location = new System.Drawing.Point(8, 240);
     this.cmdSelect.Name     = "cmdSelect";
     this.cmdSelect.TabIndex = 54;
     this.cmdSelect.Text     = "Choose";
     //
     //SelectCustomer
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.ClientSize        = new System.Drawing.Size(272, 269);
     this.ControlBox        = false;
     this.Controls.Add(this.cmdSelect);
     this.Controls.Add(this.lstChoose);
     this.Controls.Add(this.cmbName);
     this.Controls.Add(this.cmbCustomer);
     this.Controls.Add(this.lblCustomer);
     this.Name = "SelectCustomer";
     this.Text = "SelectCustomer";
     this.ResumeLayout(false);
 }
示例#41
0
 /// <summary>
 /// Método necesario para admitir el Diseñador, no se puede modificar
 /// el contenido del método con el editor de código.
 /// </summary>
 private void InitializeComponent()
 {
     System.Configuration.AppSettingsReader configurationAppSettings = new System.Configuration.AppSettingsReader();
     this.adpDatos            = new System.Data.OleDb.OleDbDataAdapter();
     this.conexion            = new System.Data.OleDb.OleDbConnection();
     this.ds                  = new flujo_venc_cursos.DataSet1();
     this.adpEncabezado       = new System.Data.OleDb.OleDbDataAdapter();
     this.oleDbSelectCommand2 = new System.Data.OleDb.OleDbCommand();
     this.oleDbSelectCommand1 = new System.Data.OleDb.OleDbCommand();
     ((System.ComponentModel.ISupportInitialize)(this.ds)).BeginInit();
     //
     // adpDatos
     //
     this.adpDatos.SelectCommand = this.oleDbSelectCommand1;
     this.adpDatos.TableMappings.AddRange(new System.Data.Common.DataTableMapping[] {
         new System.Data.Common.DataTableMapping("Table", "CURSOS", new System.Data.Common.DataColumnMapping[] {
             new System.Data.Common.DataColumnMapping("TDET_TDESC", "TDET_TDESC"),
             new System.Data.Common.DataColumnMapping("IGAS_TCODIGO", "IGAS_TCODIGO"),
             new System.Data.Common.DataColumnMapping("CCOS_TCODIGO", "CCOS_TCODIGO"),
             new System.Data.Common.DataColumnMapping("SEMESTRE", "SEMESTRE"),
             new System.Data.Common.DataColumnMapping("COMP_01", "COMP_01"),
             new System.Data.Common.DataColumnMapping("COMP_02", "COMP_02"),
             new System.Data.Common.DataColumnMapping("COMP_03", "COMP_03"),
             new System.Data.Common.DataColumnMapping("COMP_04", "COMP_04"),
             new System.Data.Common.DataColumnMapping("COMP_05", "COMP_05"),
             new System.Data.Common.DataColumnMapping("COMP_06", "COMP_06"),
             new System.Data.Common.DataColumnMapping("REAL_01", "REAL_01"),
             new System.Data.Common.DataColumnMapping("REAL_02", "REAL_02"),
             new System.Data.Common.DataColumnMapping("REAL_03", "REAL_03"),
             new System.Data.Common.DataColumnMapping("REAL_04", "REAL_04"),
             new System.Data.Common.DataColumnMapping("REAL_05", "REAL_05"),
             new System.Data.Common.DataColumnMapping("REAL_06", "REAL_06"),
             new System.Data.Common.DataColumnMapping("VARIACION_01", "VARIACION_01"),
             new System.Data.Common.DataColumnMapping("VARIACION_02", "VARIACION_02"),
             new System.Data.Common.DataColumnMapping("VARIACION_03", "VARIACION_03"),
             new System.Data.Common.DataColumnMapping("VARIACION_04", "VARIACION_04"),
             new System.Data.Common.DataColumnMapping("VARIACION_05", "VARIACION_05"),
             new System.Data.Common.DataColumnMapping("VARIACION_06", "VARIACION_06"),
             new System.Data.Common.DataColumnMapping("COMP_SEMESTRE", "COMP_SEMESTRE"),
             new System.Data.Common.DataColumnMapping("REAL_SEMESTRE", "REAL_SEMESTRE"),
             new System.Data.Common.DataColumnMapping("VARIACION_SEMESTRE", "VARIACION_SEMESTRE")
         })
     });
     //
     // conexion
     //
     this.conexion.ConnectionString = ((string)(configurationAppSettings.GetValue("cadenaConexion", typeof(string))));
     //
     // ds
     //
     this.ds.DataSetName = "DataSet1";
     this.ds.Locale      = new System.Globalization.CultureInfo("es-CL");
     this.ds.Namespace   = "http://www.tempuri.org/DataSet1.xsd";
     //
     // adpEncabezado
     //
     this.adpEncabezado.SelectCommand = this.oleDbSelectCommand2;
     this.adpEncabezado.TableMappings.AddRange(new System.Data.Common.DataTableMapping[] {
         new System.Data.Common.DataTableMapping("Table", "ENCABEZADO", new System.Data.Common.DataColumnMapping[] {
             new System.Data.Common.DataColumnMapping("SEDE_TDESC", "SEDE_TDESC"),
             new System.Data.Common.DataColumnMapping("ANOS_CCOD", "ANOS_CCOD")
         })
     });
     //
     // oleDbSelectCommand2
     //
     this.oleDbSelectCommand2.CommandText = "SELECT A.SEDE_TDESC, B.ANOS_CCOD, A.SEDE_CCOD FROM SEDES A, ANOS B WHERE (A.SEDE_" +
                                            "CCOD = ?) AND (B.ANOS_CCOD = ?)";
     this.oleDbSelectCommand2.Connection = this.conexion;
     this.oleDbSelectCommand2.Parameters.Add(new System.Data.OleDb.OleDbParameter("SEDE_CCOD", System.Data.OleDb.OleDbType.Decimal, 0, System.Data.ParameterDirection.Input, false, ((System.Byte)(3)), ((System.Byte)(0)), "SEDE_CCOD", System.Data.DataRowVersion.Current, null));
     this.oleDbSelectCommand2.Parameters.Add(new System.Data.OleDb.OleDbParameter("ANOS_CCOD", System.Data.OleDb.OleDbType.Decimal, 0, System.Data.ParameterDirection.Input, false, ((System.Byte)(4)), ((System.Byte)(0)), "ANOS_CCOD", System.Data.DataRowVersion.Current, null));
     //
     // oleDbSelectCommand1
     //
     this.oleDbSelectCommand1.CommandText = @"SELECT '' AS TDET_TDESC, '' AS IGAS_TCODIGO, '' AS CCOS_TCODIGO, 0 AS SEMESTRE, 0 AS COMP_01, 0 AS COMP_02, 0 AS COMP_03, 0 AS COMP_04, 0 AS COMP_05, 0 AS COMP_06, 0 AS REAL_01, 0 AS REAL_02, 0 AS REAL_03, 0 AS REAL_04, 0 AS REAL_05, 0 AS REAL_06, 0 AS VARIACION_01, 0 AS VARIACION_02, 0 AS VARIACION_03, 0 AS VARIACION_04, 0 AS VARIACION_05, 0 AS VARIACION_06, 0 AS COMP_SEMESTRE, 0 AS REAL_SEMESTRE, 0 AS VARIACION_SEMESTRE FROM DUAL";
     this.oleDbSelectCommand1.Connection  = this.conexion;
     this.Load += new System.EventHandler(this.Page_Load);
     ((System.ComponentModel.ISupportInitialize)(this.ds)).EndInit();
 }
示例#42
0
 /// <summary>
 /// Método necesario para admitir el Diseñador. No se puede modificar
 /// el contenido del método con el editor de código.
 /// </summary>
 private void InitializeComponent()
 {
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(AceroMdor));
     System.Configuration.AppSettingsReader         configurationAppSettings = new System.Configuration.AppSettingsReader();
     this.sqlDAAceroMdor     = new System.Data.SqlClient.SqlDataAdapter();
     this.sqlDeleteCommand1  = new System.Data.SqlClient.SqlCommand();
     this.sqlConn            = new System.Data.SqlClient.SqlConnection();
     this.sqlInsertCommand1  = new System.Data.SqlClient.SqlCommand();
     this.sqlSelectCommand1  = new System.Data.SqlClient.SqlCommand();
     this.sqlUpdateCommand1  = new System.Data.SqlClient.SqlCommand();
     this.dsAceroMdor1       = new LancNeo.dsAceroMdor();
     this.panel2             = new System.Windows.Forms.Panel();
     this.buscaBtn1          = new Soluciones2000.Tools.WinLib.BuscaBtn();
     this.txtUsrMov          = new System.Windows.Forms.TextBox();
     this.label11            = new System.Windows.Forms.Label();
     this.txtObserva         = new System.Windows.Forms.TextBox();
     this.txtMuestreadasen   = new System.Windows.Forms.TextBox();
     this.txtSemana          = new System.Windows.Forms.TextBox();
     this.cmbNoeco           = new System.Windows.Forms.ComboBox();
     this.dsLaboratorista1   = new LancNeo.dsLaboratorista();
     this.dtpFinforme        = new System.Windows.Forms.DateTimePicker();
     this.dtpFensaye         = new System.Windows.Forms.DateTimePicker();
     this.dtpFmuestreo       = new System.Windows.Forms.DateTimePicker();
     this.txtConsecutivo     = new System.Windows.Forms.TextBox();
     this.cmbIdObra          = new System.Windows.Forms.ComboBox();
     this.dsBusObra1         = new LancNeo.dsBusObra();
     this.txtFolio           = new System.Windows.Forms.TextBox();
     this.label10            = new System.Windows.Forms.Label();
     this.label9             = new System.Windows.Forms.Label();
     this.label8             = new System.Windows.Forms.Label();
     this.label7             = new System.Windows.Forms.Label();
     this.label6             = new System.Windows.Forms.Label();
     this.label5             = new System.Windows.Forms.Label();
     this.label4             = new System.Windows.Forms.Label();
     this.label3             = new System.Windows.Forms.Label();
     this.label2             = new System.Windows.Forms.Label();
     this.label1             = new System.Windows.Forms.Label();
     this.sqlDABusObra       = new System.Data.SqlClient.SqlDataAdapter();
     this.sqlCommand1        = new System.Data.SqlClient.SqlCommand();
     this.sqlDALaboratorista = new System.Data.SqlClient.SqlDataAdapter();
     this.sqlSelectCommand5  = new System.Data.SqlClient.SqlCommand();
     this.panelToolBar.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.dsAceroMdor1)).BeginInit();
     this.panel2.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.dsLaboratorista1)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.dsBusObra1)).BeginInit();
     this.SuspendLayout();
     //
     // statusBar1
     //
     this.statusBar1.Location   = new System.Drawing.Point(0, 431);
     this.statusBar1.ShowPanels = true;
     this.statusBar1.Size       = new System.Drawing.Size(584, 22);
     //
     // panelToolBar
     //
     this.panelToolBar.Size = new System.Drawing.Size(584, 64);
     //
     // sqlDAAceroMdor
     //
     this.sqlDAAceroMdor.DeleteCommand = this.sqlDeleteCommand1;
     this.sqlDAAceroMdor.InsertCommand = this.sqlInsertCommand1;
     this.sqlDAAceroMdor.SelectCommand = this.sqlSelectCommand1;
     this.sqlDAAceroMdor.TableMappings.AddRange(new System.Data.Common.DataTableMapping[] {
         new System.Data.Common.DataTableMapping("Table", "AceroMdor", new System.Data.Common.DataColumnMapping[] {
             new System.Data.Common.DataColumnMapping("FOLIO", "FOLIO"),
             new System.Data.Common.DataColumnMapping("IdObra", "IdObra"),
             new System.Data.Common.DataColumnMapping("ConsObra", "ConsObra"),
             new System.Data.Common.DataColumnMapping("FMuestreo", "FMuestreo"),
             new System.Data.Common.DataColumnMapping("FEnsaye", "FEnsaye"),
             new System.Data.Common.DataColumnMapping("FInforme", "FInforme"),
             new System.Data.Common.DataColumnMapping("NoEco", "NoEco"),
             new System.Data.Common.DataColumnMapping("Semana", "Semana"),
             new System.Data.Common.DataColumnMapping("MuestreadasEn", "MuestreadasEn"),
             new System.Data.Common.DataColumnMapping("Observaciones", "Observaciones"),
             new System.Data.Common.DataColumnMapping("IdUsuario", "IdUsuario")
         })
     });
     this.sqlDAAceroMdor.UpdateCommand = this.sqlUpdateCommand1;
     //
     // sqlDeleteCommand1
     //
     this.sqlDeleteCommand1.CommandText = resources.GetString("sqlDeleteCommand1.CommandText");
     this.sqlDeleteCommand1.Connection  = this.sqlConn;
     this.sqlDeleteCommand1.Parameters.AddRange(new System.Data.SqlClient.SqlParameter[] {
         new System.Data.SqlClient.SqlParameter("@Original_FOLIO", System.Data.SqlDbType.Char, 0, System.Data.ParameterDirection.Input, false, ((byte)(0)), ((byte)(0)), "FOLIO", System.Data.DataRowVersion.Original, null),
         new System.Data.SqlClient.SqlParameter("@Original_IdObra", System.Data.SqlDbType.NVarChar, 0, System.Data.ParameterDirection.Input, false, ((byte)(0)), ((byte)(0)), "IdObra", System.Data.DataRowVersion.Original, null),
         new System.Data.SqlClient.SqlParameter("@IsNull_ConsObra", System.Data.SqlDbType.Int, 0, System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ConsObra", System.Data.DataRowVersion.Original, true, null, "", "", ""),
         new System.Data.SqlClient.SqlParameter("@Original_ConsObra", System.Data.SqlDbType.SmallInt, 0, System.Data.ParameterDirection.Input, false, ((byte)(0)), ((byte)(0)), "ConsObra", System.Data.DataRowVersion.Original, null),
         new System.Data.SqlClient.SqlParameter("@IsNull_FMuestreo", System.Data.SqlDbType.Int, 0, System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "FMuestreo", System.Data.DataRowVersion.Original, true, null, "", "", ""),
         new System.Data.SqlClient.SqlParameter("@Original_FMuestreo", System.Data.SqlDbType.SmallDateTime, 0, System.Data.ParameterDirection.Input, false, ((byte)(0)), ((byte)(0)), "FMuestreo", System.Data.DataRowVersion.Original, null),
         new System.Data.SqlClient.SqlParameter("@IsNull_FEnsaye", System.Data.SqlDbType.Int, 0, System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "FEnsaye", System.Data.DataRowVersion.Original, true, null, "", "", ""),
         new System.Data.SqlClient.SqlParameter("@Original_FEnsaye", System.Data.SqlDbType.SmallDateTime, 0, System.Data.ParameterDirection.Input, false, ((byte)(0)), ((byte)(0)), "FEnsaye", System.Data.DataRowVersion.Original, null),
         new System.Data.SqlClient.SqlParameter("@IsNull_FInforme", System.Data.SqlDbType.Int, 0, System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "FInforme", System.Data.DataRowVersion.Original, true, null, "", "", ""),
         new System.Data.SqlClient.SqlParameter("@Original_FInforme", System.Data.SqlDbType.SmallDateTime, 0, System.Data.ParameterDirection.Input, false, ((byte)(0)), ((byte)(0)), "FInforme", System.Data.DataRowVersion.Original, null),
         new System.Data.SqlClient.SqlParameter("@IsNull_NoEco", System.Data.SqlDbType.Int, 0, System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "NoEco", System.Data.DataRowVersion.Original, true, null, "", "", ""),
         new System.Data.SqlClient.SqlParameter("@Original_NoEco", System.Data.SqlDbType.SmallInt, 0, System.Data.ParameterDirection.Input, false, ((byte)(0)), ((byte)(0)), "NoEco", System.Data.DataRowVersion.Original, null),
         new System.Data.SqlClient.SqlParameter("@IsNull_Semana", System.Data.SqlDbType.Int, 0, System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "Semana", System.Data.DataRowVersion.Original, true, null, "", "", ""),
         new System.Data.SqlClient.SqlParameter("@Original_Semana", System.Data.SqlDbType.SmallInt, 0, System.Data.ParameterDirection.Input, false, ((byte)(0)), ((byte)(0)), "Semana", System.Data.DataRowVersion.Original, null),
         new System.Data.SqlClient.SqlParameter("@IsNull_MuestreadasEn", System.Data.SqlDbType.Int, 0, System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "MuestreadasEn", System.Data.DataRowVersion.Original, true, null, "", "", ""),
         new System.Data.SqlClient.SqlParameter("@Original_MuestreadasEn", System.Data.SqlDbType.NVarChar, 0, System.Data.ParameterDirection.Input, false, ((byte)(0)), ((byte)(0)), "MuestreadasEn", System.Data.DataRowVersion.Original, null),
         new System.Data.SqlClient.SqlParameter("@IsNull_Observaciones", System.Data.SqlDbType.Int, 0, System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "Observaciones", System.Data.DataRowVersion.Original, true, null, "", "", ""),
         new System.Data.SqlClient.SqlParameter("@Original_Observaciones", System.Data.SqlDbType.NVarChar, 0, System.Data.ParameterDirection.Input, false, ((byte)(0)), ((byte)(0)), "Observaciones", System.Data.DataRowVersion.Original, null),
         new System.Data.SqlClient.SqlParameter("@IsNull_IdUsuario", System.Data.SqlDbType.Int, 0, System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "IdUsuario", System.Data.DataRowVersion.Original, true, null, "", "", ""),
         new System.Data.SqlClient.SqlParameter("@Original_IdUsuario", System.Data.SqlDbType.VarChar, 0, System.Data.ParameterDirection.Input, false, ((byte)(0)), ((byte)(0)), "IdUsuario", System.Data.DataRowVersion.Original, null)
     });
     //
     // sqlConn
     //
     this.sqlConn.ConnectionString = ((string)(configurationAppSettings.GetValue("sqlConn.ConnectionString", typeof(string))));
     this.sqlConn.FireInfoMessageEventOnUserErrors = false;
     //
     // sqlInsertCommand1
     //
     this.sqlInsertCommand1.CommandText = resources.GetString("sqlInsertCommand1.CommandText");
     this.sqlInsertCommand1.Connection  = this.sqlConn;
     this.sqlInsertCommand1.Parameters.AddRange(new System.Data.SqlClient.SqlParameter[] {
         new System.Data.SqlClient.SqlParameter("@FOLIO", System.Data.SqlDbType.Char, 0, "FOLIO"),
         new System.Data.SqlClient.SqlParameter("@IdObra", System.Data.SqlDbType.NVarChar, 0, "IdObra"),
         new System.Data.SqlClient.SqlParameter("@ConsObra", System.Data.SqlDbType.SmallInt, 0, "ConsObra"),
         new System.Data.SqlClient.SqlParameter("@FMuestreo", System.Data.SqlDbType.SmallDateTime, 0, "FMuestreo"),
         new System.Data.SqlClient.SqlParameter("@FEnsaye", System.Data.SqlDbType.SmallDateTime, 0, "FEnsaye"),
         new System.Data.SqlClient.SqlParameter("@FInforme", System.Data.SqlDbType.SmallDateTime, 0, "FInforme"),
         new System.Data.SqlClient.SqlParameter("@NoEco", System.Data.SqlDbType.SmallInt, 0, "NoEco"),
         new System.Data.SqlClient.SqlParameter("@Semana", System.Data.SqlDbType.SmallInt, 0, "Semana"),
         new System.Data.SqlClient.SqlParameter("@MuestreadasEn", System.Data.SqlDbType.NVarChar, 0, "MuestreadasEn"),
         new System.Data.SqlClient.SqlParameter("@Observaciones", System.Data.SqlDbType.NVarChar, 0, "Observaciones"),
         new System.Data.SqlClient.SqlParameter("@IdUsuario", System.Data.SqlDbType.VarChar, 0, "IdUsuario")
     });
     //
     // sqlSelectCommand1
     //
     this.sqlSelectCommand1.CommandText = resources.GetString("sqlSelectCommand1.CommandText");
     this.sqlSelectCommand1.Connection  = this.sqlConn;
     //
     // sqlUpdateCommand1
     //
     this.sqlUpdateCommand1.CommandText = resources.GetString("sqlUpdateCommand1.CommandText");
     this.sqlUpdateCommand1.Connection  = this.sqlConn;
     this.sqlUpdateCommand1.Parameters.AddRange(new System.Data.SqlClient.SqlParameter[] {
         new System.Data.SqlClient.SqlParameter("@FOLIO", System.Data.SqlDbType.Char, 0, "FOLIO"),
         new System.Data.SqlClient.SqlParameter("@IdObra", System.Data.SqlDbType.NVarChar, 0, "IdObra"),
         new System.Data.SqlClient.SqlParameter("@ConsObra", System.Data.SqlDbType.SmallInt, 0, "ConsObra"),
         new System.Data.SqlClient.SqlParameter("@FMuestreo", System.Data.SqlDbType.SmallDateTime, 0, "FMuestreo"),
         new System.Data.SqlClient.SqlParameter("@FEnsaye", System.Data.SqlDbType.SmallDateTime, 0, "FEnsaye"),
         new System.Data.SqlClient.SqlParameter("@FInforme", System.Data.SqlDbType.SmallDateTime, 0, "FInforme"),
         new System.Data.SqlClient.SqlParameter("@NoEco", System.Data.SqlDbType.SmallInt, 0, "NoEco"),
         new System.Data.SqlClient.SqlParameter("@Semana", System.Data.SqlDbType.SmallInt, 0, "Semana"),
         new System.Data.SqlClient.SqlParameter("@MuestreadasEn", System.Data.SqlDbType.NVarChar, 0, "MuestreadasEn"),
         new System.Data.SqlClient.SqlParameter("@Observaciones", System.Data.SqlDbType.NVarChar, 0, "Observaciones"),
         new System.Data.SqlClient.SqlParameter("@IdUsuario", System.Data.SqlDbType.VarChar, 0, "IdUsuario"),
         new System.Data.SqlClient.SqlParameter("@Original_FOLIO", System.Data.SqlDbType.Char, 0, System.Data.ParameterDirection.Input, false, ((byte)(0)), ((byte)(0)), "FOLIO", System.Data.DataRowVersion.Original, null),
         new System.Data.SqlClient.SqlParameter("@Original_IdObra", System.Data.SqlDbType.NVarChar, 0, System.Data.ParameterDirection.Input, false, ((byte)(0)), ((byte)(0)), "IdObra", System.Data.DataRowVersion.Original, null),
         new System.Data.SqlClient.SqlParameter("@IsNull_ConsObra", System.Data.SqlDbType.Int, 0, System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ConsObra", System.Data.DataRowVersion.Original, true, null, "", "", ""),
         new System.Data.SqlClient.SqlParameter("@Original_ConsObra", System.Data.SqlDbType.SmallInt, 0, System.Data.ParameterDirection.Input, false, ((byte)(0)), ((byte)(0)), "ConsObra", System.Data.DataRowVersion.Original, null),
         new System.Data.SqlClient.SqlParameter("@IsNull_FMuestreo", System.Data.SqlDbType.Int, 0, System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "FMuestreo", System.Data.DataRowVersion.Original, true, null, "", "", ""),
         new System.Data.SqlClient.SqlParameter("@Original_FMuestreo", System.Data.SqlDbType.SmallDateTime, 0, System.Data.ParameterDirection.Input, false, ((byte)(0)), ((byte)(0)), "FMuestreo", System.Data.DataRowVersion.Original, null),
         new System.Data.SqlClient.SqlParameter("@IsNull_FEnsaye", System.Data.SqlDbType.Int, 0, System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "FEnsaye", System.Data.DataRowVersion.Original, true, null, "", "", ""),
         new System.Data.SqlClient.SqlParameter("@Original_FEnsaye", System.Data.SqlDbType.SmallDateTime, 0, System.Data.ParameterDirection.Input, false, ((byte)(0)), ((byte)(0)), "FEnsaye", System.Data.DataRowVersion.Original, null),
         new System.Data.SqlClient.SqlParameter("@IsNull_FInforme", System.Data.SqlDbType.Int, 0, System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "FInforme", System.Data.DataRowVersion.Original, true, null, "", "", ""),
         new System.Data.SqlClient.SqlParameter("@Original_FInforme", System.Data.SqlDbType.SmallDateTime, 0, System.Data.ParameterDirection.Input, false, ((byte)(0)), ((byte)(0)), "FInforme", System.Data.DataRowVersion.Original, null),
         new System.Data.SqlClient.SqlParameter("@IsNull_NoEco", System.Data.SqlDbType.Int, 0, System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "NoEco", System.Data.DataRowVersion.Original, true, null, "", "", ""),
         new System.Data.SqlClient.SqlParameter("@Original_NoEco", System.Data.SqlDbType.SmallInt, 0, System.Data.ParameterDirection.Input, false, ((byte)(0)), ((byte)(0)), "NoEco", System.Data.DataRowVersion.Original, null),
         new System.Data.SqlClient.SqlParameter("@IsNull_Semana", System.Data.SqlDbType.Int, 0, System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "Semana", System.Data.DataRowVersion.Original, true, null, "", "", ""),
         new System.Data.SqlClient.SqlParameter("@Original_Semana", System.Data.SqlDbType.SmallInt, 0, System.Data.ParameterDirection.Input, false, ((byte)(0)), ((byte)(0)), "Semana", System.Data.DataRowVersion.Original, null),
         new System.Data.SqlClient.SqlParameter("@IsNull_MuestreadasEn", System.Data.SqlDbType.Int, 0, System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "MuestreadasEn", System.Data.DataRowVersion.Original, true, null, "", "", ""),
         new System.Data.SqlClient.SqlParameter("@Original_MuestreadasEn", System.Data.SqlDbType.NVarChar, 0, System.Data.ParameterDirection.Input, false, ((byte)(0)), ((byte)(0)), "MuestreadasEn", System.Data.DataRowVersion.Original, null),
         new System.Data.SqlClient.SqlParameter("@IsNull_Observaciones", System.Data.SqlDbType.Int, 0, System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "Observaciones", System.Data.DataRowVersion.Original, true, null, "", "", ""),
         new System.Data.SqlClient.SqlParameter("@Original_Observaciones", System.Data.SqlDbType.NVarChar, 0, System.Data.ParameterDirection.Input, false, ((byte)(0)), ((byte)(0)), "Observaciones", System.Data.DataRowVersion.Original, null),
         new System.Data.SqlClient.SqlParameter("@IsNull_IdUsuario", System.Data.SqlDbType.Int, 0, System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "IdUsuario", System.Data.DataRowVersion.Original, true, null, "", "", ""),
         new System.Data.SqlClient.SqlParameter("@Original_IdUsuario", System.Data.SqlDbType.VarChar, 0, System.Data.ParameterDirection.Input, false, ((byte)(0)), ((byte)(0)), "IdUsuario", System.Data.DataRowVersion.Original, null)
     });
     //
     // dsAceroMdor1
     //
     this.dsAceroMdor1.DataSetName             = "dsAceroMdor";
     this.dsAceroMdor1.Locale                  = new System.Globalization.CultureInfo("es-MX");
     this.dsAceroMdor1.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema;
     //
     // panel2
     //
     this.panel2.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
     this.panel2.Controls.Add(this.buscaBtn1);
     this.panel2.Controls.Add(this.txtUsrMov);
     this.panel2.Controls.Add(this.label11);
     this.panel2.Controls.Add(this.txtObserva);
     this.panel2.Controls.Add(this.txtMuestreadasen);
     this.panel2.Controls.Add(this.txtSemana);
     this.panel2.Controls.Add(this.cmbNoeco);
     this.panel2.Controls.Add(this.dtpFinforme);
     this.panel2.Controls.Add(this.dtpFensaye);
     this.panel2.Controls.Add(this.dtpFmuestreo);
     this.panel2.Controls.Add(this.txtConsecutivo);
     this.panel2.Controls.Add(this.cmbIdObra);
     this.panel2.Controls.Add(this.txtFolio);
     this.panel2.Controls.Add(this.label10);
     this.panel2.Controls.Add(this.label9);
     this.panel2.Controls.Add(this.label8);
     this.panel2.Controls.Add(this.label7);
     this.panel2.Controls.Add(this.label6);
     this.panel2.Controls.Add(this.label5);
     this.panel2.Controls.Add(this.label4);
     this.panel2.Controls.Add(this.label3);
     this.panel2.Controls.Add(this.label2);
     this.panel2.Controls.Add(this.label1);
     this.panel2.Location = new System.Drawing.Point(24, 96);
     this.panel2.Name     = "panel2";
     this.panel2.Size     = new System.Drawing.Size(536, 320);
     this.panel2.TabIndex = 4;
     //
     // buscaBtn1
     //
     this.buscaBtn1.AnchoColTit  = true;
     this.buscaBtn1.AnchoDlgBusq = 675;
     this.buscaBtn1.BackColor    = System.Drawing.Color.Transparent;
     this.buscaBtn1.Datos        = this.dsAceroMdor1.AceroMdor;
     this.buscaBtn1.Icon         = ((System.Drawing.Icon)(resources.GetObject("buscaBtn1.Icon")));
     this.buscaBtn1.Location     = new System.Drawing.Point(202, 6);
     this.buscaBtn1.Name         = "buscaBtn1";
     this.buscaBtn1.Size         = new System.Drawing.Size(64, 64);
     this.buscaBtn1.TabIndex     = 20;
     //
     // txtUsrMov
     //
     this.txtUsrMov.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.dsAceroMdor1, "AceroMdor.IdUsuario", true));
     this.txtUsrMov.Location = new System.Drawing.Point(406, 25);
     this.txtUsrMov.Name     = "txtUsrMov";
     this.txtUsrMov.ReadOnly = true;
     this.txtUsrMov.Size     = new System.Drawing.Size(68, 20);
     this.txtUsrMov.TabIndex = 22;
     //
     // label11
     //
     this.label11.AutoSize  = true;
     this.label11.Font      = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label11.ForeColor = System.Drawing.Color.Red;
     this.label11.Location  = new System.Drawing.Point(345, 29);
     this.label11.Name      = "label11";
     this.label11.Size      = new System.Drawing.Size(54, 13);
     this.label11.TabIndex  = 21;
     this.label11.Text      = "Usuario:";
     this.label11.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // txtObserva
     //
     this.txtObserva.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.dsAceroMdor1, "AceroMdor.Observaciones", true));
     this.txtObserva.Location   = new System.Drawing.Point(126, 238);
     this.txtObserva.MaxLength  = 512;
     this.txtObserva.Multiline  = true;
     this.txtObserva.Name       = "txtObserva";
     this.txtObserva.ScrollBars = System.Windows.Forms.ScrollBars.Vertical;
     this.txtObserva.Size       = new System.Drawing.Size(394, 68);
     this.txtObserva.TabIndex   = 19;
     this.txtObserva.Text       = "textBox5";
     //
     // txtMuestreadasen
     //
     this.txtMuestreadasen.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.dsAceroMdor1, "AceroMdor.MuestreadasEn", true));
     this.txtMuestreadasen.Location = new System.Drawing.Point(126, 214);
     this.txtMuestreadasen.Name     = "txtMuestreadasen";
     this.txtMuestreadasen.Size     = new System.Drawing.Size(100, 20);
     this.txtMuestreadasen.TabIndex = 18;
     this.txtMuestreadasen.Text     = "textBox4";
     //
     // txtSemana
     //
     this.txtSemana.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.dsAceroMdor1, "AceroMdor.Semana", true));
     this.txtSemana.Location  = new System.Drawing.Point(126, 190);
     this.txtSemana.MaxLength = 2;
     this.txtSemana.Name      = "txtSemana";
     this.txtSemana.Size      = new System.Drawing.Size(66, 20);
     this.txtSemana.TabIndex  = 17;
     this.txtSemana.Text      = "textBox3";
     //
     // cmbNoeco
     //
     this.cmbNoeco.DataBindings.Add(new System.Windows.Forms.Binding("SelectedValue", this.dsAceroMdor1, "AceroMdor.NoEco", true));
     this.cmbNoeco.DataSource    = this.dsLaboratorista1.Laboratorista;
     this.cmbNoeco.DisplayMember = "Laboratorista";
     this.cmbNoeco.Location      = new System.Drawing.Point(126, 166);
     this.cmbNoeco.Name          = "cmbNoeco";
     this.cmbNoeco.Size          = new System.Drawing.Size(392, 21);
     this.cmbNoeco.TabIndex      = 16;
     this.cmbNoeco.ValueMember   = "NoEco";
     //
     // dsLaboratorista1
     //
     this.dsLaboratorista1.DataSetName             = "dsLaboratorista";
     this.dsLaboratorista1.Locale                  = new System.Globalization.CultureInfo("es-MX");
     this.dsLaboratorista1.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema;
     //
     // dtpFinforme
     //
     this.dtpFinforme.CustomFormat = "dd/MM/yyyy";
     this.dtpFinforme.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.dsAceroMdor1, "AceroMdor.FInforme", true));
     this.dtpFinforme.Format   = System.Windows.Forms.DateTimePickerFormat.Custom;
     this.dtpFinforme.Location = new System.Drawing.Point(126, 142);
     this.dtpFinforme.Name     = "dtpFinforme";
     this.dtpFinforme.Size     = new System.Drawing.Size(84, 20);
     this.dtpFinforme.TabIndex = 15;
     //
     // dtpFensaye
     //
     this.dtpFensaye.CustomFormat = "dd/MM/yyyy";
     this.dtpFensaye.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.dsAceroMdor1, "AceroMdor.FEnsaye", true));
     this.dtpFensaye.Format   = System.Windows.Forms.DateTimePickerFormat.Custom;
     this.dtpFensaye.Location = new System.Drawing.Point(126, 118);
     this.dtpFensaye.Name     = "dtpFensaye";
     this.dtpFensaye.Size     = new System.Drawing.Size(84, 20);
     this.dtpFensaye.TabIndex = 14;
     //
     // dtpFmuestreo
     //
     this.dtpFmuestreo.CustomFormat = "dd/MM/yyyy";
     this.dtpFmuestreo.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.dsAceroMdor1, "AceroMdor.FMuestreo", true));
     this.dtpFmuestreo.Format   = System.Windows.Forms.DateTimePickerFormat.Custom;
     this.dtpFmuestreo.Location = new System.Drawing.Point(126, 94);
     this.dtpFmuestreo.Name     = "dtpFmuestreo";
     this.dtpFmuestreo.Size     = new System.Drawing.Size(84, 20);
     this.dtpFmuestreo.TabIndex = 13;
     //
     // txtConsecutivo
     //
     this.txtConsecutivo.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.dsAceroMdor1, "AceroMdor.ConsObra", true));
     this.txtConsecutivo.Location  = new System.Drawing.Point(126, 70);
     this.txtConsecutivo.MaxLength = 4;
     this.txtConsecutivo.Name      = "txtConsecutivo";
     this.txtConsecutivo.Size      = new System.Drawing.Size(66, 20);
     this.txtConsecutivo.TabIndex  = 12;
     this.txtConsecutivo.Text      = "textBox2";
     //
     // cmbIdObra
     //
     this.cmbIdObra.DataBindings.Add(new System.Windows.Forms.Binding("SelectedValue", this.dsAceroMdor1, "AceroMdor.IdObra", true));
     this.cmbIdObra.DataSource    = this.dsBusObra1;
     this.cmbIdObra.DisplayMember = "Obra.Idobra";
     this.cmbIdObra.Location      = new System.Drawing.Point(126, 46);
     this.cmbIdObra.Name          = "cmbIdObra";
     this.cmbIdObra.Size          = new System.Drawing.Size(66, 21);
     this.cmbIdObra.TabIndex      = 11;
     this.cmbIdObra.ValueMember   = "Obra.Idobra";
     //
     // dsBusObra1
     //
     this.dsBusObra1.DataSetName             = "dsBusObra";
     this.dsBusObra1.Locale                  = new System.Globalization.CultureInfo("es-MX");
     this.dsBusObra1.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema;
     //
     // txtFolio
     //
     this.txtFolio.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.dsAceroMdor1, "AceroMdor.FOLIO", true));
     this.txtFolio.Location  = new System.Drawing.Point(126, 22);
     this.txtFolio.MaxLength = 10;
     this.txtFolio.Name      = "txtFolio";
     this.txtFolio.Size      = new System.Drawing.Size(64, 20);
     this.txtFolio.TabIndex  = 10;
     this.txtFolio.Text      = "textBox1";
     //
     // label10
     //
     this.label10.AutoSize  = true;
     this.label10.Location  = new System.Drawing.Point(30, 240);
     this.label10.Name      = "label10";
     this.label10.Size      = new System.Drawing.Size(81, 13);
     this.label10.TabIndex  = 9;
     this.label10.Text      = "Observaciones:";
     this.label10.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // label9
     //
     this.label9.AutoSize  = true;
     this.label9.Location  = new System.Drawing.Point(25, 216);
     this.label9.Name      = "label9";
     this.label9.Size      = new System.Drawing.Size(86, 13);
     this.label9.TabIndex  = 8;
     this.label9.Text      = "Muestreadas en:";
     this.label9.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // label8
     //
     this.label8.AutoSize  = true;
     this.label8.Location  = new System.Drawing.Point(63, 192);
     this.label8.Name      = "label8";
     this.label8.Size      = new System.Drawing.Size(49, 13);
     this.label8.TabIndex  = 7;
     this.label8.Text      = "Semana:";
     this.label8.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // label7
     //
     this.label7.AutoSize  = true;
     this.label7.Location  = new System.Drawing.Point(36, 168);
     this.label7.Name      = "label7";
     this.label7.Size      = new System.Drawing.Size(75, 13);
     this.label7.TabIndex  = 6;
     this.label7.Text      = "Ensayado por:";
     this.label7.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // label6
     //
     this.label6.AutoSize  = true;
     this.label6.Location  = new System.Drawing.Point(33, 144);
     this.label6.Name      = "label6";
     this.label6.Size      = new System.Drawing.Size(77, 13);
     this.label6.TabIndex  = 5;
     this.label6.Text      = "Fecha informe:";
     this.label6.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // label5
     //
     this.label5.AutoSize  = true;
     this.label5.Location  = new System.Drawing.Point(19, 120);
     this.label5.Name      = "label5";
     this.label5.Size      = new System.Drawing.Size(92, 13);
     this.label5.TabIndex  = 4;
     this.label5.Text      = "Fecha de ensaye:";
     this.label5.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // label4
     //
     this.label4.AutoSize  = true;
     this.label4.Location  = new System.Drawing.Point(8, 96);
     this.label4.Name      = "label4";
     this.label4.Size      = new System.Drawing.Size(101, 13);
     this.label4.TabIndex  = 3;
     this.label4.Text      = "Fecha de muestreo:";
     this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // label3
     //
     this.label3.AutoSize  = true;
     this.label3.Location  = new System.Drawing.Point(43, 72);
     this.label3.Name      = "label3";
     this.label3.Size      = new System.Drawing.Size(69, 13);
     this.label3.TabIndex  = 2;
     this.label3.Text      = "Consecutivo:";
     this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // label2
     //
     this.label2.AutoSize  = true;
     this.label2.Location  = new System.Drawing.Point(81, 48);
     this.label2.Name      = "label2";
     this.label2.Size      = new System.Drawing.Size(33, 13);
     this.label2.TabIndex  = 1;
     this.label2.Text      = "Obra:";
     this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // label1
     //
     this.label1.AutoSize  = true;
     this.label1.Location  = new System.Drawing.Point(72, 24);
     this.label1.Name      = "label1";
     this.label1.Size      = new System.Drawing.Size(41, 13);
     this.label1.TabIndex  = 0;
     this.label1.Text      = "FOLIO:";
     this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // sqlDABusObra
     //
     this.sqlDABusObra.SelectCommand = this.sqlCommand1;
     this.sqlDABusObra.TableMappings.AddRange(new System.Data.Common.DataTableMapping[] {
         new System.Data.Common.DataTableMapping("Table", "Obra", new System.Data.Common.DataColumnMapping[] {
             new System.Data.Common.DataColumnMapping("Idobra", "Idobra"),
             new System.Data.Common.DataColumnMapping("Ubicacion", "Ubicacion"),
             new System.Data.Common.DataColumnMapping("RFC", "RFC"),
             new System.Data.Common.DataColumnMapping("Facturar", "Facturar")
         })
     });
     //
     // sqlCommand1
     //
     this.sqlCommand1.CommandText = "SELECT Obra.Idobra, Obra.Ubicacion, Obra.RFC, Razonsocial.Facturar FROM Obra LEFT" +
                                    " OUTER JOIN Razonsocial ON Obra.IdCliente = Razonsocial.IdCliente AND Obra.RFC =" +
                                    " Razonsocial.RFC ORDER BY Obra.Idobra";
     this.sqlCommand1.Connection = this.sqlConn;
     //
     // sqlDALaboratorista
     //
     this.sqlDALaboratorista.SelectCommand = this.sqlSelectCommand5;
     this.sqlDALaboratorista.TableMappings.AddRange(new System.Data.Common.DataTableMapping[] {
         new System.Data.Common.DataTableMapping("Table", "Laboratorista", new System.Data.Common.DataColumnMapping[] {
             new System.Data.Common.DataColumnMapping("NoEco", "NoEco"),
             new System.Data.Common.DataColumnMapping("Laboratorista", "Laboratorista"),
             new System.Data.Common.DataColumnMapping("IdZona", "IdZona"),
             new System.Data.Common.DataColumnMapping("IdNivel", "IdNivel"),
             new System.Data.Common.DataColumnMapping("Fechai", "Fechai")
         })
     });
     //
     // sqlSelectCommand5
     //
     this.sqlSelectCommand5.CommandText = "SELECT NoEco, LTRIM(STR(NoEco)) + \' \' + Laboratorista AS Laboratorista, IdZona, I" +
                                          "dNivel, Fechai FROM Laboratorista ORDER BY NoEco";
     this.sqlSelectCommand5.Connection = this.sqlConn;
     //
     // AceroMdor
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.ClientSize        = new System.Drawing.Size(584, 453);
     this.Controls.Add(this.panel2);
     this.DAGeneral   = this.sqlDAAceroMdor;
     this.dsGeneral   = this.dsAceroMdor1;
     this.Name        = "AceroMdor";
     this.NombreTabla = "AceroMdor";
     this.Text        = "Muestreador de acero";
     this.Load       += new System.EventHandler(this.AceroMdor_Load);
     this.Controls.SetChildIndex(this.panel2, 0);
     this.Controls.SetChildIndex(this.statusBar1, 0);
     this.Controls.SetChildIndex(this.panelToolBar, 0);
     this.panelToolBar.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.dsAceroMdor1)).EndInit();
     this.panel2.ResumeLayout(false);
     this.panel2.PerformLayout();
     ((System.ComponentModel.ISupportInitialize)(this.dsLaboratorista1)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.dsBusObra1)).EndInit();
     this.ResumeLayout(false);
 }
示例#43
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     System.Configuration.AppSettingsReader         configurationAppSettings = new System.Configuration.AppSettingsReader();
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(InfSegui));
     this.sqlConn            = new System.Data.SqlClient.SqlConnection();
     this.crvInfPrecios      = new CrystalDecisions.Windows.Forms.CrystalReportViewer();
     this.panel2             = new System.Windows.Forms.Panel();
     this.btnVistaPrevia     = new Soluciones2000.Tools.WinLib.tbBtn();
     this.dateTimePicker2    = new System.Windows.Forms.DateTimePicker();
     this.dateTimePicker1    = new System.Windows.Forms.DateTimePicker();
     this.label4             = new System.Windows.Forms.Label();
     this.sqlDASolicitud     = new System.Data.SqlClient.SqlDataAdapter();
     this.sqlSelectCommand1  = new System.Data.SqlClient.SqlCommand();
     this.sqlDASolicitudPre  = new System.Data.SqlClient.SqlDataAdapter();
     this.sqlCommand10       = new System.Data.SqlClient.SqlCommand();
     this.sqlDASolicitudCar  = new System.Data.SqlClient.SqlDataAdapter();
     this.sqlCommand6        = new System.Data.SqlClient.SqlCommand();
     this.sqlDASolicitudPre1 = new System.Data.SqlClient.SqlDataAdapter();
     this.sqlCommand1        = new System.Data.SqlClient.SqlCommand();
     this.sqlDASolicitudPre2 = new System.Data.SqlClient.SqlDataAdapter();
     this.sqlCommand2        = new System.Data.SqlClient.SqlCommand();
     this.dsInfSegui1        = new LancNeo.dsInfSegui();
     this.sqlDASolPre        = new System.Data.SqlClient.SqlDataAdapter();
     this.sqlCommand3        = new System.Data.SqlClient.SqlCommand();
     this.cryInfSegui1       = new LancNeo.CryInfSegui();
     this.panel2.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.dsInfSegui1)).BeginInit();
     this.SuspendLayout();
     //
     // sqlConn
     //
     this.sqlConn.ConnectionString = ((string)(configurationAppSettings.GetValue("sqlConn.ConnectionString", typeof(string))));
     this.sqlConn.FireInfoMessageEventOnUserErrors = false;
     //
     // crvInfPrecios
     //
     this.crvInfPrecios.ActiveViewIndex     = -1;
     this.crvInfPrecios.BorderStyle         = System.Windows.Forms.BorderStyle.FixedSingle;
     this.crvInfPrecios.Cursor              = System.Windows.Forms.Cursors.Default;
     this.crvInfPrecios.Dock                = System.Windows.Forms.DockStyle.Fill;
     this.crvInfPrecios.EnableRefresh       = false;
     this.crvInfPrecios.Location            = new System.Drawing.Point(0, 71);
     this.crvInfPrecios.Name                = "crvInfPrecios";
     this.crvInfPrecios.ShowCloseButton     = false;
     this.crvInfPrecios.ShowGroupTreeButton = false;
     this.crvInfPrecios.ShowLogo            = false;
     this.crvInfPrecios.Size                = new System.Drawing.Size(734, 287);
     this.crvInfPrecios.TabIndex            = 15;
     this.crvInfPrecios.ToolPanelView       = CrystalDecisions.Windows.Forms.ToolPanelViewType.None;
     this.crvInfPrecios.ToolPanelWidth      = 167;
     this.crvInfPrecios.Visible             = false;
     //
     // panel2
     //
     this.panel2.BackColor   = System.Drawing.SystemColors.Highlight;
     this.panel2.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
     this.panel2.Controls.Add(this.btnVistaPrevia);
     this.panel2.Controls.Add(this.dateTimePicker2);
     this.panel2.Controls.Add(this.dateTimePicker1);
     this.panel2.Controls.Add(this.label4);
     this.panel2.Dock     = System.Windows.Forms.DockStyle.Top;
     this.panel2.Location = new System.Drawing.Point(0, 0);
     this.panel2.Name     = "panel2";
     this.panel2.Size     = new System.Drawing.Size(734, 71);
     this.panel2.TabIndex = 14;
     //
     // btnVistaPrevia
     //
     this.btnVistaPrevia.BackColor = System.Drawing.Color.Transparent;
     this.btnVistaPrevia.Icon      = ((System.Drawing.Icon)(resources.GetObject("btnVistaPrevia.Icon")));
     this.btnVistaPrevia.Location  = new System.Drawing.Point(640, 1);
     this.btnVistaPrevia.Name      = "btnVistaPrevia";
     this.btnVistaPrevia.Size      = new System.Drawing.Size(64, 63);
     this.btnVistaPrevia.TabIndex  = 59;
     this.btnVistaPrevia.Click    += new System.EventHandler(this.btnVistaPrevia_Click);
     //
     // dateTimePicker2
     //
     this.dateTimePicker2.Format   = System.Windows.Forms.DateTimePickerFormat.Short;
     this.dateTimePicker2.Location = new System.Drawing.Point(406, 36);
     this.dateTimePicker2.Name     = "dateTimePicker2";
     this.dateTimePicker2.Size     = new System.Drawing.Size(80, 20);
     this.dateTimePicker2.TabIndex = 61;
     //
     // dateTimePicker1
     //
     this.dateTimePicker1.Format      = System.Windows.Forms.DateTimePickerFormat.Short;
     this.dateTimePicker1.Location    = new System.Drawing.Point(406, 10);
     this.dateTimePicker1.Name        = "dateTimePicker1";
     this.dateTimePicker1.Size        = new System.Drawing.Size(80, 20);
     this.dateTimePicker1.TabIndex    = 60;
     this.dateTimePicker1.Leave      += new System.EventHandler(this.dateTimePicker1_Leave);
     this.dateTimePicker1.Validating += new System.ComponentModel.CancelEventHandler(this.dateTimePicker1_Validating);
     this.dateTimePicker1.Validated  += new System.EventHandler(this.dateTimePicker1_Validated);
     //
     // label4
     //
     this.label4.Font      = new System.Drawing.Font("Microsoft Sans Serif", 14F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label4.ForeColor = System.Drawing.Color.White;
     this.label4.Location  = new System.Drawing.Point(10, 10);
     this.label4.Name      = "label4";
     this.label4.Size      = new System.Drawing.Size(364, 41);
     this.label4.TabIndex  = 54;
     this.label4.Text      = "Seguimiento presupuestos";
     //
     // sqlDASolicitud
     //
     this.sqlDASolicitud.SelectCommand = this.sqlSelectCommand1;
     this.sqlDASolicitud.TableMappings.AddRange(new System.Data.Common.DataTableMapping[] {
         new System.Data.Common.DataTableMapping("Table", "Solicitud", new System.Data.Common.DataColumnMapping[] {
             new System.Data.Common.DataColumnMapping("IdSolicitud", "IdSolicitud"),
             new System.Data.Common.DataColumnMapping("Año", "Año"),
             new System.Data.Common.DataColumnMapping("LocFor", "LocFor"),
             new System.Data.Common.DataColumnMapping("Fecha", "Fecha"),
             new System.Data.Common.DataColumnMapping("Direccion", "Direccion"),
             new System.Data.Common.DataColumnMapping("Colonia", "Colonia"),
             new System.Data.Common.DataColumnMapping("Constructora", "Constructora"),
             new System.Data.Common.DataColumnMapping("Atención", "Atención"),
             new System.Data.Common.DataColumnMapping("email", "email"),
             new System.Data.Common.DataColumnMapping("Encargado", "Encargado"),
             new System.Data.Common.DataColumnMapping("Oficina", "Oficina"),
             new System.Data.Common.DataColumnMapping("Telefono", "Telefono"),
             new System.Data.Common.DataColumnMapping("Celular", "Celular"),
             new System.Data.Common.DataColumnMapping("IdObra", "IdObra"),
             new System.Data.Common.DataColumnMapping("TipoObra", "TipoObra"),
             new System.Data.Common.DataColumnMapping("Cantidad", "Cantidad"),
             new System.Data.Common.DataColumnMapping("Unidad", "Unidad"),
             new System.Data.Common.DataColumnMapping("Presupuesto", "Presupuesto"),
             new System.Data.Common.DataColumnMapping("IvaPrecios", "IvaPrecios"),
             new System.Data.Common.DataColumnMapping("IvaPaquete", "IvaPaquete"),
             new System.Data.Common.DataColumnMapping("ConceptoPQT", "ConceptoPQT"),
             new System.Data.Common.DataColumnMapping("AnexoNorma", "AnexoNorma"),
             new System.Data.Common.DataColumnMapping("AnexoIntensidad", "AnexoIntensidad"),
             new System.Data.Common.DataColumnMapping("FecAprobado", "FecAprobado"),
             new System.Data.Common.DataColumnMapping("Instalaciones", "Instalaciones"),
             new System.Data.Common.DataColumnMapping("FormaPago", "FormaPago")
         })
     });
     //
     // sqlSelectCommand1
     //
     this.sqlSelectCommand1.CommandText = resources.GetString("sqlSelectCommand1.CommandText");
     this.sqlSelectCommand1.Connection  = this.sqlConn;
     this.sqlSelectCommand1.Parameters.AddRange(new System.Data.SqlClient.SqlParameter[] {
         new System.Data.SqlClient.SqlParameter("@Fechai", System.Data.SqlDbType.SmallDateTime, 4, "Fecha"),
         new System.Data.SqlClient.SqlParameter("@Fechaf", System.Data.SqlDbType.SmallDateTime, 4, "Fecha")
     });
     //
     // sqlDASolicitudPre
     //
     this.sqlDASolicitudPre.SelectCommand = this.sqlCommand10;
     this.sqlDASolicitudPre.TableMappings.AddRange(new System.Data.Common.DataTableMapping[] {
         new System.Data.Common.DataTableMapping("Table", "SolicitudPre", new System.Data.Common.DataColumnMapping[] {
             new System.Data.Common.DataColumnMapping("IdSolicitud", "IdSolicitud"),
             new System.Data.Common.DataColumnMapping("Año", "Año"),
             new System.Data.Common.DataColumnMapping("Renglon", "Renglon"),
             new System.Data.Common.DataColumnMapping("Version", "Version"),
             new System.Data.Common.DataColumnMapping("IdPrecio", "IdPrecio"),
             new System.Data.Common.DataColumnMapping("Cantidad", "Cantidad"),
             new System.Data.Common.DataColumnMapping("Precio", "Precio"),
             new System.Data.Common.DataColumnMapping("Unidad", "Unidad"),
             new System.Data.Common.DataColumnMapping("Concepto", "Concepto")
         })
     });
     //
     // sqlCommand10
     //
     this.sqlCommand10.CommandText = resources.GetString("sqlCommand10.CommandText");
     this.sqlCommand10.Connection  = this.sqlConn;
     this.sqlCommand10.Parameters.AddRange(new System.Data.SqlClient.SqlParameter[] {
         new System.Data.SqlClient.SqlParameter("@Fechai", System.Data.SqlDbType.SmallDateTime, 4, "Fecha"),
         new System.Data.SqlClient.SqlParameter("@Fechaf", System.Data.SqlDbType.SmallDateTime, 4, "Fecha")
     });
     //
     // sqlDASolicitudCar
     //
     this.sqlDASolicitudCar.SelectCommand = this.sqlCommand6;
     this.sqlDASolicitudCar.TableMappings.AddRange(new System.Data.Common.DataTableMapping[] {
         new System.Data.Common.DataTableMapping("Table", "SolicitudCar", new System.Data.Common.DataColumnMapping[] {
             new System.Data.Common.DataColumnMapping("IdSolicitud", "IdSolicitud"),
             new System.Data.Common.DataColumnMapping("Año", "Año"),
             new System.Data.Common.DataColumnMapping("Renglon", "Renglon"),
             new System.Data.Common.DataColumnMapping("Caracteristica", "Caracteristica"),
             new System.Data.Common.DataColumnMapping("Unidad", "Unidad"),
             new System.Data.Common.DataColumnMapping("Cantidad", "Cantidad"),
             new System.Data.Common.DataColumnMapping("Ajustada", "Ajustada")
         })
     });
     //
     // sqlCommand6
     //
     this.sqlCommand6.CommandText = resources.GetString("sqlCommand6.CommandText");
     this.sqlCommand6.Connection  = this.sqlConn;
     this.sqlCommand6.Parameters.AddRange(new System.Data.SqlClient.SqlParameter[] {
         new System.Data.SqlClient.SqlParameter("@Fechai", System.Data.SqlDbType.SmallDateTime, 4, System.Data.ParameterDirection.Input, false, ((byte)(0)), ((byte)(0)), "Fecha", System.Data.DataRowVersion.Current, "31/12/2019"),
         new System.Data.SqlClient.SqlParameter("@Fechaf", System.Data.SqlDbType.SmallDateTime, 4, System.Data.ParameterDirection.Input, false, ((byte)(0)), ((byte)(0)), "Fecha", System.Data.DataRowVersion.Current, "19/01/2020")
     });
     //
     // sqlDASolicitudPre1
     //
     this.sqlDASolicitudPre1.SelectCommand = this.sqlCommand1;
     this.sqlDASolicitudPre1.TableMappings.AddRange(new System.Data.Common.DataTableMapping[] {
         new System.Data.Common.DataTableMapping("Table", "SolicitudPre", new System.Data.Common.DataColumnMapping[] {
             new System.Data.Common.DataColumnMapping("IdSolicitud", "IdSolicitud"),
             new System.Data.Common.DataColumnMapping("Año", "Año"),
             new System.Data.Common.DataColumnMapping("Renglon", "Renglon"),
             new System.Data.Common.DataColumnMapping("Version", "Version"),
             new System.Data.Common.DataColumnMapping("IdPrecio", "IdPrecio"),
             new System.Data.Common.DataColumnMapping("Cantidad", "Cantidad"),
             new System.Data.Common.DataColumnMapping("Precio", "Precio"),
             new System.Data.Common.DataColumnMapping("Unidad", "Unidad"),
             new System.Data.Common.DataColumnMapping("Concepto", "Concepto")
         })
     });
     //
     // sqlCommand1
     //
     this.sqlCommand1.CommandText = resources.GetString("sqlCommand1.CommandText");
     this.sqlCommand1.Connection  = this.sqlConn;
     this.sqlCommand1.Parameters.AddRange(new System.Data.SqlClient.SqlParameter[] {
         new System.Data.SqlClient.SqlParameter("@Fechai", System.Data.SqlDbType.SmallDateTime, 4, "Fecha"),
         new System.Data.SqlClient.SqlParameter("@Fechaf", System.Data.SqlDbType.SmallDateTime, 4, "Fecha")
     });
     //
     // sqlDASolicitudPre2
     //
     this.sqlDASolicitudPre2.SelectCommand = this.sqlCommand2;
     this.sqlDASolicitudPre2.TableMappings.AddRange(new System.Data.Common.DataTableMapping[] {
         new System.Data.Common.DataTableMapping("Table", "SolicitudPre", new System.Data.Common.DataColumnMapping[] {
             new System.Data.Common.DataColumnMapping("IdSolicitud", "IdSolicitud"),
             new System.Data.Common.DataColumnMapping("Año", "Año"),
             new System.Data.Common.DataColumnMapping("Renglon", "Renglon"),
             new System.Data.Common.DataColumnMapping("Version", "Version"),
             new System.Data.Common.DataColumnMapping("IdPrecio", "IdPrecio"),
             new System.Data.Common.DataColumnMapping("Cantidad", "Cantidad"),
             new System.Data.Common.DataColumnMapping("Precio", "Precio"),
             new System.Data.Common.DataColumnMapping("Unidad", "Unidad"),
             new System.Data.Common.DataColumnMapping("Concepto", "Concepto")
         })
     });
     //
     // sqlCommand2
     //
     this.sqlCommand2.CommandText = resources.GetString("sqlCommand2.CommandText");
     this.sqlCommand2.Connection  = this.sqlConn;
     this.sqlCommand2.Parameters.AddRange(new System.Data.SqlClient.SqlParameter[] {
         new System.Data.SqlClient.SqlParameter("@Fechai", System.Data.SqlDbType.SmallDateTime, 4, "Fecha"),
         new System.Data.SqlClient.SqlParameter("@Fechaf", System.Data.SqlDbType.SmallDateTime, 4, "Fecha")
     });
     //
     // dsInfSegui1
     //
     this.dsInfSegui1.DataSetName             = "dsInfSegui";
     this.dsInfSegui1.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema;
     //
     // sqlDASolPre
     //
     this.sqlDASolPre.SelectCommand = this.sqlCommand3;
     this.sqlDASolPre.TableMappings.AddRange(new System.Data.Common.DataTableMapping[] {
         new System.Data.Common.DataTableMapping("Table", "SolicitudPre", new System.Data.Common.DataColumnMapping[] {
             new System.Data.Common.DataColumnMapping("IdSolicitud", "IdSolicitud"),
             new System.Data.Common.DataColumnMapping("Año", "Año"),
             new System.Data.Common.DataColumnMapping("Renglon", "Renglon"),
             new System.Data.Common.DataColumnMapping("Version", "Version"),
             new System.Data.Common.DataColumnMapping("IdPrecio", "IdPrecio"),
             new System.Data.Common.DataColumnMapping("Cantidad", "Cantidad"),
             new System.Data.Common.DataColumnMapping("Precio", "Precio"),
             new System.Data.Common.DataColumnMapping("Unidad", "Unidad"),
             new System.Data.Common.DataColumnMapping("Concepto", "Concepto")
         })
     });
     //
     // sqlCommand3
     //
     this.sqlCommand3.CommandText = resources.GetString("sqlCommand3.CommandText");
     this.sqlCommand3.Connection  = this.sqlConn;
     this.sqlCommand3.Parameters.AddRange(new System.Data.SqlClient.SqlParameter[] {
         new System.Data.SqlClient.SqlParameter("@IdSolicitud", System.Data.SqlDbType.SmallInt, 2, "IdSolicitud"),
         new System.Data.SqlClient.SqlParameter("@Año", System.Data.SqlDbType.SmallInt, 2, "Año")
     });
     //
     // InfSegui
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
     this.ClientSize          = new System.Drawing.Size(734, 358);
     this.Controls.Add(this.crvInfPrecios);
     this.Controls.Add(this.panel2);
     this.Name  = "InfSegui";
     this.Text  = "InfSegui";
     this.Load += new System.EventHandler(this.InfSegui_Load);
     this.panel2.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.dsInfSegui1)).EndInit();
     this.ResumeLayout(false);
 }
示例#44
0
 /// <summary>
 /// Método necesario para admitir el Diseñador. No se puede modificar
 /// el contenido del método con el editor de código.
 /// </summary>
 private void InitializeComponent()
 {
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Manometro));
     System.Configuration.AppSettingsReader         configurationAppSettings = new System.Configuration.AppSettingsReader();
     this.panel2            = new System.Windows.Forms.Panel();
     this.buscaBtn1         = new Soluciones2000.Tools.WinLib.BuscaBtn();
     this.dsManometro1      = new LancNeo.dsManometro();
     this.txtIdManometro    = new System.Windows.Forms.TextBox();
     this.lblIdManometro    = new System.Windows.Forms.Label();
     this.lblManometro      = new System.Windows.Forms.Label();
     this.txtManometro      = new System.Windows.Forms.TextBox();
     this.sqlDAManometro    = new System.Data.SqlClient.SqlDataAdapter();
     this.sqlDeleteCommand1 = new System.Data.SqlClient.SqlCommand();
     this.sqlConn           = new System.Data.SqlClient.SqlConnection();
     this.sqlInsertCommand1 = new System.Data.SqlClient.SqlCommand();
     this.sqlSelectCommand1 = new System.Data.SqlClient.SqlCommand();
     this.sqlUpdateCommand1 = new System.Data.SqlClient.SqlCommand();
     this.panelToolBar.SuspendLayout();
     this.panel2.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.dsManometro1)).BeginInit();
     this.SuspendLayout();
     //
     // statusBar1
     //
     this.statusBar1.ShowPanels = true;
     this.statusBar1.Size       = new System.Drawing.Size(576, 22);
     //
     // panelToolBar
     //
     this.panelToolBar.Size = new System.Drawing.Size(576, 64);
     //
     // panel2
     //
     this.panel2.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
     this.panel2.Controls.Add(this.buscaBtn1);
     this.panel2.Controls.Add(this.txtIdManometro);
     this.panel2.Controls.Add(this.lblIdManometro);
     this.panel2.Controls.Add(this.lblManometro);
     this.panel2.Controls.Add(this.txtManometro);
     this.panel2.Location = new System.Drawing.Point(116, 115);
     this.panel2.Name     = "panel2";
     this.panel2.Size     = new System.Drawing.Size(344, 192);
     this.panel2.TabIndex = 4;
     //
     // buscaBtn1
     //
     this.buscaBtn1.AnchoDlgBusq = 0;
     this.buscaBtn1.BackColor    = System.Drawing.Color.Transparent;
     this.buscaBtn1.Datos        = this.dsManometro1.Manometro;
     this.buscaBtn1.Icon         = ((System.Drawing.Icon)(resources.GetObject("buscaBtn1.Icon")));
     this.buscaBtn1.Location     = new System.Drawing.Point(232, 32);
     this.buscaBtn1.Name         = "buscaBtn1";
     this.buscaBtn1.Size         = new System.Drawing.Size(64, 64);
     this.buscaBtn1.TabIndex     = 2;
     this.toolTip1.SetToolTip(this.buscaBtn1, "Buscar");
     //
     // dsManometro1
     //
     this.dsManometro1.DataSetName             = "dsManometro";
     this.dsManometro1.Locale                  = new System.Globalization.CultureInfo("es-MX");
     this.dsManometro1.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema;
     //
     // txtIdManometro
     //
     this.txtIdManometro.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.dsManometro1, "Manometro.IdManometro", true));
     this.txtIdManometro.Location = new System.Drawing.Point(130, 64);
     this.txtIdManometro.Name     = "txtIdManometro";
     this.txtIdManometro.Size     = new System.Drawing.Size(100, 20);
     this.txtIdManometro.TabIndex = 1;
     this.txtIdManometro.Text     = "textBox1";
     //
     // lblIdManometro
     //
     this.lblIdManometro.Location  = new System.Drawing.Point(26, 60);
     this.lblIdManometro.Name      = "lblIdManometro";
     this.lblIdManometro.Size      = new System.Drawing.Size(100, 23);
     this.lblIdManometro.TabIndex  = 0;
     this.lblIdManometro.Text      = "Id Manómetro:";
     this.lblIdManometro.TextAlign = System.Drawing.ContentAlignment.BottomRight;
     //
     // lblManometro
     //
     this.lblManometro.Location  = new System.Drawing.Point(26, 100);
     this.lblManometro.Name      = "lblManometro";
     this.lblManometro.Size      = new System.Drawing.Size(100, 23);
     this.lblManometro.TabIndex  = 0;
     this.lblManometro.Text      = "Manómetro:";
     this.lblManometro.TextAlign = System.Drawing.ContentAlignment.BottomRight;
     //
     // txtManometro
     //
     this.txtManometro.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.dsManometro1, "Manometro.Manometro", true));
     this.txtManometro.Location  = new System.Drawing.Point(130, 104);
     this.txtManometro.MaxLength = 50;
     this.txtManometro.Name      = "txtManometro";
     this.txtManometro.Size      = new System.Drawing.Size(150, 20);
     this.txtManometro.TabIndex  = 1;
     this.txtManometro.Text      = "textBox1";
     //
     // sqlDAManometro
     //
     this.sqlDAManometro.DeleteCommand = this.sqlDeleteCommand1;
     this.sqlDAManometro.InsertCommand = this.sqlInsertCommand1;
     this.sqlDAManometro.SelectCommand = this.sqlSelectCommand1;
     this.sqlDAManometro.TableMappings.AddRange(new System.Data.Common.DataTableMapping[] {
         new System.Data.Common.DataTableMapping("Table", "Manometro", new System.Data.Common.DataColumnMapping[] {
             new System.Data.Common.DataColumnMapping("IdManometro", "IdManometro"),
             new System.Data.Common.DataColumnMapping("Manometro", "Manometro")
         })
     });
     this.sqlDAManometro.UpdateCommand = this.sqlUpdateCommand1;
     //
     // sqlDeleteCommand1
     //
     this.sqlDeleteCommand1.CommandText = "DELETE FROM Manometro WHERE (IdManometro = @Original_IdManometro) AND (Manometro " +
                                          "= @Original_Manometro OR @Original_Manometro IS NULL AND Manometro IS NULL)";
     this.sqlDeleteCommand1.Connection = this.sqlConn;
     this.sqlDeleteCommand1.Parameters.AddRange(new System.Data.SqlClient.SqlParameter[] {
         new System.Data.SqlClient.SqlParameter("@Original_IdManometro", System.Data.SqlDbType.SmallInt, 2, System.Data.ParameterDirection.Input, false, ((byte)(0)), ((byte)(0)), "IdManometro", System.Data.DataRowVersion.Original, null),
         new System.Data.SqlClient.SqlParameter("@Original_Manometro", System.Data.SqlDbType.NVarChar, 50, System.Data.ParameterDirection.Input, false, ((byte)(0)), ((byte)(0)), "Manometro", System.Data.DataRowVersion.Original, null)
     });
     //
     // sqlConn
     //
     this.sqlConn.ConnectionString = ((string)(configurationAppSettings.GetValue("sqlConn.ConnectionString", typeof(string))));
     this.sqlConn.FireInfoMessageEventOnUserErrors = false;
     //
     // sqlInsertCommand1
     //
     this.sqlInsertCommand1.CommandText = "INSERT INTO Manometro(IdManometro, Manometro) VALUES (@IdManometro, @Manometro); " +
                                          "SELECT IdManometro, Manometro FROM Manometro WHERE (IdManometro = @IdManometro) " +
                                          "ORDER BY IdManometro";
     this.sqlInsertCommand1.Connection = this.sqlConn;
     this.sqlInsertCommand1.Parameters.AddRange(new System.Data.SqlClient.SqlParameter[] {
         new System.Data.SqlClient.SqlParameter("@IdManometro", System.Data.SqlDbType.SmallInt, 2, "IdManometro"),
         new System.Data.SqlClient.SqlParameter("@Manometro", System.Data.SqlDbType.NVarChar, 50, "Manometro")
     });
     //
     // sqlSelectCommand1
     //
     this.sqlSelectCommand1.CommandText = "SELECT IdManometro, Manometro FROM Manometro ORDER BY IdManometro";
     this.sqlSelectCommand1.Connection  = this.sqlConn;
     //
     // sqlUpdateCommand1
     //
     this.sqlUpdateCommand1.CommandText = resources.GetString("sqlUpdateCommand1.CommandText");
     this.sqlUpdateCommand1.Connection  = this.sqlConn;
     this.sqlUpdateCommand1.Parameters.AddRange(new System.Data.SqlClient.SqlParameter[] {
         new System.Data.SqlClient.SqlParameter("@IdManometro", System.Data.SqlDbType.SmallInt, 2, "IdManometro"),
         new System.Data.SqlClient.SqlParameter("@Manometro", System.Data.SqlDbType.NVarChar, 50, "Manometro"),
         new System.Data.SqlClient.SqlParameter("@Original_IdManometro", System.Data.SqlDbType.SmallInt, 2, System.Data.ParameterDirection.Input, false, ((byte)(0)), ((byte)(0)), "IdManometro", System.Data.DataRowVersion.Original, null),
         new System.Data.SqlClient.SqlParameter("@Original_Manometro", System.Data.SqlDbType.NVarChar, 50, System.Data.ParameterDirection.Input, false, ((byte)(0)), ((byte)(0)), "Manometro", System.Data.DataRowVersion.Original, null)
     });
     //
     // Manometro
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.ClientSize        = new System.Drawing.Size(576, 423);
     this.Controls.Add(this.panel2);
     this.DAGeneral   = this.sqlDAManometro;
     this.dsGeneral   = this.dsManometro1;
     this.Name        = "Manometro";
     this.NombreTabla = "Manometro";
     this.Text        = "Manometro";
     this.Load       += new System.EventHandler(this.Manometro_Load);
     this.Controls.SetChildIndex(this.panel2, 0);
     this.Controls.SetChildIndex(this.statusBar1, 0);
     this.Controls.SetChildIndex(this.panelToolBar, 0);
     this.panelToolBar.ResumeLayout(false);
     this.panel2.ResumeLayout(false);
     this.panel2.PerformLayout();
     ((System.ComponentModel.ISupportInitialize)(this.dsManometro1)).EndInit();
     this.ResumeLayout(false);
 }
示例#45
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     System.Configuration.AppSettingsReader         configurationAppSettings = new System.Configuration.AppSettingsReader();
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(RadioRes));
     System.Windows.Forms.DataGridViewCellStyle     dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
     System.Windows.Forms.DataGridViewCellStyle     dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
     this.sqlConn           = new System.Data.SqlClient.SqlConnection();
     this.dsBusInf1         = new LancNeo.dsBusInf();
     this.sqlDABusInforme   = new System.Data.SqlClient.SqlDataAdapter();
     this.sqlSelectCommand2 = new System.Data.SqlClient.SqlCommand();
     this.panel2            = new System.Windows.Forms.Panel();
     this.buscaBtn1         = new Soluciones2000.Tools.WinLib.BuscaBtn();
     this.txtObra           = new System.Windows.Forms.TextBox();
     this.txtFecha          = new System.Windows.Forms.TextBox();
     this.txtConsecutivo    = new System.Windows.Forms.TextBox();
     this.txtFolio          = new System.Windows.Forms.TextBox();
     this.label4            = new System.Windows.Forms.Label();
     this.label3            = new System.Windows.Forms.Label();
     this.label2            = new System.Windows.Forms.Label();
     this.label1            = new System.Windows.Forms.Label();
     this.dataGridView1     = new System.Windows.Forms.DataGridView();
     this.dsRadioRes1       = new LancNeo.dsRadioRes();
     this.sqlSelectCommand1 = new System.Data.SqlClient.SqlCommand();
     this.sqlInsertCommand1 = new System.Data.SqlClient.SqlCommand();
     this.sqlUpdateCommand1 = new System.Data.SqlClient.SqlCommand();
     this.sqlDeleteCommand1 = new System.Data.SqlClient.SqlCommand();
     this.sqlDARadioRes     = new System.Data.SqlClient.SqlDataAdapter();
     this.fOLIODataGridViewTextBoxColumn         = new System.Windows.Forms.DataGridViewTextBoxColumn();
     this.renglonDataGridViewTextBoxColumn       = new System.Windows.Forms.DataGridViewTextBoxColumn();
     this.idRadioDataGridViewTextBoxColumn       = new System.Windows.Forms.DataGridViewTextBoxColumn();
     this.noPeliculaDataGridViewTextBoxColumn    = new System.Windows.Forms.DataGridViewTextBoxColumn();
     this.defectosDataGridViewTextBoxColumn      = new System.Windows.Forms.DataGridViewTextBoxColumn();
     this.evaluacionDataGridViewCheckBoxColumn   = new System.Windows.Forms.DataGridViewCheckBoxColumn();
     this.observacionesDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
     this.panelToolBar.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.dsBusInf1)).BeginInit();
     this.panel2.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.dsRadioRes1)).BeginInit();
     this.SuspendLayout();
     //
     // statusBar1
     //
     this.statusBar1.Location   = new System.Drawing.Point(0, 500);
     this.statusBar1.ShowPanels = true;
     this.statusBar1.Size       = new System.Drawing.Size(792, 22);
     //
     // panelToolBar
     //
     this.panelToolBar.Size = new System.Drawing.Size(792, 64);
     //
     // sqlConn
     //
     this.sqlConn.ConnectionString = ((string)(configurationAppSettings.GetValue("sqlConn.ConnectionString", typeof(string))));
     this.sqlConn.FireInfoMessageEventOnUserErrors = false;
     //
     // dsBusInf1
     //
     this.dsBusInf1.DataSetName             = "dsBusInf";
     this.dsBusInf1.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema;
     //
     // sqlDABusInforme
     //
     this.sqlDABusInforme.SelectCommand = this.sqlSelectCommand2;
     this.sqlDABusInforme.TableMappings.AddRange(new System.Data.Common.DataTableMapping[] {
         new System.Data.Common.DataTableMapping("Table", "RadioMdor", new System.Data.Common.DataColumnMapping[] {
             new System.Data.Common.DataColumnMapping("FOLIO", "FOLIO"),
             new System.Data.Common.DataColumnMapping("IdObra", "IdObra"),
             new System.Data.Common.DataColumnMapping("ConsObra", "ConsObra"),
             new System.Data.Common.DataColumnMapping("Fmuestreo", "Fmuestreo")
         })
     });
     //
     // sqlSelectCommand2
     //
     this.sqlSelectCommand2.CommandText = "SELECT     FOLIO, IdObra, ConsObra, Fmuestreo\r\nFROM         RadioMdor\r\nORDER BY F" +
                                          "OLIO, IdObra";
     this.sqlSelectCommand2.Connection = this.sqlConn;
     //
     // panel2
     //
     this.panel2.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
     this.panel2.Controls.Add(this.buscaBtn1);
     this.panel2.Controls.Add(this.txtObra);
     this.panel2.Controls.Add(this.txtFecha);
     this.panel2.Controls.Add(this.txtConsecutivo);
     this.panel2.Controls.Add(this.txtFolio);
     this.panel2.Controls.Add(this.label4);
     this.panel2.Controls.Add(this.label3);
     this.panel2.Controls.Add(this.label2);
     this.panel2.Controls.Add(this.label1);
     this.panel2.Location = new System.Drawing.Point(8, 94);
     this.panel2.Name     = "panel2";
     this.panel2.Size     = new System.Drawing.Size(772, 81);
     this.panel2.TabIndex = 9;
     //
     // buscaBtn1
     //
     this.buscaBtn1.AnchoColTit  = true;
     this.buscaBtn1.AnchoDlgBusq = 675;
     this.buscaBtn1.BackColor    = System.Drawing.Color.Transparent;
     this.buscaBtn1.Datos        = this.dsBusInf1.InfMdor;
     this.buscaBtn1.Icon         = ((System.Drawing.Icon)(resources.GetObject("buscaBtn1.Icon")));
     this.buscaBtn1.Location     = new System.Drawing.Point(223, 1);
     this.buscaBtn1.Name         = "buscaBtn1";
     this.buscaBtn1.Size         = new System.Drawing.Size(64, 64);
     this.buscaBtn1.TabIndex     = 20;
     this.buscaBtn1.Click       += new System.EventHandler(this.buscaBtn1_Click);
     //
     // txtObra
     //
     this.txtObra.Location  = new System.Drawing.Point(147, 43);
     this.txtObra.MaxLength = 4;
     this.txtObra.Name      = "txtObra";
     this.txtObra.ReadOnly  = true;
     this.txtObra.Size      = new System.Drawing.Size(66, 20);
     this.txtObra.TabIndex  = 22;
     //
     // txtFecha
     //
     this.txtFecha.Location  = new System.Drawing.Point(414, 43);
     this.txtFecha.MaxLength = 4;
     this.txtFecha.Name      = "txtFecha";
     this.txtFecha.ReadOnly  = true;
     this.txtFecha.Size      = new System.Drawing.Size(66, 20);
     this.txtFecha.TabIndex  = 21;
     //
     // txtConsecutivo
     //
     this.txtConsecutivo.Location  = new System.Drawing.Point(414, 17);
     this.txtConsecutivo.MaxLength = 4;
     this.txtConsecutivo.Name      = "txtConsecutivo";
     this.txtConsecutivo.ReadOnly  = true;
     this.txtConsecutivo.Size      = new System.Drawing.Size(66, 20);
     this.txtConsecutivo.TabIndex  = 12;
     //
     // txtFolio
     //
     this.txtFolio.Location     = new System.Drawing.Point(147, 17);
     this.txtFolio.MaxLength    = 10;
     this.txtFolio.Name         = "txtFolio";
     this.txtFolio.ReadOnly     = true;
     this.txtFolio.Size         = new System.Drawing.Size(64, 20);
     this.txtFolio.TabIndex     = 10;
     this.txtFolio.TextChanged += new System.EventHandler(this.txtFolio_TextChanged);
     //
     // label4
     //
     this.label4.AutoSize  = true;
     this.label4.Location  = new System.Drawing.Point(296, 43);
     this.label4.Name      = "label4";
     this.label4.Size      = new System.Drawing.Size(101, 13);
     this.label4.TabIndex  = 3;
     this.label4.Text      = "Fecha de muestreo:";
     this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // label3
     //
     this.label3.AutoSize  = true;
     this.label3.Location  = new System.Drawing.Point(331, 19);
     this.label3.Name      = "label3";
     this.label3.Size      = new System.Drawing.Size(69, 13);
     this.label3.TabIndex  = 2;
     this.label3.Text      = "Consecutivo:";
     this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // label2
     //
     this.label2.AutoSize  = true;
     this.label2.Location  = new System.Drawing.Point(113, 43);
     this.label2.Name      = "label2";
     this.label2.Size      = new System.Drawing.Size(33, 13);
     this.label2.TabIndex  = 1;
     this.label2.Text      = "Obra:";
     this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // label1
     //
     this.label1.AutoSize  = true;
     this.label1.Location  = new System.Drawing.Point(104, 19);
     this.label1.Name      = "label1";
     this.label1.Size      = new System.Drawing.Size(41, 13);
     this.label1.TabIndex  = 0;
     this.label1.Text      = "FOLIO:";
     this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // dataGridView1
     //
     dataGridViewCellStyle1.BackColor                   = System.Drawing.Color.White;
     dataGridViewCellStyle1.ForeColor                   = System.Drawing.Color.Black;
     dataGridViewCellStyle1.SelectionBackColor          = System.Drawing.Color.White;
     dataGridViewCellStyle1.SelectionForeColor          = System.Drawing.Color.DimGray;
     this.dataGridView1.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1;
     this.dataGridView1.AutoGenerateColumns             = false;
     this.dataGridView1.ColumnHeadersHeightSizeMode     = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
     this.dataGridView1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
         this.fOLIODataGridViewTextBoxColumn,
         this.renglonDataGridViewTextBoxColumn,
         this.idRadioDataGridViewTextBoxColumn,
         this.noPeliculaDataGridViewTextBoxColumn,
         this.defectosDataGridViewTextBoxColumn,
         this.evaluacionDataGridViewCheckBoxColumn,
         this.observacionesDataGridViewTextBoxColumn
     });
     this.dataGridView1.DataMember             = "RadioRes";
     this.dataGridView1.DataSource             = this.dsRadioRes1;
     this.dataGridView1.Location               = new System.Drawing.Point(8, 181);
     this.dataGridView1.Name                   = "dataGridView1";
     dataGridViewCellStyle2.BackColor          = System.Drawing.Color.White;
     dataGridViewCellStyle2.ForeColor          = System.Drawing.Color.Black;
     dataGridViewCellStyle2.SelectionBackColor = System.Drawing.Color.White;
     dataGridViewCellStyle2.SelectionForeColor = System.Drawing.Color.DimGray;
     this.dataGridView1.RowsDefaultCellStyle   = dataGridViewCellStyle2;
     this.dataGridView1.RowTemplate.DefaultCellStyle.BackColor          = System.Drawing.Color.White;
     this.dataGridView1.RowTemplate.DefaultCellStyle.ForeColor          = System.Drawing.Color.Black;
     this.dataGridView1.RowTemplate.DefaultCellStyle.SelectionBackColor = System.Drawing.Color.White;
     this.dataGridView1.RowTemplate.DefaultCellStyle.SelectionForeColor = System.Drawing.Color.DimGray;
     this.dataGridView1.Size          = new System.Drawing.Size(772, 313);
     this.dataGridView1.TabIndex      = 23;
     this.dataGridView1.UserAddedRow += new System.Windows.Forms.DataGridViewRowEventHandler(this.dataGridView1_UserAddedRow);
     //
     // dsRadioRes1
     //
     this.dsRadioRes1.DataSetName             = "dsRadioRes";
     this.dsRadioRes1.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema;
     //
     // sqlSelectCommand1
     //
     this.sqlSelectCommand1.CommandText = "SELECT     FOLIO, Renglon, IdRadio, NoPelicula, Defectos, Evaluacion, Observacion" +
                                          "es\r\nFROM         RadioRes\r\nWHERE     (FOLIO = @IdFolio)\r\nORDER BY FOLIO, Renglon" +
                                          "";
     this.sqlSelectCommand1.Connection = this.sqlConn;
     this.sqlSelectCommand1.Parameters.AddRange(new System.Data.SqlClient.SqlParameter[] {
         new System.Data.SqlClient.SqlParameter("@IdFolio", System.Data.SqlDbType.Char, 10, "FOLIO")
     });
     //
     // sqlInsertCommand1
     //
     this.sqlInsertCommand1.CommandText = resources.GetString("sqlInsertCommand1.CommandText");
     this.sqlInsertCommand1.Connection  = this.sqlConn;
     this.sqlInsertCommand1.Parameters.AddRange(new System.Data.SqlClient.SqlParameter[] {
         new System.Data.SqlClient.SqlParameter("@FOLIO", System.Data.SqlDbType.Char, 0, "FOLIO"),
         new System.Data.SqlClient.SqlParameter("@Renglon", System.Data.SqlDbType.SmallInt, 0, "Renglon"),
         new System.Data.SqlClient.SqlParameter("@IdRadio", System.Data.SqlDbType.NVarChar, 0, "IdRadio"),
         new System.Data.SqlClient.SqlParameter("@NoPelicula", System.Data.SqlDbType.NVarChar, 0, "NoPelicula"),
         new System.Data.SqlClient.SqlParameter("@Defectos", System.Data.SqlDbType.NVarChar, 0, "Defectos"),
         new System.Data.SqlClient.SqlParameter("@Evaluacion", System.Data.SqlDbType.Bit, 0, "Evaluacion"),
         new System.Data.SqlClient.SqlParameter("@Observaciones", System.Data.SqlDbType.NVarChar, 0, "Observaciones")
     });
     //
     // sqlUpdateCommand1
     //
     this.sqlUpdateCommand1.CommandText = resources.GetString("sqlUpdateCommand1.CommandText");
     this.sqlUpdateCommand1.Connection  = this.sqlConn;
     this.sqlUpdateCommand1.Parameters.AddRange(new System.Data.SqlClient.SqlParameter[] {
         new System.Data.SqlClient.SqlParameter("@FOLIO", System.Data.SqlDbType.Char, 0, "FOLIO"),
         new System.Data.SqlClient.SqlParameter("@Renglon", System.Data.SqlDbType.SmallInt, 0, "Renglon"),
         new System.Data.SqlClient.SqlParameter("@IdRadio", System.Data.SqlDbType.NVarChar, 0, "IdRadio"),
         new System.Data.SqlClient.SqlParameter("@NoPelicula", System.Data.SqlDbType.NVarChar, 0, "NoPelicula"),
         new System.Data.SqlClient.SqlParameter("@Defectos", System.Data.SqlDbType.NVarChar, 0, "Defectos"),
         new System.Data.SqlClient.SqlParameter("@Evaluacion", System.Data.SqlDbType.Bit, 0, "Evaluacion"),
         new System.Data.SqlClient.SqlParameter("@Observaciones", System.Data.SqlDbType.NVarChar, 0, "Observaciones"),
         new System.Data.SqlClient.SqlParameter("@Original_FOLIO", System.Data.SqlDbType.Char, 0, System.Data.ParameterDirection.Input, false, ((byte)(0)), ((byte)(0)), "FOLIO", System.Data.DataRowVersion.Original, null),
         new System.Data.SqlClient.SqlParameter("@Original_Renglon", System.Data.SqlDbType.SmallInt, 0, System.Data.ParameterDirection.Input, false, ((byte)(0)), ((byte)(0)), "Renglon", System.Data.DataRowVersion.Original, null),
         new System.Data.SqlClient.SqlParameter("@IsNull_IdRadio", System.Data.SqlDbType.Int, 0, System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "IdRadio", System.Data.DataRowVersion.Original, true, null, "", "", ""),
         new System.Data.SqlClient.SqlParameter("@Original_IdRadio", System.Data.SqlDbType.NVarChar, 0, System.Data.ParameterDirection.Input, false, ((byte)(0)), ((byte)(0)), "IdRadio", System.Data.DataRowVersion.Original, null),
         new System.Data.SqlClient.SqlParameter("@IsNull_NoPelicula", System.Data.SqlDbType.Int, 0, System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "NoPelicula", System.Data.DataRowVersion.Original, true, null, "", "", ""),
         new System.Data.SqlClient.SqlParameter("@Original_NoPelicula", System.Data.SqlDbType.NVarChar, 0, System.Data.ParameterDirection.Input, false, ((byte)(0)), ((byte)(0)), "NoPelicula", System.Data.DataRowVersion.Original, null),
         new System.Data.SqlClient.SqlParameter("@IsNull_Defectos", System.Data.SqlDbType.Int, 0, System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "Defectos", System.Data.DataRowVersion.Original, true, null, "", "", ""),
         new System.Data.SqlClient.SqlParameter("@Original_Defectos", System.Data.SqlDbType.NVarChar, 0, System.Data.ParameterDirection.Input, false, ((byte)(0)), ((byte)(0)), "Defectos", System.Data.DataRowVersion.Original, null),
         new System.Data.SqlClient.SqlParameter("@IsNull_Evaluacion", System.Data.SqlDbType.Int, 0, System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "Evaluacion", System.Data.DataRowVersion.Original, true, null, "", "", ""),
         new System.Data.SqlClient.SqlParameter("@Original_Evaluacion", System.Data.SqlDbType.Bit, 0, System.Data.ParameterDirection.Input, false, ((byte)(0)), ((byte)(0)), "Evaluacion", System.Data.DataRowVersion.Original, null),
         new System.Data.SqlClient.SqlParameter("@IsNull_Observaciones", System.Data.SqlDbType.Int, 0, System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "Observaciones", System.Data.DataRowVersion.Original, true, null, "", "", ""),
         new System.Data.SqlClient.SqlParameter("@Original_Observaciones", System.Data.SqlDbType.NVarChar, 0, System.Data.ParameterDirection.Input, false, ((byte)(0)), ((byte)(0)), "Observaciones", System.Data.DataRowVersion.Original, null)
     });
     //
     // sqlDeleteCommand1
     //
     this.sqlDeleteCommand1.CommandText = resources.GetString("sqlDeleteCommand1.CommandText");
     this.sqlDeleteCommand1.Connection  = this.sqlConn;
     this.sqlDeleteCommand1.Parameters.AddRange(new System.Data.SqlClient.SqlParameter[] {
         new System.Data.SqlClient.SqlParameter("@Original_FOLIO", System.Data.SqlDbType.Char, 0, System.Data.ParameterDirection.Input, false, ((byte)(0)), ((byte)(0)), "FOLIO", System.Data.DataRowVersion.Original, null),
         new System.Data.SqlClient.SqlParameter("@Original_Renglon", System.Data.SqlDbType.SmallInt, 0, System.Data.ParameterDirection.Input, false, ((byte)(0)), ((byte)(0)), "Renglon", System.Data.DataRowVersion.Original, null),
         new System.Data.SqlClient.SqlParameter("@IsNull_IdRadio", System.Data.SqlDbType.Int, 0, System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "IdRadio", System.Data.DataRowVersion.Original, true, null, "", "", ""),
         new System.Data.SqlClient.SqlParameter("@Original_IdRadio", System.Data.SqlDbType.NVarChar, 0, System.Data.ParameterDirection.Input, false, ((byte)(0)), ((byte)(0)), "IdRadio", System.Data.DataRowVersion.Original, null),
         new System.Data.SqlClient.SqlParameter("@IsNull_NoPelicula", System.Data.SqlDbType.Int, 0, System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "NoPelicula", System.Data.DataRowVersion.Original, true, null, "", "", ""),
         new System.Data.SqlClient.SqlParameter("@Original_NoPelicula", System.Data.SqlDbType.NVarChar, 0, System.Data.ParameterDirection.Input, false, ((byte)(0)), ((byte)(0)), "NoPelicula", System.Data.DataRowVersion.Original, null),
         new System.Data.SqlClient.SqlParameter("@IsNull_Defectos", System.Data.SqlDbType.Int, 0, System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "Defectos", System.Data.DataRowVersion.Original, true, null, "", "", ""),
         new System.Data.SqlClient.SqlParameter("@Original_Defectos", System.Data.SqlDbType.NVarChar, 0, System.Data.ParameterDirection.Input, false, ((byte)(0)), ((byte)(0)), "Defectos", System.Data.DataRowVersion.Original, null),
         new System.Data.SqlClient.SqlParameter("@IsNull_Evaluacion", System.Data.SqlDbType.Int, 0, System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "Evaluacion", System.Data.DataRowVersion.Original, true, null, "", "", ""),
         new System.Data.SqlClient.SqlParameter("@Original_Evaluacion", System.Data.SqlDbType.Bit, 0, System.Data.ParameterDirection.Input, false, ((byte)(0)), ((byte)(0)), "Evaluacion", System.Data.DataRowVersion.Original, null),
         new System.Data.SqlClient.SqlParameter("@IsNull_Observaciones", System.Data.SqlDbType.Int, 0, System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "Observaciones", System.Data.DataRowVersion.Original, true, null, "", "", ""),
         new System.Data.SqlClient.SqlParameter("@Original_Observaciones", System.Data.SqlDbType.NVarChar, 0, System.Data.ParameterDirection.Input, false, ((byte)(0)), ((byte)(0)), "Observaciones", System.Data.DataRowVersion.Original, null)
     });
     //
     // sqlDARadioRes
     //
     this.sqlDARadioRes.DeleteCommand = this.sqlDeleteCommand1;
     this.sqlDARadioRes.InsertCommand = this.sqlInsertCommand1;
     this.sqlDARadioRes.SelectCommand = this.sqlSelectCommand1;
     this.sqlDARadioRes.TableMappings.AddRange(new System.Data.Common.DataTableMapping[] {
         new System.Data.Common.DataTableMapping("Table", "RadioRes", new System.Data.Common.DataColumnMapping[] {
             new System.Data.Common.DataColumnMapping("FOLIO", "FOLIO"),
             new System.Data.Common.DataColumnMapping("Renglon", "Renglon"),
             new System.Data.Common.DataColumnMapping("IdRadio", "IdRadio"),
             new System.Data.Common.DataColumnMapping("NoPelicula", "NoPelicula"),
             new System.Data.Common.DataColumnMapping("Defectos", "Defectos"),
             new System.Data.Common.DataColumnMapping("Evaluacion", "Evaluacion"),
             new System.Data.Common.DataColumnMapping("Observaciones", "Observaciones")
         })
     });
     this.sqlDARadioRes.UpdateCommand = this.sqlUpdateCommand1;
     //
     // fOLIODataGridViewTextBoxColumn
     //
     this.fOLIODataGridViewTextBoxColumn.DataPropertyName = "FOLIO";
     this.fOLIODataGridViewTextBoxColumn.HeaderText       = "FOLIO";
     this.fOLIODataGridViewTextBoxColumn.Name             = "fOLIODataGridViewTextBoxColumn";
     this.fOLIODataGridViewTextBoxColumn.Visible          = false;
     this.fOLIODataGridViewTextBoxColumn.Width            = 5;
     //
     // renglonDataGridViewTextBoxColumn
     //
     this.renglonDataGridViewTextBoxColumn.DataPropertyName = "Renglon";
     this.renglonDataGridViewTextBoxColumn.HeaderText       = "Renglon";
     this.renglonDataGridViewTextBoxColumn.Name             = "renglonDataGridViewTextBoxColumn";
     //
     // idRadioDataGridViewTextBoxColumn
     //
     this.idRadioDataGridViewTextBoxColumn.DataPropertyName = "IdRadio";
     this.idRadioDataGridViewTextBoxColumn.HeaderText       = "IdRadio";
     this.idRadioDataGridViewTextBoxColumn.Name             = "idRadioDataGridViewTextBoxColumn";
     this.idRadioDataGridViewTextBoxColumn.Width            = 200;
     //
     // noPeliculaDataGridViewTextBoxColumn
     //
     this.noPeliculaDataGridViewTextBoxColumn.DataPropertyName = "NoPelicula";
     this.noPeliculaDataGridViewTextBoxColumn.HeaderText       = "NoPelicula";
     this.noPeliculaDataGridViewTextBoxColumn.Name             = "noPeliculaDataGridViewTextBoxColumn";
     //
     // defectosDataGridViewTextBoxColumn
     //
     this.defectosDataGridViewTextBoxColumn.DataPropertyName = "Defectos";
     this.defectosDataGridViewTextBoxColumn.HeaderText       = "Defectos";
     this.defectosDataGridViewTextBoxColumn.Name             = "defectosDataGridViewTextBoxColumn";
     //
     // evaluacionDataGridViewCheckBoxColumn
     //
     this.evaluacionDataGridViewCheckBoxColumn.DataPropertyName = "Evaluacion";
     this.evaluacionDataGridViewCheckBoxColumn.HeaderText       = "Evaluacion";
     this.evaluacionDataGridViewCheckBoxColumn.Name             = "evaluacionDataGridViewCheckBoxColumn";
     //
     // observacionesDataGridViewTextBoxColumn
     //
     this.observacionesDataGridViewTextBoxColumn.DataPropertyName = "Observaciones";
     this.observacionesDataGridViewTextBoxColumn.HeaderText       = "Observaciones";
     this.observacionesDataGridViewTextBoxColumn.Name             = "observacionesDataGridViewTextBoxColumn";
     //
     // RadioRes
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
     this.ClientSize          = new System.Drawing.Size(792, 522);
     this.Controls.Add(this.dataGridView1);
     this.Controls.Add(this.panel2);
     this.DAGeneral   = this.sqlDARadioRes;
     this.dsGeneral   = this.dsRadioRes1;
     this.Name        = "RadioRes";
     this.NombreTabla = "RadioRes";
     this.Text        = "RadioRes";
     this.Load       += new System.EventHandler(this.RadioRes_Load);
     this.Controls.SetChildIndex(this.statusBar1, 0);
     this.Controls.SetChildIndex(this.panelToolBar, 0);
     this.Controls.SetChildIndex(this.panel2, 0);
     this.Controls.SetChildIndex(this.dataGridView1, 0);
     this.panelToolBar.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.dsBusInf1)).EndInit();
     this.panel2.ResumeLayout(false);
     this.panel2.PerformLayout();
     ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.dsRadioRes1)).EndInit();
     this.ResumeLayout(false);
 }
示例#46
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     System.Configuration.AppSettingsReader configurationAppSettings = new System.Configuration.AppSettingsReader();
     this.adPlaces  = new System.Data.SqlClient.SqlDataAdapter();
     this.cmSelect  = new System.Data.SqlClient.SqlCommand();
     this.cnFriends = new System.Data.SqlClient.SqlConnection();
     this.cmUpdate  = new System.Data.SqlClient.SqlCommand();
     this.dsPlaces  = new FriendsReunion.PlaceData();
     ((System.ComponentModel.ISupportInitialize)(this.dsPlaces)).BeginInit();
     this.dlPlaces.CancelCommand        += new System.Web.UI.WebControls.DataListCommandEventHandler(this.dlPlaces_CancelCommand);
     this.dlPlaces.EditCommand          += new System.Web.UI.WebControls.DataListCommandEventHandler(this.dlPlaces_EditCommand);
     this.dlPlaces.UpdateCommand        += new System.Web.UI.WebControls.DataListCommandEventHandler(this.dlPlaces_UpdateCommand);
     this.dlPlaces.ItemDataBound        += new System.Web.UI.WebControls.DataListItemEventHandler(this.dlPlaces_ItemDataBound);
     this.dlPlaces.SelectedIndexChanged += new System.EventHandler(this.dlPlaces_SelectedIndexChanged);
     //
     // adPlaces
     //
     this.adPlaces.SelectCommand = this.cmSelect;
     this.adPlaces.TableMappings.AddRange(new System.Data.Common.DataTableMapping[] {
         new System.Data.Common.DataTableMapping("Table", "Place", new System.Data.Common.DataColumnMapping[] {
             new System.Data.Common.DataColumnMapping("PlaceID", "PlaceID"),
             new System.Data.Common.DataColumnMapping("TypeID", "TypeID"),
             new System.Data.Common.DataColumnMapping("Name", "Name"),
             new System.Data.Common.DataColumnMapping("Address", "Address"),
             new System.Data.Common.DataColumnMapping("Notes", "Notes"),
             new System.Data.Common.DataColumnMapping("AdministratorID", "AdministratorID")
         })
     });
     this.adPlaces.UpdateCommand = this.cmUpdate;
     //
     // cmSelect
     //
     this.cmSelect.CommandText = "SELECT Place.PlaceID, Place.TypeID, Place.Name, Place.Address, Place.Notes, Place" +
                                 ".AdministratorID, PlaceType.Name AS TypeName FROM Place INNER JOIN PlaceType ON " +
                                 "Place.TypeID = PlaceType.TypeID";
     this.cmSelect.Connection = this.cnFriends;
     //
     // cnFriends
     //
     this.cnFriends.ConnectionString = ((string)(configurationAppSettings.GetValue("cnFriends.ConnectionString", typeof(string))));
     //
     // cmUpdate
     //
     this.cmUpdate.CommandText = "UPDATE Place SET PlaceID = @PlaceID, TypeID = @TypeID, Name = @Name, Address = @A" +
                                 "ddress, Notes = @Notes, AdministratorID = @AdministratorID WHERE (PlaceID = @Ori" +
                                 "ginal_PlaceID)";
     this.cmUpdate.Connection = this.cnFriends;
     this.cmUpdate.Parameters.Add(new System.Data.SqlClient.SqlParameter("@PlaceID", System.Data.SqlDbType.VarChar, 36, "PlaceID"));
     this.cmUpdate.Parameters.Add(new System.Data.SqlClient.SqlParameter("@TypeID", System.Data.SqlDbType.VarChar, 36, "TypeID"));
     this.cmUpdate.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Name", System.Data.SqlDbType.VarChar, 30, "Name"));
     this.cmUpdate.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Address", System.Data.SqlDbType.VarChar, 300, "Address"));
     this.cmUpdate.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Notes", System.Data.SqlDbType.VarChar, 300, "Notes"));
     this.cmUpdate.Parameters.Add(new System.Data.SqlClient.SqlParameter("@AdministratorID", System.Data.SqlDbType.VarChar, 36, "AdministratorID"));
     this.cmUpdate.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_PlaceID", System.Data.SqlDbType.VarChar, 36, System.Data.ParameterDirection.Input, false, ((System.Byte)(0)), ((System.Byte)(0)), "PlaceID", System.Data.DataRowVersion.Original, null));
     //
     // dsPlaces
     //
     this.dsPlaces.DataSetName = "PlaceData";
     this.dsPlaces.Locale      = new System.Globalization.CultureInfo("en-US");
     this.Load += new System.EventHandler(this.Page_Load);
     ((System.ComponentModel.ISupportInitialize)(this.dsPlaces)).EndInit();
 }
示例#47
0
        private void PrintMIX()
        {
            try
            {
                var    ListItem  = new List <SSBC_Data.Extend.LabelTemplate>();
                string LabelName = "";

                if (_ScannerInfo.TrackNo.Substring(0, 2) == "MI")
                {
                    if (txtBarcodeFull.Text.Split('-')[1] == "MI")
                    {
                        LabelName = "Copy Mix (Trộn)";
                    }
                    else if (txtBarcodeFull.Text.Split('-')[1] == "RU")
                    {
                    }
                    else if (txtBarcodeFull.Text.Split('-')[1] == "DE")
                    {
                        LabelName = "Copy Defect (Phế)";
                    }
                    else if (txtBarcodeFull.Text.Split('-')[1] == "RE")
                    {
                        LabelName = "Copy Red (Chấm Đen)";
                    }
                }

                ListItem.Add(
                    new SSBC_Data.Extend.LabelTemplate
                {
                    //winlineCode = _ScannerInfo.WinlineCo,
                    ItemName     = _ScannerInfo.WinlineName,
                    ColorCode    = _ScannerInfo.ColorCode,
                    ColorName    = _ScannerInfo.ColorName,
                    MaterialCo   = _ScannerInfo.MaterialCo,
                    MaterialName = _ScannerInfo.MaterialCo,
                    MaterialType = _ScannerInfo.MaterialType,
                    ScaleWeight  = _ScannerInfo.ScaleWeight,
                    ScaleDate    = _ScannerInfo.ScaleDate,
                    LabelName    = LabelName,
                    Barcode      = _ScannerInfo.TrackNo + "-" + txtBarcodeFull.Text.Substring(_ScannerInfo.TrackNo.Length + 1, 2),
                    BatchNo      = _ScannerInfo.BatchNo.ToString()
                });

                var MyReader = new System.Configuration.AppSettingsReader();

                string Printer = "";

                Printer = MyReader.GetValue("Printer_White", typeof(string)).ToString();

                Report.rptLabelBarcode rep = new Report.rptLabelBarcode();
                rep.CreateDocument(false);
                rep.Load(ListItem);
                rep.PrinterName = Printer;
                rep.Print();
                rep.Dispose();
                //rep.ShowPreview();
            }
            catch (Exception err)
            {
            }
        }
 public XMLDataSourceConnection()
 {
     this.settingsReader        = new System.Configuration.AppSettingsReader();
     this.configDirectory       = settingsReader.GetValue("XmlConfigDirectory", typeof(string)).ToString();
     this.passwordHashAlgorithm = settingsReader.GetValue("PasswordHashAlgorithm", typeof(string)).ToString();
 }
示例#49
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     System.Configuration.AppSettingsReader configurationAppSettings = new System.Configuration.AppSettingsReader();
     System.Resources.ResourceManager       resources = new System.Resources.ResourceManager(typeof(Form1));
     this.mainMenu1      = new System.Windows.Forms.MainMenu();
     this.File           = new System.Windows.Forms.MenuItem();
     this.FileNew        = new System.Windows.Forms.MenuItem();
     this.FileExport     = new System.Windows.Forms.MenuItem();
     this.ImportBRep     = new System.Windows.Forms.MenuItem();
     this.ImportIges     = new System.Windows.Forms.MenuItem();
     this.ImportStep     = new System.Windows.Forms.MenuItem();
     this.FileImport     = new System.Windows.Forms.MenuItem();
     this.ExportBRep     = new System.Windows.Forms.MenuItem();
     this.ExportIges     = new System.Windows.Forms.MenuItem();
     this.ExportStep     = new System.Windows.Forms.MenuItem();
     this.ExportStl      = new System.Windows.Forms.MenuItem();
     this.ExportVrml     = new System.Windows.Forms.MenuItem();
     this.menuItem3      = new System.Windows.Forms.MenuItem();
     this.ExportImage    = new System.Windows.Forms.MenuItem();
     this.FileClose      = new System.Windows.Forms.MenuItem();
     this.menuItem2      = new System.Windows.Forms.MenuItem();
     this.menuItem1      = new System.Windows.Forms.MenuItem();
     this.View           = new System.Windows.Forms.MenuItem();
     this.ViewToolbar    = new System.Windows.Forms.MenuItem();
     this.ViewStatusBar  = new System.Windows.Forms.MenuItem();
     this.Window         = new System.Windows.Forms.MenuItem();
     this.menuItem4      = new System.Windows.Forms.MenuItem();
     this.WindowCascade  = new System.Windows.Forms.MenuItem();
     this.WindowTile     = new System.Windows.Forms.MenuItem();
     this.Help           = new System.Windows.Forms.MenuItem();
     this.HelpAbout      = new System.Windows.Forms.MenuItem();
     this.toolBarTool    = new System.Windows.Forms.ToolBar();
     this.New            = new System.Windows.Forms.ToolBarButton();
     this.About          = new System.Windows.Forms.ToolBarButton();
     this.toolBarButton1 = new System.Windows.Forms.ToolBarButton();
     this.wireframe      = new System.Windows.Forms.ToolBarButton();
     this.shading        = new System.Windows.Forms.ToolBarButton();
     this.color          = new System.Windows.Forms.ToolBarButton();
     this.material       = new System.Windows.Forms.ToolBarButton();
     this.transparency   = new System.Windows.Forms.ToolBarButton();
     this.delete         = new System.Windows.Forms.ToolBarButton();
     this.imageList1     = new System.Windows.Forms.ImageList(this.components);
     this.myStatusBar    = new System.Windows.Forms.StatusBar();
     this.toolBarView    = new System.Windows.Forms.ToolBar();
     this.ZoomAll        = new System.Windows.Forms.ToolBarButton();
     this.ZoomWin        = new System.Windows.Forms.ToolBarButton();
     this.ZoomProg       = new System.Windows.Forms.ToolBarButton();
     this.Pan            = new System.Windows.Forms.ToolBarButton();
     this.PanGlo         = new System.Windows.Forms.ToolBarButton();
     this.Front          = new System.Windows.Forms.ToolBarButton();
     this.Back           = new System.Windows.Forms.ToolBarButton();
     this.TOP            = new System.Windows.Forms.ToolBarButton();
     this.BOTTOM         = new System.Windows.Forms.ToolBarButton();
     this.LEFT           = new System.Windows.Forms.ToolBarButton();
     this.RIGHT          = new System.Windows.Forms.ToolBarButton();
     this.Axo            = new System.Windows.Forms.ToolBarButton();
     this.Rot            = new System.Windows.Forms.ToolBarButton();
     this.Reset          = new System.Windows.Forms.ToolBarButton();
     this.HlrOn          = new System.Windows.Forms.ToolBarButton();
     this.HlrOff         = new System.Windows.Forms.ToolBarButton();
     this.SuspendLayout();
     //
     // mainMenu1
     //
     this.mainMenu1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
         this.File,
         this.View,
         this.Window,
         this.Help
     });
     //
     // File
     //
     this.File.Index = 0;
     this.File.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
         this.FileNew,
         this.FileExport,
         this.FileImport,
         this.FileClose,
         this.menuItem2,
         this.menuItem1
     });
     this.File.Text   = "&File";
     this.File.Popup += new System.EventHandler(this.File_Popup);
     //
     // FileNew
     //
     this.FileNew.Index  = 0;
     this.FileNew.Text   = "&New";
     this.FileNew.Click += new System.EventHandler(this.menuItem2_Click);
     //
     // FileExport
     //
     this.FileExport.Index = 1;
     this.FileExport.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
         this.ImportBRep,
         this.ImportIges,
         this.ImportStep
     });
     this.FileExport.Text    = "&Import";
     this.FileExport.Visible = false;
     //
     // ImportBRep
     //
     this.ImportBRep.Index  = 0;
     this.ImportBRep.Text   = "&BRep ...";
     this.ImportBRep.Click += new System.EventHandler(this.ImportBRep_Click);
     //
     // ImportIges
     //
     this.ImportIges.Index  = 1;
     this.ImportIges.Text   = "&Iges ...";
     this.ImportIges.Click += new System.EventHandler(this.ImportIges_Click);
     //
     // ImportStep
     //
     this.ImportStep.Index  = 2;
     this.ImportStep.Text   = "&Step ...";
     this.ImportStep.Click += new System.EventHandler(this.ImportStep_Click);
     //
     // FileImport
     //
     this.FileImport.Index = 2;
     this.FileImport.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
         this.ExportBRep,
         this.ExportIges,
         this.ExportStep,
         this.ExportStl,
         this.ExportVrml,
         this.menuItem3,
         this.ExportImage
     });
     this.FileImport.Text    = "&Export";
     this.FileImport.Visible = false;
     this.FileImport.Popup  += new System.EventHandler(this.FileImport_Popup);
     //
     // ExportBRep
     //
     this.ExportBRep.Enabled = false;
     this.ExportBRep.Index   = 0;
     this.ExportBRep.Text    = "&BRep ...";
     this.ExportBRep.Click  += new System.EventHandler(this.ExportBRep_Click);
     //
     // ExportIges
     //
     this.ExportIges.Enabled = false;
     this.ExportIges.Index   = 1;
     this.ExportIges.Text    = "&Iges ...";
     this.ExportIges.Click  += new System.EventHandler(this.ExportIges_Click);
     //
     // ExportStep
     //
     this.ExportStep.Enabled = false;
     this.ExportStep.Index   = 2;
     this.ExportStep.Text    = "&Step ...";
     this.ExportStep.Click  += new System.EventHandler(this.ExportStep_Click);
     //
     // ExportStl
     //
     this.ExportStl.Enabled = false;
     this.ExportStl.Index   = 3;
     this.ExportStl.Text    = "&Stl ...";
     this.ExportStl.Click  += new System.EventHandler(this.ExportStl_Click);
     //
     // ExportVrml
     //
     this.ExportVrml.Enabled = false;
     this.ExportVrml.Index   = 4;
     this.ExportVrml.Text    = "&Vrml ...";
     this.ExportVrml.Click  += new System.EventHandler(this.ExportVrml_Click);
     //
     // menuItem3
     //
     this.menuItem3.Index = 5;
     this.menuItem3.Text  = "-";
     //
     // ExportImage
     //
     this.ExportImage.Index  = 6;
     this.ExportImage.Text   = "Image ...";
     this.ExportImage.Click += new System.EventHandler(this.ExportImage_Click);
     //
     // FileClose
     //
     this.FileClose.Enabled = false;
     this.FileClose.Index   = 3;
     this.FileClose.Text    = "&Close";
     this.FileClose.Click  += new System.EventHandler(this.menuItem3_Click);
     //
     // menuItem2
     //
     this.menuItem2.Index = 4;
     this.menuItem2.Text  = "-";
     //
     // menuItem1
     //
     this.menuItem1.Index  = 5;
     this.menuItem1.Text   = "&Quit";
     this.menuItem1.Click += new System.EventHandler(this.menuItem1_Click);
     //
     // View
     //
     this.View.Index = 1;
     this.View.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
         this.ViewToolbar,
         this.ViewStatusBar
     });
     this.View.Text = "&View";
     //
     // ViewToolbar
     //
     this.ViewToolbar.Checked = true;
     this.ViewToolbar.Index   = 0;
     this.ViewToolbar.Text    = "&Toolbar";
     this.ViewToolbar.Click  += new System.EventHandler(this.ViewToolbar_Click);
     //
     // ViewStatusBar
     //
     this.ViewStatusBar.Checked = true;
     this.ViewStatusBar.Index   = 1;
     this.ViewStatusBar.Text    = "&Statusbar";
     this.ViewStatusBar.Click  += new System.EventHandler(this.ViewStatusBar_Click);
     //
     // Window
     //
     this.Window.Index   = 2;
     this.Window.MdiList = true;
     this.Window.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
         this.menuItem4,
         this.WindowCascade,
         this.WindowTile
     });
     this.Window.Text    = "&Window";
     this.Window.Visible = false;
     //
     // menuItem4
     //
     this.menuItem4.Index  = 0;
     this.menuItem4.Text   = "&New 3d View";
     this.menuItem4.Click += new System.EventHandler(this.menuItem4_Click);
     //
     // WindowCascade
     //
     this.WindowCascade.Index  = 1;
     this.WindowCascade.Text   = "&Cascade";
     this.WindowCascade.Click += new System.EventHandler(this.WindowCascade_Click);
     //
     // WindowTile
     //
     this.WindowTile.Index  = 2;
     this.WindowTile.Text   = "&Tile";
     this.WindowTile.Click += new System.EventHandler(this.WindowTile_Click);
     //
     // Help
     //
     this.Help.Index = 3;
     this.Help.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
         this.HelpAbout
     });
     this.Help.Text = "&Help";
     //
     // HelpAbout
     //
     this.HelpAbout.Index    = 0;
     this.HelpAbout.Shortcut = System.Windows.Forms.Shortcut.F1;
     this.HelpAbout.Text     = "&About";
     this.HelpAbout.Click   += new System.EventHandler(this.HelpAbout_Click);
     //
     // toolBarTool
     //
     this.toolBarTool.AccessibleRole = System.Windows.Forms.AccessibleRole.ToolBar;
     this.toolBarTool.Buttons.AddRange(new System.Windows.Forms.ToolBarButton[] {
         this.New,
         this.About,
         this.toolBarButton1,
         this.wireframe,
         this.shading,
         this.color,
         this.material,
         this.transparency,
         this.delete
     });
     this.toolBarTool.DropDownArrows = true;
     this.toolBarTool.ImageList      = this.imageList1;
     this.toolBarTool.Location       = new System.Drawing.Point(0, 0);
     this.toolBarTool.Name           = "toolBarTool";
     this.toolBarTool.ShowToolTips   = true;
     this.toolBarTool.Size           = new System.Drawing.Size(560, 28);
     this.toolBarTool.TabIndex       = 1;
     this.toolBarTool.Enter         += new System.EventHandler(this.menuItem3_Click);
     this.toolBarTool.ButtonClick   += new System.Windows.Forms.ToolBarButtonClickEventHandler(this.toolBar1_ButtonClick);
     this.toolBarTool.MouseHover    += new System.EventHandler(this.toolBar1_MouseHover);
     this.toolBarTool.MouseLeave    += new System.EventHandler(this.toolBar1_MouseLeave);
     //
     // New
     //
     this.New.ImageIndex  = 0;
     this.New.ToolTipText = "New";
     this.New.Visible     = ((bool)(configurationAppSettings.GetValue("New.Visible", typeof(bool))));
     //
     // About
     //
     this.About.ImageIndex  = 1;
     this.About.ToolTipText = "About(F1)";
     this.About.Visible     = ((bool)(configurationAppSettings.GetValue("About.Visible", typeof(bool))));
     //
     // toolBarButton1
     //
     this.toolBarButton1.Style = System.Windows.Forms.ToolBarButtonStyle.Separator;
     //
     // wireframe
     //
     this.wireframe.Enabled     = ((bool)(configurationAppSettings.GetValue("wireframe.Enabled", typeof(bool))));
     this.wireframe.ImageIndex  = 2;
     this.wireframe.Pushed      = ((bool)(configurationAppSettings.GetValue("wireframe.Pushed", typeof(bool))));
     this.wireframe.ToolTipText = "Wireframe";
     this.wireframe.Visible     = ((bool)(configurationAppSettings.GetValue("wireframe.Visible", typeof(bool))));
     //
     // shading
     //
     this.shading.Enabled     = ((bool)(configurationAppSettings.GetValue("shading.Enabled", typeof(bool))));
     this.shading.ImageIndex  = 3;
     this.shading.Pushed      = ((bool)(configurationAppSettings.GetValue("shading.Pushed", typeof(bool))));
     this.shading.ToolTipText = "Shading";
     this.shading.Visible     = ((bool)(configurationAppSettings.GetValue("shading.Visible", typeof(bool))));
     //
     // color
     //
     this.color.Enabled     = ((bool)(configurationAppSettings.GetValue("color.Enabled", typeof(bool))));
     this.color.ImageIndex  = 4;
     this.color.ToolTipText = "Color";
     this.color.Visible     = ((bool)(configurationAppSettings.GetValue("color.Visible", typeof(bool))));
     //
     // material
     //
     this.material.Enabled     = ((bool)(configurationAppSettings.GetValue("material.Enabled", typeof(bool))));
     this.material.ImageIndex  = 5;
     this.material.ToolTipText = "Material";
     this.material.Visible     = ((bool)(configurationAppSettings.GetValue("material.Visible", typeof(bool))));
     //
     // transparency
     //
     this.transparency.Enabled     = ((bool)(configurationAppSettings.GetValue("transparency.Enabled", typeof(bool))));
     this.transparency.ImageIndex  = 6;
     this.transparency.ToolTipText = "Transparency";
     this.transparency.Visible     = ((bool)(configurationAppSettings.GetValue("transparency.Visible", typeof(bool))));
     //
     // delete
     //
     this.delete.Enabled     = ((bool)(configurationAppSettings.GetValue("delete.Enabled", typeof(bool))));
     this.delete.ImageIndex  = 7;
     this.delete.ToolTipText = "Delete";
     this.delete.Visible     = ((bool)(configurationAppSettings.GetValue("delete.Visible", typeof(bool))));
     //
     // imageList1
     //
     this.imageList1.ImageSize        = new System.Drawing.Size(16, 16);
     this.imageList1.ImageStream      = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageList1.ImageStream")));
     this.imageList1.TransparentColor = System.Drawing.Color.Transparent;
     //
     // myStatusBar
     //
     this.myStatusBar.AccessibleRole = System.Windows.Forms.AccessibleRole.StatusBar;
     this.myStatusBar.Location       = new System.Drawing.Point(0, 363);
     this.myStatusBar.Name           = "myStatusBar";
     this.myStatusBar.Size           = new System.Drawing.Size(560, 22);
     this.myStatusBar.TabIndex       = 3;
     //
     // toolBarView
     //
     this.toolBarView.AccessibleRole = System.Windows.Forms.AccessibleRole.ToolBar;
     this.toolBarView.Buttons.AddRange(new System.Windows.Forms.ToolBarButton[] {
         this.ZoomAll,
         this.ZoomWin,
         this.ZoomProg,
         this.Pan,
         this.PanGlo,
         this.Front,
         this.Back,
         this.TOP,
         this.BOTTOM,
         this.LEFT,
         this.RIGHT,
         this.Axo,
         this.Rot,
         this.Reset,
         this.HlrOn,
         this.HlrOff
     });
     this.toolBarView.DropDownArrows = true;
     this.toolBarView.ImageList      = this.imageList1;
     this.toolBarView.Location       = new System.Drawing.Point(0, 28);
     this.toolBarView.Name           = "toolBarView";
     this.toolBarView.ShowToolTips   = true;
     this.toolBarView.Size           = new System.Drawing.Size(560, 28);
     this.toolBarView.TabIndex       = 5;
     this.toolBarView.Visible        = false;
     this.toolBarView.Wrappable      = false;
     this.toolBarView.ButtonClick   += new System.Windows.Forms.ToolBarButtonClickEventHandler(this.toolBarView_ButtonClick);
     this.toolBarView.MouseHover    += new System.EventHandler(this.toolBarView_MouseHover);
     this.toolBarView.MouseLeave    += new System.EventHandler(this.toolBarView_MouseLeave);
     //
     // ZoomAll
     //
     this.ZoomAll.ImageIndex  = 8;
     this.ZoomAll.ToolTipText = "FitAll";
     //
     // ZoomWin
     //
     this.ZoomWin.ImageIndex  = 9;
     this.ZoomWin.ToolTipText = "Zoom Window";
     //
     // ZoomProg
     //
     this.ZoomProg.ImageIndex  = 10;
     this.ZoomProg.ToolTipText = "Dynamic Zooming";
     //
     // Pan
     //
     this.Pan.ImageIndex  = 11;
     this.Pan.ToolTipText = "Dynamic Panning";
     //
     // PanGlo
     //
     this.PanGlo.ImageIndex  = 12;
     this.PanGlo.ToolTipText = "GlobalPanning";
     //
     // Front
     //
     this.Front.ImageIndex  = 13;
     this.Front.ToolTipText = "Front";
     //
     // Back
     //
     this.Back.ImageIndex  = 14;
     this.Back.ToolTipText = "Back";
     //
     // TOP
     //
     this.TOP.ImageIndex  = 15;
     this.TOP.ToolTipText = "Top";
     //
     // BOTTOM
     //
     this.BOTTOM.ImageIndex  = 16;
     this.BOTTOM.ToolTipText = "Bottom";
     //
     // LEFT
     //
     this.LEFT.ImageIndex  = 17;
     this.LEFT.ToolTipText = "Left";
     //
     // RIGHT
     //
     this.RIGHT.ImageIndex  = 18;
     this.RIGHT.ToolTipText = "Right";
     //
     // Axo
     //
     this.Axo.ImageIndex  = 19;
     this.Axo.ToolTipText = "Axo";
     //
     // Rot
     //
     this.Rot.ImageIndex  = 20;
     this.Rot.ToolTipText = "Dynamic Rotation";
     //
     // Reset
     //
     this.Reset.ImageIndex  = 21;
     this.Reset.ToolTipText = "Reset";
     //
     // HlrOn
     //
     this.HlrOn.ImageIndex  = 22;
     this.HlrOn.Pushed      = true;
     this.HlrOn.ToolTipText = "Hidden On";
     //
     // HlrOff
     //
     this.HlrOff.ImageIndex  = 23;
     this.HlrOff.ToolTipText = "Hidden Off";
     //
     // Form1
     //
     this.AccessibleRole    = System.Windows.Forms.AccessibleRole.Application;
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.ClientSize        = new System.Drawing.Size(560, 385);
     this.Controls.Add(this.toolBarView);
     this.Controls.Add(this.myStatusBar);
     this.Controls.Add(this.toolBarTool);
     this.Icon           = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     this.IsMdiContainer = true;
     this.Menu           = this.mainMenu1;
     this.Name           = "Form1";
     this.Text           = "Sample Import / Export";
     this.Activated     += new System.EventHandler(this.Form1_Activated);
     this.ResumeLayout(false);
 }
示例#50
0
 /// <summary>
 /// 设计器支持所需的方法 - 不要使用代码编辑器修改
 /// 此方法的内容。
 /// </summary>
 private void InitializeComponent()
 {
     System.Configuration.AppSettingsReader configurationAppSettings = new System.Configuration.AppSettingsReader();
     this.dgSql             = new System.Windows.Forms.DataGrid();
     this.dgOleDb           = new System.Windows.Forms.DataGrid();
     this.dgOracle          = new System.Windows.Forms.DataGrid();
     this.dgOdbc            = new System.Windows.Forms.DataGrid();
     this.button1           = new System.Windows.Forms.Button();
     this.btnOracle         = new System.Windows.Forms.Button();
     this.btnSql            = new System.Windows.Forms.Button();
     this.btnOleDb          = new System.Windows.Forms.Button();
     this.sqlConnection1    = new System.Data.SqlClient.SqlConnection();
     this.txtResult         = new System.Windows.Forms.TextBox();
     this.oracleConnection1 = new System.Data.OracleClient.OracleConnection();
     this.odbcConnection1   = new System.Data.Odbc.OdbcConnection();
     this.oleDbConnection1  = new System.Data.OleDb.OleDbConnection();
     ((System.ComponentModel.ISupportInitialize)(this.dgSql)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.dgOleDb)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.dgOracle)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.dgOdbc)).BeginInit();
     this.SuspendLayout();
     //
     // dgSql
     //
     this.dgSql.DataMember      = "";
     this.dgSql.HeaderForeColor = System.Drawing.SystemColors.ControlText;
     this.dgSql.Location        = new System.Drawing.Point(32, 48);
     this.dgSql.Name            = "dgSql";
     this.dgSql.Size            = new System.Drawing.Size(360, 120);
     this.dgSql.TabIndex        = 0;
     //
     // dgOleDb
     //
     this.dgOleDb.DataMember      = "";
     this.dgOleDb.HeaderForeColor = System.Drawing.SystemColors.ControlText;
     this.dgOleDb.Location        = new System.Drawing.Point(24, 232);
     this.dgOleDb.Name            = "dgOleDb";
     this.dgOleDb.Size            = new System.Drawing.Size(368, 128);
     this.dgOleDb.TabIndex        = 1;
     //
     // dgOracle
     //
     this.dgOracle.AllowSorting    = ((bool)(configurationAppSettings.GetValue("dgOracle.AllowSorting", typeof(bool))));
     this.dgOracle.DataMember      = "";
     this.dgOracle.HeaderForeColor = System.Drawing.SystemColors.ControlText;
     this.dgOracle.Location        = new System.Drawing.Point(544, 56);
     this.dgOracle.Name            = "dgOracle";
     this.dgOracle.ReadOnly        = ((bool)(configurationAppSettings.GetValue("dgOracle.ReadOnly", typeof(bool))));
     this.dgOracle.Size            = new System.Drawing.Size(360, 112);
     this.dgOracle.TabIndex        = 2;
     //
     // dgOdbc
     //
     this.dgOdbc.DataMember      = "";
     this.dgOdbc.HeaderForeColor = System.Drawing.SystemColors.ControlText;
     this.dgOdbc.Location        = new System.Drawing.Point(536, 232);
     this.dgOdbc.Name            = "dgOdbc";
     this.dgOdbc.Size            = new System.Drawing.Size(368, 128);
     this.dgOdbc.TabIndex        = 3;
     //
     // button1
     //
     this.button1.Location = new System.Drawing.Point(544, 192);
     this.button1.Name     = "button1";
     this.button1.TabIndex = 4;
     this.button1.Text     = "Odbc";
     this.button1.Click   += new System.EventHandler(this.button1_Click);
     //
     // btnOracle
     //
     this.btnOracle.Location = new System.Drawing.Point(544, 8);
     this.btnOracle.Name     = "btnOracle";
     this.btnOracle.TabIndex = 5;
     this.btnOracle.Text     = "Oracle";
     this.btnOracle.Click   += new System.EventHandler(this.btnOracle_Click);
     //
     // btnSql
     //
     this.btnSql.Location = new System.Drawing.Point(32, 8);
     this.btnSql.Name     = "btnSql";
     this.btnSql.TabIndex = 6;
     this.btnSql.Text     = "Sql";
     this.btnSql.Click   += new System.EventHandler(this.btnSql_Click);
     //
     // btnOleDb
     //
     this.btnOleDb.Location = new System.Drawing.Point(32, 192);
     this.btnOleDb.Name     = "btnOleDb";
     this.btnOleDb.TabIndex = 7;
     this.btnOleDb.Text     = "OleDb";
     this.btnOleDb.Click   += new System.EventHandler(this.btnOleDb_Click);
     //
     // sqlConnection1
     //
     this.sqlConnection1.ConnectionString = "workstation id=ZHENG;packet size=4096;user id=sa;data source=ZHENG;persist securi" +
                                            "ty info=False;initial catalog=pubs";
     //
     // txtResult
     //
     this.txtResult.Location = new System.Drawing.Point(392, 184);
     this.txtResult.Name     = "txtResult";
     this.txtResult.TabIndex = 8;
     this.txtResult.Text     = "";
     //
     // oracleConnection1
     //
     this.oracleConnection1.ConnectionString = "user id=scott;data source=oracle9;persist security info=False";
     //
     // odbcConnection1
     //
     this.odbcConnection1.ConnectionString = "Trusted_Connection=Yes;UID=wangchao;DATABASE=pubs;APP={Microsoft? Visual Studio ." +
                                             "NET};DRIVER=SQL Server;WSID=ZHENG;SERVER=ZHENG";
     //
     // oleDbConnection1
     //
     this.oleDbConnection1.ConnectionString = "Provider=MSDAORA;User ID=scott;Data Source=oracle9;Password=tiger";
     //
     // Form1
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(6, 14);
     this.ClientSize        = new System.Drawing.Size(936, 382);
     this.Controls.Add(this.txtResult);
     this.Controls.Add(this.btnOleDb);
     this.Controls.Add(this.btnSql);
     this.Controls.Add(this.btnOracle);
     this.Controls.Add(this.button1);
     this.Controls.Add(this.dgOdbc);
     this.Controls.Add(this.dgOracle);
     this.Controls.Add(this.dgOleDb);
     this.Controls.Add(this.dgSql);
     this.Name = "Form1";
     this.Text = "Form1";
     ((System.ComponentModel.ISupportInitialize)(this.dgSql)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.dgOleDb)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.dgOracle)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.dgOdbc)).EndInit();
     this.ResumeLayout(false);
 }
示例#51
0
 /// <summary>
 /// Método necesario para admitir el Diseñador. No se puede modificar
 /// el contenido del método con el editor de código.
 /// </summary>
 private void InitializeComponent()
 {
     System.Configuration.AppSettingsReader         configurationAppSettings = new System.Configuration.AppSettingsReader();
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Concentrado));
     this.sqlDAConcentrado     = new System.Data.SqlClient.SqlDataAdapter();
     this.sqlSelectCommand1    = new System.Data.SqlClient.SqlCommand();
     this.sqlConn              = new System.Data.SqlClient.SqlConnection();
     this.dsConcentrado1       = new LancNeo.dsConcentrado();
     this.sqlDABusObra         = new System.Data.SqlClient.SqlDataAdapter();
     this.sqlCommand1          = new System.Data.SqlClient.SqlCommand();
     this.panel1               = new System.Windows.Forms.Panel();
     this.buscaBtn1            = new Soluciones2000.Tools.WinLib.BuscaBtn();
     this.dsConcentra1         = new LancNeo.dsConcentra();
     this.btnVistaPrevia       = new Soluciones2000.Tools.WinLib.tbBtn();
     this.cbkPrefijo           = new System.Windows.Forms.CheckBox();
     this.dtpFin               = new System.Windows.Forms.DateTimePicker();
     this.label4               = new System.Windows.Forms.Label();
     this.dtpIni               = new System.Windows.Forms.DateTimePicker();
     this.label3               = new System.Windows.Forms.Label();
     this.label2               = new System.Windows.Forms.Label();
     this.cmbIdObra            = new System.Windows.Forms.ComboBox();
     this.dsDGObra1            = new LancNeo.dsDGObra();
     this.label1               = new System.Windows.Forms.Label();
     this.Fecha                = new System.Windows.Forms.Label();
     this.txtIdobra            = new System.Windows.Forms.TextBox();
     this.sqlDAConcentra       = new System.Data.SqlClient.SqlDataAdapter();
     this.sqlSelectCommand2    = new System.Data.SqlClient.SqlCommand();
     this.crvConcentrado       = new CrystalDecisions.Windows.Forms.CrystalReportViewer();
     this.cryRepConcentrado1   = new LancNeo.CryRepConcentrado();
     this.dsConcentrados1      = new LancNeo.dsConcentrados();
     this.sqlDAConcetradoTotal = new System.Data.SqlClient.SqlDataAdapter();
     this.sqlSelectCommand3    = new System.Data.SqlClient.SqlCommand();
     this.cbkMortero           = new System.Windows.Forms.CheckBox();
     ((System.ComponentModel.ISupportInitialize)(this.dsConcentrado1)).BeginInit();
     this.panel1.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.dsConcentra1)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.dsDGObra1)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.dsConcentrados1)).BeginInit();
     this.SuspendLayout();
     //
     // sqlDAConcentrado
     //
     this.sqlDAConcentrado.SelectCommand = this.sqlSelectCommand1;
     this.sqlDAConcentrado.TableMappings.AddRange(new System.Data.Common.DataTableMapping[] {
         new System.Data.Common.DataTableMapping("Table", "Repdetcon", new System.Data.Common.DataColumnMapping[] {
             new System.Data.Common.DataColumnMapping("IdObra", "IdObra"),
             new System.Data.Common.DataColumnMapping("Fecha", "Fecha"),
             new System.Data.Common.DataColumnMapping("Semana", "Semana"),
             new System.Data.Common.DataColumnMapping("Muestra", "Muestra"),
             new System.Data.Common.DataColumnMapping("Elemento", "Elemento"),
             new System.Data.Common.DataColumnMapping("Nivel", "Nivel"),
             new System.Data.Common.DataColumnMapping("Hora", "Hora"),
             new System.Data.Common.DataColumnMapping("Volumen", "Volumen"),
             new System.Data.Common.DataColumnMapping("Textra", "Textra"),
             new System.Data.Common.DataColumnMapping("NoEco", "NoEco"),
             new System.Data.Common.DataColumnMapping("Htrabajadas", "Htrabajadas"),
             new System.Data.Common.DataColumnMapping("MorteroI", "MorteroI"),
             new System.Data.Common.DataColumnMapping("MorteroC", "MorteroC"),
             new System.Data.Common.DataColumnMapping("MorteroQ", "MorteroQ"),
             new System.Data.Common.DataColumnMapping("AceroAI", "AceroAI"),
             new System.Data.Common.DataColumnMapping("AceroAC", "AceroAC"),
             new System.Data.Common.DataColumnMapping("AceroAQ", "AceroAQ"),
             new System.Data.Common.DataColumnMapping("AceroBI", "AceroBI"),
             new System.Data.Common.DataColumnMapping("AceroBC", "AceroBC"),
             new System.Data.Common.DataColumnMapping("AceroBQ", "AceroBQ"),
             new System.Data.Common.DataColumnMapping("AceroCI", "AceroCI"),
             new System.Data.Common.DataColumnMapping("AceroCC", "AceroCC"),
             new System.Data.Common.DataColumnMapping("AceroCQ", "AceroCQ"),
             new System.Data.Common.DataColumnMapping("VigasI", "VigasI"),
             new System.Data.Common.DataColumnMapping("VigasC", "VigasC"),
             new System.Data.Common.DataColumnMapping("VigasQ", "VigasQ"),
             new System.Data.Common.DataColumnMapping("TensionI", "TensionI"),
             new System.Data.Common.DataColumnMapping("TensionC", "TensionC"),
             new System.Data.Common.DataColumnMapping("TensionQ", "TensionQ"),
             new System.Data.Common.DataColumnMapping("SoldaI", "SoldaI"),
             new System.Data.Common.DataColumnMapping("SoldaC", "SoldaC"),
             new System.Data.Common.DataColumnMapping("SoldaQ", "SoldaQ"),
             new System.Data.Common.DataColumnMapping("CompactI", "CompactI"),
             new System.Data.Common.DataColumnMapping("CompactC", "CompactC"),
             new System.Data.Common.DataColumnMapping("CompactQ", "CompactQ"),
             new System.Data.Common.DataColumnMapping("PrefabrI", "PrefabrI"),
             new System.Data.Common.DataColumnMapping("PrefabrC", "PrefabrC"),
             new System.Data.Common.DataColumnMapping("PrefabrQ", "PrefabrQ"),
             new System.Data.Common.DataColumnMapping("VisualI", "VisualI"),
             new System.Data.Common.DataColumnMapping("VisualC", "VisualC"),
             new System.Data.Common.DataColumnMapping("VisualQ", "VisualQ"),
             new System.Data.Common.DataColumnMapping("CalifiI", "CalifiI"),
             new System.Data.Common.DataColumnMapping("CalifiC", "CalifiC"),
             new System.Data.Common.DataColumnMapping("CalifiQ", "CalifiQ"),
             new System.Data.Common.DataColumnMapping("LQPenI", "LQPenI"),
             new System.Data.Common.DataColumnMapping("LQPenC", "LQPenC"),
             new System.Data.Common.DataColumnMapping("LQPenQ", "LQPenQ"),
             new System.Data.Common.DataColumnMapping("PorterI", "PorterI"),
             new System.Data.Common.DataColumnMapping("PorterC", "PorterC"),
             new System.Data.Common.DataColumnMapping("PorterQ", "PorterQ"),
             new System.Data.Common.DataColumnMapping("ProctorI", "ProctorI"),
             new System.Data.Common.DataColumnMapping("ProctorC", "ProctorC"),
             new System.Data.Common.DataColumnMapping("ProctorQ", "ProctorQ"),
             new System.Data.Common.DataColumnMapping("AsshtoI", "AsshtoI"),
             new System.Data.Common.DataColumnMapping("AsshtoC", "AsshtoC"),
             new System.Data.Common.DataColumnMapping("AsshtoQ", "AsshtoQ"),
             new System.Data.Common.DataColumnMapping("RadiogI", "RadiogI"),
             new System.Data.Common.DataColumnMapping("RadiogC", "RadiogC"),
             new System.Data.Common.DataColumnMapping("RadiogQ", "RadiogQ")
         })
     });
     //
     // sqlSelectCommand1
     //
     this.sqlSelectCommand1.CommandText = "[Repdetcon]";
     this.sqlSelectCommand1.CommandType = System.Data.CommandType.StoredProcedure;
     this.sqlSelectCommand1.Connection  = this.sqlConn;
     this.sqlSelectCommand1.Parameters.AddRange(new System.Data.SqlClient.SqlParameter[] {
         new System.Data.SqlClient.SqlParameter("@RETURN_VALUE", System.Data.SqlDbType.Int, 4, System.Data.ParameterDirection.ReturnValue, false, ((byte)(0)), ((byte)(0)), "", System.Data.DataRowVersion.Current, null),
         new System.Data.SqlClient.SqlParameter("@IdObra", System.Data.SqlDbType.NVarChar, 6),
         new System.Data.SqlClient.SqlParameter("@FIni", System.Data.SqlDbType.DateTime, 8),
         new System.Data.SqlClient.SqlParameter("@FFin", System.Data.SqlDbType.DateTime, 8),
         new System.Data.SqlClient.SqlParameter("@Mortero", System.Data.SqlDbType.Bit, 1)
     });
     //
     // sqlConn
     //
     this.sqlConn.ConnectionString = ((string)(configurationAppSettings.GetValue("sqlConn.ConnectionString", typeof(string))));
     this.sqlConn.FireInfoMessageEventOnUserErrors = false;
     //
     // dsConcentrado1
     //
     this.dsConcentrado1.DataSetName             = "dsConcentrado";
     this.dsConcentrado1.EnforceConstraints      = false;
     this.dsConcentrado1.Locale                  = new System.Globalization.CultureInfo("es-MX");
     this.dsConcentrado1.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema;
     //
     // sqlDABusObra
     //
     this.sqlDABusObra.SelectCommand = this.sqlCommand1;
     this.sqlDABusObra.TableMappings.AddRange(new System.Data.Common.DataTableMapping[] {
         new System.Data.Common.DataTableMapping("Table", "Obra", new System.Data.Common.DataColumnMapping[] {
             new System.Data.Common.DataColumnMapping("Idobra", "Idobra"),
             new System.Data.Common.DataColumnMapping("Ubicacion", "Ubicacion"),
             new System.Data.Common.DataColumnMapping("RFC", "RFC"),
             new System.Data.Common.DataColumnMapping("Facturar", "Facturar")
         })
     });
     //
     // sqlCommand1
     //
     this.sqlCommand1.CommandText = resources.GetString("sqlCommand1.CommandText");
     this.sqlCommand1.Connection  = this.sqlConn;
     //
     // panel1
     //
     this.panel1.BackColor   = System.Drawing.SystemColors.Highlight;
     this.panel1.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
     this.panel1.Controls.Add(this.btnVistaPrevia);
     this.panel1.Controls.Add(this.buscaBtn1);
     this.panel1.Controls.Add(this.cbkMortero);
     this.panel1.Controls.Add(this.cbkPrefijo);
     this.panel1.Controls.Add(this.dtpFin);
     this.panel1.Controls.Add(this.label4);
     this.panel1.Controls.Add(this.dtpIni);
     this.panel1.Controls.Add(this.label3);
     this.panel1.Controls.Add(this.label2);
     this.panel1.Controls.Add(this.cmbIdObra);
     this.panel1.Controls.Add(this.label1);
     this.panel1.Controls.Add(this.Fecha);
     this.panel1.Controls.Add(this.txtIdobra);
     this.panel1.Dock     = System.Windows.Forms.DockStyle.Top;
     this.panel1.Location = new System.Drawing.Point(0, 0);
     this.panel1.Name     = "panel1";
     this.panel1.Size     = new System.Drawing.Size(856, 76);
     this.panel1.TabIndex = 11;
     //
     // buscaBtn1
     //
     this.buscaBtn1.AnchoDlgBusq = 650;
     this.buscaBtn1.BackColor    = System.Drawing.Color.Transparent;
     this.buscaBtn1.Datos        = this.dsConcentra1.Concentra;
     this.buscaBtn1.Icon         = ((System.Drawing.Icon)(resources.GetObject("buscaBtn1.Icon")));
     this.buscaBtn1.Location     = new System.Drawing.Point(371, 4);
     this.buscaBtn1.Name         = "buscaBtn1";
     this.buscaBtn1.Size         = new System.Drawing.Size(64, 64);
     this.buscaBtn1.TabIndex     = 2;
     this.buscaBtn1.Visible      = false;
     this.buscaBtn1.Click       += new System.EventHandler(this.buscaBtn1_Click);
     //
     // dsConcentra1
     //
     this.dsConcentra1.DataSetName             = "dsConcentra";
     this.dsConcentra1.Locale                  = new System.Globalization.CultureInfo("es-MX");
     this.dsConcentra1.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema;
     //
     // btnVistaPrevia
     //
     this.btnVistaPrevia.BackColor = System.Drawing.Color.Transparent;
     this.btnVistaPrevia.Icon      = ((System.Drawing.Icon)(resources.GetObject("btnVistaPrevia.Icon")));
     this.btnVistaPrevia.Location  = new System.Drawing.Point(760, 0);
     this.btnVistaPrevia.Name      = "btnVistaPrevia";
     this.btnVistaPrevia.Size      = new System.Drawing.Size(64, 64);
     this.btnVistaPrevia.TabIndex  = 11;
     this.btnVistaPrevia.Visible   = false;
     this.btnVistaPrevia.Click    += new System.EventHandler(this.btnVistaPrevia_Click);
     //
     // cbkPrefijo
     //
     this.cbkPrefijo.Checked    = true;
     this.cbkPrefijo.CheckState = System.Windows.Forms.CheckState.Checked;
     this.cbkPrefijo.Location   = new System.Drawing.Point(441, 40);
     this.cbkPrefijo.Name       = "cbkPrefijo";
     this.cbkPrefijo.Size       = new System.Drawing.Size(74, 24);
     this.cbkPrefijo.TabIndex   = 36;
     this.cbkPrefijo.Text       = "No prefijo";
     //
     // dtpFin
     //
     this.dtpFin.Format   = System.Windows.Forms.DateTimePickerFormat.Short;
     this.dtpFin.Location = new System.Drawing.Point(664, 42);
     this.dtpFin.Name     = "dtpFin";
     this.dtpFin.Size     = new System.Drawing.Size(84, 20);
     this.dtpFin.TabIndex = 4;
     //
     // label4
     //
     this.label4.AutoSize = true;
     this.label4.Location = new System.Drawing.Point(640, 46);
     this.label4.Name     = "label4";
     this.label4.Size     = new System.Drawing.Size(32, 13);
     this.label4.TabIndex = 11;
     this.label4.Text     = "Final:";
     //
     // dtpIni
     //
     this.dtpIni.Format   = System.Windows.Forms.DateTimePickerFormat.Short;
     this.dtpIni.Location = new System.Drawing.Point(664, 10);
     this.dtpIni.Name     = "dtpIni";
     this.dtpIni.Size     = new System.Drawing.Size(84, 20);
     this.dtpIni.TabIndex = 3;
     //
     // label3
     //
     this.label3.AutoSize = true;
     this.label3.Location = new System.Drawing.Point(635, 14);
     this.label3.Name     = "label3";
     this.label3.Size     = new System.Drawing.Size(37, 13);
     this.label3.TabIndex = 9;
     this.label3.Text     = "Inicial:";
     //
     // label2
     //
     this.label2.AutoSize = true;
     this.label2.Location = new System.Drawing.Point(250, 10);
     this.label2.Name     = "label2";
     this.label2.Size     = new System.Drawing.Size(33, 13);
     this.label2.TabIndex = 8;
     this.label2.Text     = "Obra:";
     //
     // cmbIdObra
     //
     this.cmbIdObra.DataSource            = this.dsDGObra1.Obra;
     this.cmbIdObra.DisplayMember         = "Idobra";
     this.cmbIdObra.Location              = new System.Drawing.Point(282, 8);
     this.cmbIdObra.Name                  = "cmbIdObra";
     this.cmbIdObra.Size                  = new System.Drawing.Size(80, 21);
     this.cmbIdObra.TabIndex              = 1;
     this.cmbIdObra.ValueMember           = "IdObra";
     this.cmbIdObra.SelectedIndexChanged += new System.EventHandler(this.cmbIdObra_SelectedIndexChanged);
     //
     // dsDGObra1
     //
     this.dsDGObra1.DataSetName             = "dsDGObra";
     this.dsDGObra1.Locale                  = new System.Globalization.CultureInfo("es-MX");
     this.dsDGObra1.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema;
     //
     // label1
     //
     this.label1.Font     = new System.Drawing.Font("Microsoft Sans Serif", 14F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label1.Location = new System.Drawing.Point(8, 0);
     this.label1.Name     = "label1";
     this.label1.Size     = new System.Drawing.Size(272, 56);
     this.label1.TabIndex = 0;
     this.label1.Text     = "Concentrado de labores ejecutadas por laboratoristas";
     //
     // Fecha
     //
     this.Fecha.AutoSize = true;
     this.Fecha.Location = new System.Drawing.Point(538, 29);
     this.Fecha.Name     = "Fecha";
     this.Fecha.Size     = new System.Drawing.Size(95, 13);
     this.Fecha.TabIndex = 4;
     this.Fecha.Text     = "Fechas de periodo";
     //
     // txtIdobra
     //
     this.txtIdobra.Location = new System.Drawing.Point(384, 32);
     this.txtIdobra.Name     = "txtIdobra";
     this.txtIdobra.ReadOnly = true;
     this.txtIdobra.Size     = new System.Drawing.Size(48, 20);
     this.txtIdobra.TabIndex = 2;
     this.txtIdobra.Visible  = false;
     //
     // sqlDAConcentra
     //
     this.sqlDAConcentra.SelectCommand = this.sqlSelectCommand2;
     this.sqlDAConcentra.TableMappings.AddRange(new System.Data.Common.DataTableMapping[] {
         new System.Data.Common.DataTableMapping("Table", "Concentra", new System.Data.Common.DataColumnMapping[] {
             new System.Data.Common.DataColumnMapping("IdObra", "IdObra"),
             new System.Data.Common.DataColumnMapping("Fecha", "Fecha"),
             new System.Data.Common.DataColumnMapping("Semana", "Semana")
         })
     });
     //
     // sqlSelectCommand2
     //
     this.sqlSelectCommand2.CommandText = "SELECT IdObra, Fecha, Semana FROM Concentra WHERE (IdObra = @IdObra) ORDER BY IdO" +
                                          "bra, Fecha";
     this.sqlSelectCommand2.Connection = this.sqlConn;
     this.sqlSelectCommand2.Parameters.AddRange(new System.Data.SqlClient.SqlParameter[] {
         new System.Data.SqlClient.SqlParameter("@IdObra", System.Data.SqlDbType.NVarChar, 6, "IdObra")
     });
     //
     // crvConcentrado
     //
     this.crvConcentrado.ActiveViewIndex     = -1;
     this.crvConcentrado.BorderStyle         = System.Windows.Forms.BorderStyle.FixedSingle;
     this.crvConcentrado.Cursor              = System.Windows.Forms.Cursors.Default;
     this.crvConcentrado.Dock                = System.Windows.Forms.DockStyle.Fill;
     this.crvConcentrado.EnableRefresh       = false;
     this.crvConcentrado.Location            = new System.Drawing.Point(0, 76);
     this.crvConcentrado.Name                = "crvConcentrado";
     this.crvConcentrado.ShowCloseButton     = false;
     this.crvConcentrado.ShowGroupTreeButton = false;
     this.crvConcentrado.ShowLogo            = false;
     this.crvConcentrado.Size                = new System.Drawing.Size(856, 329);
     this.crvConcentrado.TabIndex            = 12;
     this.crvConcentrado.ToolPanelView       = CrystalDecisions.Windows.Forms.ToolPanelViewType.None;
     //
     // dsConcentrados1
     //
     this.dsConcentrados1.DataSetName             = "dsConcentrados";
     this.dsConcentrados1.Locale                  = new System.Globalization.CultureInfo("es-MX");
     this.dsConcentrados1.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema;
     //
     // sqlDAConcetradoTotal
     //
     this.sqlDAConcetradoTotal.SelectCommand = this.sqlSelectCommand3;
     this.sqlDAConcetradoTotal.TableMappings.AddRange(new System.Data.Common.DataTableMapping[] {
         new System.Data.Common.DataTableMapping("Table", "Repdetcon1", new System.Data.Common.DataColumnMapping[] {
             new System.Data.Common.DataColumnMapping("Principal", "Principal"),
             new System.Data.Common.DataColumnMapping("Adicional", "Adicional")
         })
     });
     //
     // sqlSelectCommand3
     //
     this.sqlSelectCommand3.CommandText = "[Repdetcon1]";
     this.sqlSelectCommand3.CommandType = System.Data.CommandType.StoredProcedure;
     this.sqlSelectCommand3.Connection  = this.sqlConn;
     this.sqlSelectCommand3.Parameters.AddRange(new System.Data.SqlClient.SqlParameter[] {
         new System.Data.SqlClient.SqlParameter("@RETURN_VALUE", System.Data.SqlDbType.Int, 4, System.Data.ParameterDirection.ReturnValue, false, ((byte)(0)), ((byte)(0)), "", System.Data.DataRowVersion.Current, null),
         new System.Data.SqlClient.SqlParameter("@IdObra", System.Data.SqlDbType.NVarChar, 6),
         new System.Data.SqlClient.SqlParameter("@FIni", System.Data.SqlDbType.DateTime, 8),
         new System.Data.SqlClient.SqlParameter("@FFin", System.Data.SqlDbType.DateTime, 8),
         new System.Data.SqlClient.SqlParameter("@Mortero", System.Data.SqlDbType.Bit, 1)
     });
     //
     // cbkMortero
     //
     this.cbkMortero.Checked    = true;
     this.cbkMortero.CheckState = System.Windows.Forms.CheckState.Checked;
     this.cbkMortero.Location   = new System.Drawing.Point(441, 8);
     this.cbkMortero.Name       = "cbkMortero";
     this.cbkMortero.Size       = new System.Drawing.Size(102, 24);
     this.cbkMortero.TabIndex   = 52;
     this.cbkMortero.Text       = "Incluye mortero";
     //
     // Concentrado
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.ClientSize        = new System.Drawing.Size(856, 405);
     this.Controls.Add(this.crvConcentrado);
     this.Controls.Add(this.panel1);
     this.Name        = "Concentrado";
     this.Text        = "Concentrado";
     this.WindowState = System.Windows.Forms.FormWindowState.Maximized;
     this.Load       += new System.EventHandler(this.Concentrado_Load);
     ((System.ComponentModel.ISupportInitialize)(this.dsConcentrado1)).EndInit();
     this.panel1.ResumeLayout(false);
     this.panel1.PerformLayout();
     ((System.ComponentModel.ISupportInitialize)(this.dsConcentra1)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.dsDGObra1)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.dsConcentrados1)).EndInit();
     this.ResumeLayout(false);
 }
示例#52
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     System.Configuration.AppSettingsReader         configurationAppSettings = new System.Configuration.AppSettingsReader();
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(InfoPE));
     this.sqlConn           = new System.Data.SqlClient.SqlConnection();
     this.dsBusObra1        = new LancNeo.dsBusObra();
     this.dsBusImagen1      = new LancNeo.dsBusImagen();
     this.sqlDABusImagen    = new System.Data.SqlClient.SqlDataAdapter();
     this.sqlSelectCommand1 = new System.Data.SqlClient.SqlCommand();
     this.panel2            = new System.Windows.Forms.Panel();
     this.btnPROCESO        = new Soluciones2000.Tools.WinLib.tbBtn();
     this.btnVistaPrevia    = new Soluciones2000.Tools.WinLib.tbBtn();
     this.txtUsrMov         = new System.Windows.Forms.TextBox();
     this.cmbIdObra         = new System.Windows.Forms.ComboBox();
     this.label3            = new System.Windows.Forms.Label();
     this.label4            = new System.Windows.Forms.Label();
     this.dataGridView1     = new System.Windows.Forms.DataGridView();
     this.folioDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
     this.TipoInf = new System.Windows.Forms.DataGridViewTextBoxColumn();
     this.consObraDataGridViewTextBoxColumn  = new System.Windows.Forms.DataGridViewTextBoxColumn();
     this.fmuestreoDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
     this.Archivo              = new System.Windows.Forms.DataGridViewLinkColumn();
     this.sqlDABusObra         = new System.Data.SqlClient.SqlDataAdapter();
     this.sqlCommand1          = new System.Data.SqlClient.SqlCommand();
     this.dsBusObra2           = new LancNeo.dsBusObra();
     this.folderBrowserDialog1 = new System.Windows.Forms.FolderBrowserDialog();
     this.dsConcepto1          = new LancNeo.dsConcepto();
     this.sqlDAConcepto        = new System.Data.SqlClient.SqlDataAdapter();
     this.sqlCommand2          = new System.Data.SqlClient.SqlCommand();
     ((System.ComponentModel.ISupportInitialize)(this.dsBusObra1)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.dsBusImagen1)).BeginInit();
     this.panel2.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.dsBusObra2)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.dsConcepto1)).BeginInit();
     this.SuspendLayout();
     //
     // sqlConn
     //
     this.sqlConn.ConnectionString = ((string)(configurationAppSettings.GetValue("sqlConn.ConnectionString", typeof(string))));
     this.sqlConn.FireInfoMessageEventOnUserErrors = false;
     //
     // dsBusObra1
     //
     this.dsBusObra1.DataSetName             = "dsBusObra";
     this.dsBusObra1.Locale                  = new System.Globalization.CultureInfo("es-MX");
     this.dsBusObra1.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema;
     //
     // dsBusImagen1
     //
     this.dsBusImagen1.DataSetName             = "dsBusImagen";
     this.dsBusImagen1.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema;
     //
     // sqlDABusImagen
     //
     this.sqlDABusImagen.SelectCommand = this.sqlSelectCommand1;
     this.sqlDABusImagen.TableMappings.AddRange(new System.Data.Common.DataTableMapping[] {
         new System.Data.Common.DataTableMapping("Table", "Imagen", new System.Data.Common.DataColumnMapping[] {
             new System.Data.Common.DataColumnMapping("Folio", "Folio"),
             new System.Data.Common.DataColumnMapping("Tipo", "Tipo"),
             new System.Data.Common.DataColumnMapping("IdObra", "IdObra"),
             new System.Data.Common.DataColumnMapping("ConsObra", "ConsObra"),
             new System.Data.Common.DataColumnMapping("Fmuestreo", "Fmuestreo"),
             new System.Data.Common.DataColumnMapping("TipoInf", "TipoInf"),
             new System.Data.Common.DataColumnMapping("Archivo", "Archivo"),
             new System.Data.Common.DataColumnMapping("Imagen", "Imagen")
         })
     });
     //
     // sqlSelectCommand1
     //
     this.sqlSelectCommand1.CommandText = resources.GetString("sqlSelectCommand1.CommandText");
     this.sqlSelectCommand1.Connection  = this.sqlConn;
     this.sqlSelectCommand1.Parameters.AddRange(new System.Data.SqlClient.SqlParameter[] {
         new System.Data.SqlClient.SqlParameter("@IdObra", System.Data.SqlDbType.NVarChar, 6, "IdObra")
     });
     //
     // panel2
     //
     this.panel2.BackColor   = System.Drawing.SystemColors.Highlight;
     this.panel2.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
     this.panel2.Controls.Add(this.btnVistaPrevia);
     this.panel2.Controls.Add(this.btnPROCESO);
     this.panel2.Controls.Add(this.txtUsrMov);
     this.panel2.Controls.Add(this.cmbIdObra);
     this.panel2.Controls.Add(this.label3);
     this.panel2.Controls.Add(this.label4);
     this.panel2.Dock     = System.Windows.Forms.DockStyle.Top;
     this.panel2.Location = new System.Drawing.Point(0, 0);
     this.panel2.Name     = "panel2";
     this.panel2.Size     = new System.Drawing.Size(613, 95);
     this.panel2.TabIndex = 10;
     //
     // btnPROCESO
     //
     this.btnPROCESO.BackColor = System.Drawing.Color.Transparent;
     this.btnPROCESO.Icon      = ((System.Drawing.Icon)(resources.GetObject("btnPROCESO.Icon")));
     this.btnPROCESO.Location  = new System.Drawing.Point(497, 3);
     this.btnPROCESO.Name      = "btnPROCESO";
     this.btnPROCESO.Size      = new System.Drawing.Size(64, 64);
     this.btnPROCESO.TabIndex  = 60;
     this.btnPROCESO.Visible   = false;
     this.btnPROCESO.Click    += new System.EventHandler(this.btnPROCESO_Click);
     //
     // btnVistaPrevia
     //
     this.btnVistaPrevia.BackColor = System.Drawing.Color.Transparent;
     this.btnVistaPrevia.Icon      = ((System.Drawing.Icon)(resources.GetObject("btnVistaPrevia.Icon")));
     this.btnVistaPrevia.Location  = new System.Drawing.Point(393, 3);
     this.btnVistaPrevia.Name      = "btnVistaPrevia";
     this.btnVistaPrevia.Size      = new System.Drawing.Size(64, 63);
     this.btnVistaPrevia.TabIndex  = 59;
     this.btnVistaPrevia.Click    += new System.EventHandler(this.btnVistaPrevia_Click);
     //
     // txtUsrMov
     //
     this.txtUsrMov.Location = new System.Drawing.Point(297, 47);
     this.txtUsrMov.Name     = "txtUsrMov";
     this.txtUsrMov.Size     = new System.Drawing.Size(56, 20);
     this.txtUsrMov.TabIndex = 102;
     this.txtUsrMov.Visible  = false;
     //
     // cmbIdObra
     //
     this.cmbIdObra.DataSource            = this.dsBusObra1;
     this.cmbIdObra.DisplayMember         = "Obra.Idobra";
     this.cmbIdObra.Location              = new System.Drawing.Point(273, 8);
     this.cmbIdObra.Name                  = "cmbIdObra";
     this.cmbIdObra.Size                  = new System.Drawing.Size(80, 21);
     this.cmbIdObra.TabIndex              = 57;
     this.cmbIdObra.ValueMember           = "IdObra";
     this.cmbIdObra.SelectedIndexChanged += new System.EventHandler(this.cmbIdObra_SelectedIndexChanged);
     //
     // label3
     //
     this.label3.AutoSize  = true;
     this.label3.ForeColor = System.Drawing.Color.White;
     this.label3.Location  = new System.Drawing.Point(240, 12);
     this.label3.Name      = "label3";
     this.label3.Size      = new System.Drawing.Size(33, 13);
     this.label3.TabIndex  = 56;
     this.label3.Text      = "Obra:";
     //
     // label4
     //
     this.label4.Font      = new System.Drawing.Font("Microsoft Sans Serif", 14F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label4.ForeColor = System.Drawing.Color.White;
     this.label4.Location  = new System.Drawing.Point(7, 8);
     this.label4.Name      = "label4";
     this.label4.Size      = new System.Drawing.Size(220, 56);
     this.label4.TabIndex  = 54;
     this.label4.Text      = "Visor pruebas especiales";
     this.label4.Click    += new System.EventHandler(this.label4_Click);
     //
     // dataGridView1
     //
     this.dataGridView1.AllowUserToAddRows          = false;
     this.dataGridView1.AllowUserToDeleteRows       = false;
     this.dataGridView1.AllowUserToOrderColumns     = true;
     this.dataGridView1.AutoGenerateColumns         = false;
     this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
     this.dataGridView1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
         this.folioDataGridViewTextBoxColumn,
         this.TipoInf,
         this.consObraDataGridViewTextBoxColumn,
         this.fmuestreoDataGridViewTextBoxColumn,
         this.Archivo
     });
     this.dataGridView1.DataMember  = "Imagen";
     this.dataGridView1.DataSource  = this.dsBusImagen1;
     this.dataGridView1.Dock        = System.Windows.Forms.DockStyle.Fill;
     this.dataGridView1.Location    = new System.Drawing.Point(0, 95);
     this.dataGridView1.MultiSelect = false;
     this.dataGridView1.Name        = "dataGridView1";
     this.dataGridView1.ReadOnly    = true;
     this.dataGridView1.Size        = new System.Drawing.Size(613, 229);
     this.dataGridView1.TabIndex    = 11;
     //
     // folioDataGridViewTextBoxColumn
     //
     this.folioDataGridViewTextBoxColumn.DataPropertyName = "Folio";
     this.folioDataGridViewTextBoxColumn.HeaderText       = "Folio";
     this.folioDataGridViewTextBoxColumn.Name             = "folioDataGridViewTextBoxColumn";
     this.folioDataGridViewTextBoxColumn.ReadOnly         = true;
     this.folioDataGridViewTextBoxColumn.Width            = 70;
     //
     // TipoInf
     //
     this.TipoInf.DataPropertyName = "TipoInf";
     this.TipoInf.HeaderText       = "TipoInf";
     this.TipoInf.Name             = "TipoInf";
     this.TipoInf.ReadOnly         = true;
     this.TipoInf.Width            = 200;
     //
     // consObraDataGridViewTextBoxColumn
     //
     this.consObraDataGridViewTextBoxColumn.DataPropertyName = "ConsObra";
     this.consObraDataGridViewTextBoxColumn.HeaderText       = "Consecutivo";
     this.consObraDataGridViewTextBoxColumn.Name             = "consObraDataGridViewTextBoxColumn";
     this.consObraDataGridViewTextBoxColumn.ReadOnly         = true;
     //
     // fmuestreoDataGridViewTextBoxColumn
     //
     this.fmuestreoDataGridViewTextBoxColumn.DataPropertyName = "Fmuestreo";
     this.fmuestreoDataGridViewTextBoxColumn.HeaderText       = "Fmuestreo";
     this.fmuestreoDataGridViewTextBoxColumn.Name             = "fmuestreoDataGridViewTextBoxColumn";
     this.fmuestreoDataGridViewTextBoxColumn.ReadOnly         = true;
     this.fmuestreoDataGridViewTextBoxColumn.Width            = 70;
     //
     // Archivo
     //
     this.Archivo.DataPropertyName = "Archivo";
     this.Archivo.HeaderText       = "Archivo";
     this.Archivo.Name             = "Archivo";
     this.Archivo.ReadOnly         = true;
     this.Archivo.Resizable        = System.Windows.Forms.DataGridViewTriState.True;
     this.Archivo.SortMode         = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
     //
     // sqlDABusObra
     //
     this.sqlDABusObra.SelectCommand = this.sqlCommand1;
     this.sqlDABusObra.TableMappings.AddRange(new System.Data.Common.DataTableMapping[] {
         new System.Data.Common.DataTableMapping("Table", "Obra", new System.Data.Common.DataColumnMapping[] {
             new System.Data.Common.DataColumnMapping("Idobra", "Idobra"),
             new System.Data.Common.DataColumnMapping("Ubicacion", "Ubicacion"),
             new System.Data.Common.DataColumnMapping("RFC", "RFC"),
             new System.Data.Common.DataColumnMapping("Facturar", "Facturar")
         })
     });
     //
     // sqlCommand1
     //
     this.sqlCommand1.CommandText = resources.GetString("sqlCommand1.CommandText");
     this.sqlCommand1.Connection  = this.sqlConn;
     //
     // dsBusObra2
     //
     this.dsBusObra2.DataSetName             = "dsBusObra";
     this.dsBusObra2.Locale                  = new System.Globalization.CultureInfo("es-MX");
     this.dsBusObra2.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema;
     //
     // dsConcepto1
     //
     this.dsConcepto1.DataSetName             = "dsConcepto";
     this.dsConcepto1.Locale                  = new System.Globalization.CultureInfo("es-MX");
     this.dsConcepto1.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema;
     //
     // sqlDAConcepto
     //
     this.sqlDAConcepto.SelectCommand = this.sqlCommand2;
     this.sqlDAConcepto.TableMappings.AddRange(new System.Data.Common.DataTableMapping[] {
         new System.Data.Common.DataTableMapping("Table", "Obra", new System.Data.Common.DataColumnMapping[] {
             new System.Data.Common.DataColumnMapping("Idobra", "Idobra"),
             new System.Data.Common.DataColumnMapping("Ubicacion", "Ubicacion"),
             new System.Data.Common.DataColumnMapping("RFC", "RFC"),
             new System.Data.Common.DataColumnMapping("Facturar", "Facturar")
         })
     });
     //
     // sqlCommand2
     //
     this.sqlCommand2.CommandText = "SELECT     IdConcepto, Concepto\r\nFROM         Concepto\r\nWHERE     (Especial = 1)\r" +
                                    "\nORDER BY Concepto";
     this.sqlCommand2.Connection = this.sqlConn;
     //
     // InfoPE
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
     this.ClientSize          = new System.Drawing.Size(613, 324);
     this.Controls.Add(this.dataGridView1);
     this.Controls.Add(this.panel2);
     this.Name  = "InfoPE";
     this.Text  = "InfoPE";
     this.Load += new System.EventHandler(this.InfoPE_Load);
     ((System.ComponentModel.ISupportInitialize)(this.dsBusObra1)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.dsBusImagen1)).EndInit();
     this.panel2.ResumeLayout(false);
     this.panel2.PerformLayout();
     ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.dsBusObra2)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.dsConcepto1)).EndInit();
     this.ResumeLayout(false);
 }
示例#53
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     System.Configuration.AppSettingsReader         configurationAppSettings = new System.Configuration.AppSettingsReader();
     System.Windows.Forms.DataGridViewCellStyle     dataGridViewCellStyle1   = new System.Windows.Forms.DataGridViewCellStyle();
     System.Windows.Forms.DataGridViewCellStyle     dataGridViewCellStyle2   = new System.Windows.Forms.DataGridViewCellStyle();
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(EspPro));
     this.sqlConn           = new System.Data.SqlClient.SqlConnection();
     this.dsEspPro1         = new LancNeo.dsEspPro();
     this.dgEspPro          = new System.Windows.Forms.DataGridView();
     this.sqlDAEspecimen    = new System.Data.SqlClient.SqlDataAdapter();
     this.sqlDeleteCommand  = new System.Data.SqlClient.SqlCommand();
     this.sqlInsertCommand  = new System.Data.SqlClient.SqlCommand();
     this.sqlSelectCommand5 = new System.Data.SqlClient.SqlCommand();
     this.sqlUpdateCommand  = new System.Data.SqlClient.SqlCommand();
     this.idObraDataGridViewTextBoxColumn      = new System.Windows.Forms.DataGridViewTextBoxColumn();
     this.fechaDataGridViewTextBoxColumn       = new System.Windows.Forms.DataGridViewTextBoxColumn();
     this.consecutivoDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
     this.idEspecimenDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
     this.diaDataGridViewTextBoxColumn         = new System.Windows.Forms.DataGridViewTextBoxColumn();
     this.idEnsayeDataGridViewTextBoxColumn    = new System.Windows.Forms.DataGridViewTextBoxColumn();
     this.fensayeDataGridViewTextBoxColumn     = new System.Windows.Forms.DataGridViewTextBoxColumn();
     this.Vapor         = new System.Windows.Forms.DataGridViewTextBoxColumn();
     this.IdLaboratorio = new System.Windows.Forms.DataGridViewTextBoxColumn();
     this.NoEco         = new System.Windows.Forms.DataGridViewTextBoxColumn();
     this.IdPrueba      = new System.Windows.Forms.DataGridViewTextBoxColumn();
     this.IdDiam        = new System.Windows.Forms.DataGridViewTextBoxColumn();
     this.panelToolBar.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.dsEspPro1)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.dgEspPro)).BeginInit();
     this.SuspendLayout();
     //
     // statusBar1
     //
     this.statusBar1.Location   = new System.Drawing.Point(0, 580);
     this.statusBar1.ShowPanels = true;
     this.statusBar1.Size       = new System.Drawing.Size(672, 22);
     //
     // panelToolBar
     //
     this.panelToolBar.Size = new System.Drawing.Size(672, 64);
     //
     // sqlConn
     //
     this.sqlConn.ConnectionString = ((string)(configurationAppSettings.GetValue("sqlConn.ConnectionString", typeof(string))));
     this.sqlConn.FireInfoMessageEventOnUserErrors = false;
     //
     // dsEspPro1
     //
     this.dsEspPro1.DataSetName             = "dsEspPro";
     this.dsEspPro1.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema;
     //
     // dgEspPro
     //
     dataGridViewCellStyle1.BackColor              = System.Drawing.Color.White;
     dataGridViewCellStyle1.ForeColor              = System.Drawing.Color.Black;
     dataGridViewCellStyle1.SelectionBackColor     = System.Drawing.Color.White;
     dataGridViewCellStyle1.SelectionForeColor     = System.Drawing.Color.DimGray;
     this.dgEspPro.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1;
     this.dgEspPro.AutoGenerateColumns             = false;
     this.dgEspPro.ColumnHeadersHeightSizeMode     = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
     this.dgEspPro.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
         this.idObraDataGridViewTextBoxColumn,
         this.fechaDataGridViewTextBoxColumn,
         this.consecutivoDataGridViewTextBoxColumn,
         this.idEspecimenDataGridViewTextBoxColumn,
         this.diaDataGridViewTextBoxColumn,
         this.idEnsayeDataGridViewTextBoxColumn,
         this.fensayeDataGridViewTextBoxColumn,
         this.Vapor,
         this.IdLaboratorio,
         this.NoEco,
         this.IdPrueba,
         this.IdDiam
     });
     this.dgEspPro.DataMember                  = "Especimen";
     this.dgEspPro.DataSource                  = this.dsEspPro1;
     dataGridViewCellStyle2.Alignment          = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
     dataGridViewCellStyle2.BackColor          = System.Drawing.Color.White;
     dataGridViewCellStyle2.Font               = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     dataGridViewCellStyle2.ForeColor          = System.Drawing.Color.White;
     dataGridViewCellStyle2.SelectionBackColor = System.Drawing.Color.Black;
     dataGridViewCellStyle2.SelectionForeColor = System.Drawing.Color.DimGray;
     dataGridViewCellStyle2.WrapMode           = System.Windows.Forms.DataGridViewTriState.False;
     this.dgEspPro.DefaultCellStyle            = dataGridViewCellStyle2;
     this.dgEspPro.Location = new System.Drawing.Point(7, 70);
     this.dgEspPro.Name     = "dgEspPro";
     this.dgEspPro.RowTemplate.DefaultCellStyle.BackColor          = System.Drawing.Color.White;
     this.dgEspPro.RowTemplate.DefaultCellStyle.ForeColor          = System.Drawing.Color.Black;
     this.dgEspPro.RowTemplate.DefaultCellStyle.SelectionBackColor = System.Drawing.Color.White;
     this.dgEspPro.RowTemplate.DefaultCellStyle.SelectionForeColor = System.Drawing.Color.DimGray;
     this.dgEspPro.Size                 = new System.Drawing.Size(653, 504);
     this.dgEspPro.TabIndex             = 4;
     this.dgEspPro.CellValueChanged    += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgEspPro_CellValueChanged);
     this.dgEspPro.DefaultValuesNeeded += new System.Windows.Forms.DataGridViewRowEventHandler(this.dgEspPro_DefaultValuesNeeded);
     //
     // sqlDAEspecimen
     //
     this.sqlDAEspecimen.DeleteCommand = this.sqlDeleteCommand;
     this.sqlDAEspecimen.InsertCommand = this.sqlInsertCommand;
     this.sqlDAEspecimen.SelectCommand = this.sqlSelectCommand5;
     this.sqlDAEspecimen.TableMappings.AddRange(new System.Data.Common.DataTableMapping[] {
         new System.Data.Common.DataTableMapping("Table", "Especimen", new System.Data.Common.DataColumnMapping[] {
             new System.Data.Common.DataColumnMapping("IdObra", "IdObra"),
             new System.Data.Common.DataColumnMapping("Fecha", "Fecha"),
             new System.Data.Common.DataColumnMapping("Consecutivo", "Consecutivo"),
             new System.Data.Common.DataColumnMapping("IdEspecimen", "IdEspecimen"),
             new System.Data.Common.DataColumnMapping("Dia", "Dia"),
             new System.Data.Common.DataColumnMapping("Vapor", "Vapor"),
             new System.Data.Common.DataColumnMapping("IdLaboratorio", "IdLaboratorio"),
             new System.Data.Common.DataColumnMapping("NoEco", "NoEco"),
             new System.Data.Common.DataColumnMapping("IdPrueba", "IdPrueba"),
             new System.Data.Common.DataColumnMapping("IdDiam", "IdDiam"),
             new System.Data.Common.DataColumnMapping("IdEnsaye", "IdEnsaye"),
             new System.Data.Common.DataColumnMapping("Fensaye", "Fensaye")
         })
     });
     this.sqlDAEspecimen.UpdateCommand = this.sqlUpdateCommand;
     //
     // sqlDeleteCommand
     //
     this.sqlDeleteCommand.CommandText = resources.GetString("sqlDeleteCommand.CommandText");
     this.sqlDeleteCommand.Connection  = this.sqlConn;
     this.sqlDeleteCommand.Parameters.AddRange(new System.Data.SqlClient.SqlParameter[] {
         new System.Data.SqlClient.SqlParameter("@Original_IdObra", System.Data.SqlDbType.NVarChar, 0, System.Data.ParameterDirection.Input, false, ((byte)(0)), ((byte)(0)), "IdObra", System.Data.DataRowVersion.Original, null),
         new System.Data.SqlClient.SqlParameter("@Original_Fecha", System.Data.SqlDbType.DateTime, 0, System.Data.ParameterDirection.Input, false, ((byte)(0)), ((byte)(0)), "Fecha", System.Data.DataRowVersion.Original, null),
         new System.Data.SqlClient.SqlParameter("@Original_Consecutivo", System.Data.SqlDbType.SmallInt, 0, System.Data.ParameterDirection.Input, false, ((byte)(0)), ((byte)(0)), "Consecutivo", System.Data.DataRowVersion.Original, null),
         new System.Data.SqlClient.SqlParameter("@Original_IdEspecimen", System.Data.SqlDbType.SmallInt, 0, System.Data.ParameterDirection.Input, false, ((byte)(0)), ((byte)(0)), "IdEspecimen", System.Data.DataRowVersion.Original, null),
         new System.Data.SqlClient.SqlParameter("@Original_Dia", System.Data.SqlDbType.Int, 0, System.Data.ParameterDirection.Input, false, ((byte)(0)), ((byte)(0)), "Dia", System.Data.DataRowVersion.Original, null),
         new System.Data.SqlClient.SqlParameter("@Original_Vapor", System.Data.SqlDbType.Int, 0, System.Data.ParameterDirection.Input, false, ((byte)(0)), ((byte)(0)), "Vapor", System.Data.DataRowVersion.Original, null),
         new System.Data.SqlClient.SqlParameter("@Original_IdLaboratorio", System.Data.SqlDbType.NVarChar, 0, System.Data.ParameterDirection.Input, false, ((byte)(0)), ((byte)(0)), "IdLaboratorio", System.Data.DataRowVersion.Original, null),
         new System.Data.SqlClient.SqlParameter("@Original_NoEco", System.Data.SqlDbType.SmallInt, 0, System.Data.ParameterDirection.Input, false, ((byte)(0)), ((byte)(0)), "NoEco", System.Data.DataRowVersion.Original, null),
         new System.Data.SqlClient.SqlParameter("@Original_IdPrueba", System.Data.SqlDbType.SmallInt, 0, System.Data.ParameterDirection.Input, false, ((byte)(0)), ((byte)(0)), "IdPrueba", System.Data.DataRowVersion.Original, null),
         new System.Data.SqlClient.SqlParameter("@Original_IdDiam", System.Data.SqlDbType.SmallInt, 0, System.Data.ParameterDirection.Input, false, ((byte)(0)), ((byte)(0)), "IdDiam", System.Data.DataRowVersion.Original, null),
         new System.Data.SqlClient.SqlParameter("@IsNull_IdEnsaye", System.Data.SqlDbType.Int, 0, System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "IdEnsaye", System.Data.DataRowVersion.Original, true, null, "", "", ""),
         new System.Data.SqlClient.SqlParameter("@Original_IdEnsaye", System.Data.SqlDbType.SmallInt, 0, System.Data.ParameterDirection.Input, false, ((byte)(0)), ((byte)(0)), "IdEnsaye", System.Data.DataRowVersion.Original, null),
         new System.Data.SqlClient.SqlParameter("@IsNull_Fensaye", System.Data.SqlDbType.Int, 0, System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "Fensaye", System.Data.DataRowVersion.Original, true, null, "", "", ""),
         new System.Data.SqlClient.SqlParameter("@Original_Fensaye", System.Data.SqlDbType.SmallDateTime, 0, System.Data.ParameterDirection.Input, false, ((byte)(0)), ((byte)(0)), "Fensaye", System.Data.DataRowVersion.Original, null)
     });
     //
     // sqlInsertCommand
     //
     this.sqlInsertCommand.CommandText = resources.GetString("sqlInsertCommand.CommandText");
     this.sqlInsertCommand.Connection  = this.sqlConn;
     this.sqlInsertCommand.Parameters.AddRange(new System.Data.SqlClient.SqlParameter[] {
         new System.Data.SqlClient.SqlParameter("@IdObra", System.Data.SqlDbType.NVarChar, 0, "IdObra"),
         new System.Data.SqlClient.SqlParameter("@Fecha", System.Data.SqlDbType.DateTime, 0, "Fecha"),
         new System.Data.SqlClient.SqlParameter("@Consecutivo", System.Data.SqlDbType.SmallInt, 0, "Consecutivo"),
         new System.Data.SqlClient.SqlParameter("@IdEspecimen", System.Data.SqlDbType.SmallInt, 0, "IdEspecimen"),
         new System.Data.SqlClient.SqlParameter("@Dia", System.Data.SqlDbType.Int, 0, "Dia"),
         new System.Data.SqlClient.SqlParameter("@Vapor", System.Data.SqlDbType.Int, 0, "Vapor"),
         new System.Data.SqlClient.SqlParameter("@IdLaboratorio", System.Data.SqlDbType.NVarChar, 0, "IdLaboratorio"),
         new System.Data.SqlClient.SqlParameter("@NoEco", System.Data.SqlDbType.SmallInt, 0, "NoEco"),
         new System.Data.SqlClient.SqlParameter("@IdPrueba", System.Data.SqlDbType.SmallInt, 0, "IdPrueba"),
         new System.Data.SqlClient.SqlParameter("@IdDiam", System.Data.SqlDbType.SmallInt, 0, "IdDiam"),
         new System.Data.SqlClient.SqlParameter("@IdEnsaye", System.Data.SqlDbType.SmallInt, 0, "IdEnsaye"),
         new System.Data.SqlClient.SqlParameter("@Fensaye", System.Data.SqlDbType.SmallDateTime, 0, "Fensaye")
     });
     //
     // sqlSelectCommand5
     //
     this.sqlSelectCommand5.CommandText = resources.GetString("sqlSelectCommand5.CommandText");
     this.sqlSelectCommand5.Connection  = this.sqlConn;
     this.sqlSelectCommand5.Parameters.AddRange(new System.Data.SqlClient.SqlParameter[] {
         new System.Data.SqlClient.SqlParameter("@IdObra", System.Data.SqlDbType.NVarChar, 6, "IdObra"),
         new System.Data.SqlClient.SqlParameter("@Fecha", System.Data.SqlDbType.DateTime, 8, "Fecha")
     });
     //
     // sqlUpdateCommand
     //
     this.sqlUpdateCommand.CommandText = resources.GetString("sqlUpdateCommand.CommandText");
     this.sqlUpdateCommand.Connection  = this.sqlConn;
     this.sqlUpdateCommand.Parameters.AddRange(new System.Data.SqlClient.SqlParameter[] {
         new System.Data.SqlClient.SqlParameter("@IdObra", System.Data.SqlDbType.NVarChar, 0, "IdObra"),
         new System.Data.SqlClient.SqlParameter("@Fecha", System.Data.SqlDbType.DateTime, 0, "Fecha"),
         new System.Data.SqlClient.SqlParameter("@Consecutivo", System.Data.SqlDbType.SmallInt, 0, "Consecutivo"),
         new System.Data.SqlClient.SqlParameter("@IdEspecimen", System.Data.SqlDbType.SmallInt, 0, "IdEspecimen"),
         new System.Data.SqlClient.SqlParameter("@Dia", System.Data.SqlDbType.Int, 0, "Dia"),
         new System.Data.SqlClient.SqlParameter("@Vapor", System.Data.SqlDbType.Int, 0, "Vapor"),
         new System.Data.SqlClient.SqlParameter("@IdLaboratorio", System.Data.SqlDbType.NVarChar, 0, "IdLaboratorio"),
         new System.Data.SqlClient.SqlParameter("@NoEco", System.Data.SqlDbType.SmallInt, 0, "NoEco"),
         new System.Data.SqlClient.SqlParameter("@IdPrueba", System.Data.SqlDbType.SmallInt, 0, "IdPrueba"),
         new System.Data.SqlClient.SqlParameter("@IdDiam", System.Data.SqlDbType.SmallInt, 0, "IdDiam"),
         new System.Data.SqlClient.SqlParameter("@IdEnsaye", System.Data.SqlDbType.SmallInt, 0, "IdEnsaye"),
         new System.Data.SqlClient.SqlParameter("@Fensaye", System.Data.SqlDbType.SmallDateTime, 0, "Fensaye"),
         new System.Data.SqlClient.SqlParameter("@Original_IdObra", System.Data.SqlDbType.NVarChar, 0, System.Data.ParameterDirection.Input, false, ((byte)(0)), ((byte)(0)), "IdObra", System.Data.DataRowVersion.Original, null),
         new System.Data.SqlClient.SqlParameter("@Original_Fecha", System.Data.SqlDbType.DateTime, 0, System.Data.ParameterDirection.Input, false, ((byte)(0)), ((byte)(0)), "Fecha", System.Data.DataRowVersion.Original, null),
         new System.Data.SqlClient.SqlParameter("@Original_Consecutivo", System.Data.SqlDbType.SmallInt, 0, System.Data.ParameterDirection.Input, false, ((byte)(0)), ((byte)(0)), "Consecutivo", System.Data.DataRowVersion.Original, null),
         new System.Data.SqlClient.SqlParameter("@Original_IdEspecimen", System.Data.SqlDbType.SmallInt, 0, System.Data.ParameterDirection.Input, false, ((byte)(0)), ((byte)(0)), "IdEspecimen", System.Data.DataRowVersion.Original, null),
         new System.Data.SqlClient.SqlParameter("@Original_Dia", System.Data.SqlDbType.Int, 0, System.Data.ParameterDirection.Input, false, ((byte)(0)), ((byte)(0)), "Dia", System.Data.DataRowVersion.Original, null),
         new System.Data.SqlClient.SqlParameter("@Original_Vapor", System.Data.SqlDbType.Int, 0, System.Data.ParameterDirection.Input, false, ((byte)(0)), ((byte)(0)), "Vapor", System.Data.DataRowVersion.Original, null),
         new System.Data.SqlClient.SqlParameter("@Original_IdLaboratorio", System.Data.SqlDbType.NVarChar, 0, System.Data.ParameterDirection.Input, false, ((byte)(0)), ((byte)(0)), "IdLaboratorio", System.Data.DataRowVersion.Original, null),
         new System.Data.SqlClient.SqlParameter("@Original_NoEco", System.Data.SqlDbType.SmallInt, 0, System.Data.ParameterDirection.Input, false, ((byte)(0)), ((byte)(0)), "NoEco", System.Data.DataRowVersion.Original, null),
         new System.Data.SqlClient.SqlParameter("@Original_IdPrueba", System.Data.SqlDbType.SmallInt, 0, System.Data.ParameterDirection.Input, false, ((byte)(0)), ((byte)(0)), "IdPrueba", System.Data.DataRowVersion.Original, null),
         new System.Data.SqlClient.SqlParameter("@Original_IdDiam", System.Data.SqlDbType.SmallInt, 0, System.Data.ParameterDirection.Input, false, ((byte)(0)), ((byte)(0)), "IdDiam", System.Data.DataRowVersion.Original, null),
         new System.Data.SqlClient.SqlParameter("@IsNull_IdEnsaye", System.Data.SqlDbType.Int, 0, System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "IdEnsaye", System.Data.DataRowVersion.Original, true, null, "", "", ""),
         new System.Data.SqlClient.SqlParameter("@Original_IdEnsaye", System.Data.SqlDbType.SmallInt, 0, System.Data.ParameterDirection.Input, false, ((byte)(0)), ((byte)(0)), "IdEnsaye", System.Data.DataRowVersion.Original, null),
         new System.Data.SqlClient.SqlParameter("@IsNull_Fensaye", System.Data.SqlDbType.Int, 0, System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "Fensaye", System.Data.DataRowVersion.Original, true, null, "", "", ""),
         new System.Data.SqlClient.SqlParameter("@Original_Fensaye", System.Data.SqlDbType.SmallDateTime, 0, System.Data.ParameterDirection.Input, false, ((byte)(0)), ((byte)(0)), "Fensaye", System.Data.DataRowVersion.Original, null)
     });
     //
     // idObraDataGridViewTextBoxColumn
     //
     this.idObraDataGridViewTextBoxColumn.DataPropertyName = "IdObra";
     this.idObraDataGridViewTextBoxColumn.HeaderText       = "IdObra";
     this.idObraDataGridViewTextBoxColumn.MaxInputLength   = 18;
     this.idObraDataGridViewTextBoxColumn.Name             = "idObraDataGridViewTextBoxColumn";
     this.idObraDataGridViewTextBoxColumn.ReadOnly         = true;
     this.idObraDataGridViewTextBoxColumn.Width            = 60;
     //
     // fechaDataGridViewTextBoxColumn
     //
     this.fechaDataGridViewTextBoxColumn.DataPropertyName = "Fecha";
     this.fechaDataGridViewTextBoxColumn.HeaderText       = "Fecha";
     this.fechaDataGridViewTextBoxColumn.MaxInputLength   = 10;
     this.fechaDataGridViewTextBoxColumn.Name             = "fechaDataGridViewTextBoxColumn";
     this.fechaDataGridViewTextBoxColumn.Width            = 70;
     //
     // consecutivoDataGridViewTextBoxColumn
     //
     this.consecutivoDataGridViewTextBoxColumn.DataPropertyName = "Consecutivo";
     this.consecutivoDataGridViewTextBoxColumn.HeaderText       = "Consecutivo";
     this.consecutivoDataGridViewTextBoxColumn.MaxInputLength   = 5;
     this.consecutivoDataGridViewTextBoxColumn.Name             = "consecutivoDataGridViewTextBoxColumn";
     this.consecutivoDataGridViewTextBoxColumn.Width            = 70;
     //
     // idEspecimenDataGridViewTextBoxColumn
     //
     this.idEspecimenDataGridViewTextBoxColumn.DataPropertyName = "IdEspecimen";
     this.idEspecimenDataGridViewTextBoxColumn.HeaderText       = "IdEspecimen";
     this.idEspecimenDataGridViewTextBoxColumn.MaxInputLength   = 2;
     this.idEspecimenDataGridViewTextBoxColumn.Name             = "idEspecimenDataGridViewTextBoxColumn";
     this.idEspecimenDataGridViewTextBoxColumn.Width            = 70;
     //
     // diaDataGridViewTextBoxColumn
     //
     this.diaDataGridViewTextBoxColumn.DataPropertyName = "Dia";
     this.diaDataGridViewTextBoxColumn.HeaderText       = "Día";
     this.diaDataGridViewTextBoxColumn.MaxInputLength   = 3;
     this.diaDataGridViewTextBoxColumn.Name             = "diaDataGridViewTextBoxColumn";
     this.diaDataGridViewTextBoxColumn.Width            = 35;
     //
     // idEnsayeDataGridViewTextBoxColumn
     //
     this.idEnsayeDataGridViewTextBoxColumn.DataPropertyName = "IdEnsaye";
     this.idEnsayeDataGridViewTextBoxColumn.HeaderText       = "IdEnsaye";
     this.idEnsayeDataGridViewTextBoxColumn.MaxInputLength   = 2;
     this.idEnsayeDataGridViewTextBoxColumn.Name             = "idEnsayeDataGridViewTextBoxColumn";
     this.idEnsayeDataGridViewTextBoxColumn.Width            = 55;
     //
     // fensayeDataGridViewTextBoxColumn
     //
     this.fensayeDataGridViewTextBoxColumn.DataPropertyName = "Fensaye";
     this.fensayeDataGridViewTextBoxColumn.HeaderText       = "Fensaye";
     this.fensayeDataGridViewTextBoxColumn.MaxInputLength   = 10;
     this.fensayeDataGridViewTextBoxColumn.Name             = "fensayeDataGridViewTextBoxColumn";
     this.fensayeDataGridViewTextBoxColumn.Width            = 70;
     //
     // Vapor
     //
     this.Vapor.DataPropertyName = "Vapor";
     this.Vapor.HeaderText       = "Vapor";
     this.Vapor.Name             = "Vapor";
     this.Vapor.Visible          = false;
     //
     // IdLaboratorio
     //
     this.IdLaboratorio.DataPropertyName = "IdLaboratorio";
     this.IdLaboratorio.HeaderText       = "IdLaboratorio";
     this.IdLaboratorio.MaxInputLength   = 6;
     this.IdLaboratorio.Name             = "IdLaboratorio";
     this.IdLaboratorio.Width            = 70;
     //
     // NoEco
     //
     this.NoEco.DataPropertyName = "NoEco";
     this.NoEco.HeaderText       = "Laboratorista";
     this.NoEco.MaxInputLength   = 6;
     this.NoEco.Name             = "NoEco";
     this.NoEco.Width            = 70;
     //
     // IdPrueba
     //
     this.IdPrueba.DataPropertyName = "IdPrueba";
     this.IdPrueba.HeaderText       = "IdPrueba";
     this.IdPrueba.Name             = "IdPrueba";
     this.IdPrueba.Visible          = false;
     //
     // IdDiam
     //
     this.IdDiam.DataPropertyName = "IdDiam";
     this.IdDiam.HeaderText       = "IdDiam";
     this.IdDiam.Name             = "IdDiam";
     this.IdDiam.Visible          = false;
     //
     // EspPro
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
     this.ClientSize          = new System.Drawing.Size(672, 602);
     this.Controls.Add(this.dgEspPro);
     this.DAGeneral   = this.sqlDAEspecimen;
     this.dsGeneral   = this.dsEspPro1;
     this.Name        = "EspPro";
     this.NombreTabla = "Especimen";
     this.Text        = "EspPro";
     this.Load       += new System.EventHandler(this.EspPro_Load);
     this.Controls.SetChildIndex(this.statusBar1, 0);
     this.Controls.SetChildIndex(this.panelToolBar, 0);
     this.Controls.SetChildIndex(this.dgEspPro, 0);
     this.panelToolBar.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.dsEspPro1)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.dgEspPro)).EndInit();
     this.ResumeLayout(false);
 }
        /// <summary>
        ///
        /// </summary>
        /// <returns>
        /// C_RES_OK : Result OK
        /// C_RES_NOK: Result NOK
        /// </returns>
        public int  TRXAuthorize()
        {
            int             iRslt  = C_RES_NOK;
            string          szFunc = "CS_M8_TRANSAX::TRXAuthorize ";
            ILogger         logger = null;
            TRXRequestInfo  oRequestInfo;
            TRXResponseInfo oResponseInfo;


            if (lockObject == null)
            {
/*
 *
 *  <!-- TRANSAX -->
 *      <!-- DLL Paths needed for Transax libreries -->
 *      <add key = "TransaxDLLPath" value = "C:\Inetpub\OPSServices\Common\WIN32\TRXPayGateDemo" />
 *      <!-- Transax Primary Server -->
 *      <add key = "TrxPrimaryServer" value = "216.130.225.11" />
 *      <!-- Transax Primary Server Port -->
 *      <add key = "TrxPrimaryServerPort" value = "60051" />
 *      <!-- Transax Secundary Server -->
 *      <add key = "TrxSecundaryServer" value = "216.130.225.11" />
 *      <!-- Transax Secundary Server Port -->
 *      <add key = "TrxSecundaryServerPort" value = "60051" />
 *      <!-- Transax Trace Parameter -->
 *      <add key = "TrxTrace" value = "1" />
 * */

                lockObject = new object();

                try
                {
                    System.Configuration.AppSettingsReader appSettings = new System.Configuration.AppSettingsReader();


                    _TRXPrimaryAddress   = (string)appSettings.GetValue("TrxPrimaryServer", typeof(string));
                    _TRXPrimaryPort      = (int)appSettings.GetValue("TrxPrimaryServerPort", typeof(int));
                    _TRXSecondaryAddress = (string)appSettings.GetValue("TrxSecundaryServer", typeof(string));
                    _TRXSecondaryPort    = (int)appSettings.GetValue("TrxSecundaryServerPort", typeof(int));
                    _TRXTrace            = (((int)appSettings.GetValue("TrxTrace", typeof(int))) == 1);


                    string    delimStr            = ";";
                    char []   delimiter           = delimStr.ToCharArray();
                    string [] splitDLLDirectories = null;
                    string    strDLLDirectories   = (string)appSettings.GetValue("TransaxDLLPath", typeof(string));
                    splitDLLDirectories = strDLLDirectories.Split(delimiter);

                    for (int i = 0; i < splitDLLDirectories.Length; i++)
                    {
                        splitDLLDirectories[i] = splitDLLDirectories[i].Trim();
                        if (splitDLLDirectories[i].Length > 0)
                        {
                            SetDllDirectory(splitDLLDirectories[i]);
                        }
                    }
                }
                catch
                {
                }
            }

            try
            {
                logger = DatabaseFactory.Logger;

                oRequestInfo  = new TRXRequestInfo();
                oResponseInfo = new TRXResponseInfo();


                oRequestInfo.mbTRXPrimaryAddress   = _TRXPrimaryAddress;
                oRequestInfo.mbTRXPrimaryPort      = _TRXPrimaryPort;
                oRequestInfo.mbTRXSecondaryAddress = _TRXSecondaryAddress;
                oRequestInfo.mbTRXSecondaryPort    = _TRXSecondaryPort;
                oRequestInfo.mbTRXTerminalUser     = _TRXTerminalUser;
                oRequestInfo.mbTRXTerminalPass     = _TRXTerminalPass;
                oRequestInfo.mbTRXTerminalStore    = _TRXTerminalStore;
                oRequestInfo.mbTRXTerminalStation  = _TRXTerminalStation;
                oRequestInfo.mbTRXRequestId        = _TRXRequestId;
                oRequestInfo.mbTRXRequestInvoice   = _TRXRequestInvoice;
                oRequestInfo.mbTRXRequestAmount    = _TRXRequestAmount;
                oRequestInfo.mbTRXRequestTrack2    = _TRXRequestTrack2;



                lock (lockObject)
                {
                    iRslt = TRXAuthorize(oRequestInfo, ref oResponseInfo, _TRXTrace);
                }

                _TRXResponseOperStatus  = oResponseInfo.TRXResponseOperStatus;
                _TRXResponseId          = oResponseInfo.mbTRXResponseId;
                _TRXResponseTransStatus = oResponseInfo.mbTRXResponseTransStatus;
                _TRXResponseISORespCode = oResponseInfo.mbTRXResponseISORespCode;
                _TRXResponseApproval    = oResponseInfo.mbTRXResponseApproval;
                _TRXResponseBatch       = oResponseInfo.mbTRXResponseBatch;
                _TRXResponseInvoice     = oResponseInfo.mbTRXResponseInvoice;
                _TRXResponseCardName    = oResponseInfo.mbTRXResponseCardName;
                _TRXResponseMaskedPAN   = oResponseInfo.mbTRXResponseMaskedPAN;
                _TRXResponseAmount      = oResponseInfo.mbTRXResponseAmount;
            }
            catch (Exception e)
            {
                Trace.Write(szFunc + e.Message);
                if (logger != null)
                {
                    logger.AddLog(szFunc + e.Message + iRslt.ToString(), LoggerSeverities.Debug);
                }

                iRslt = C_RES_NOK;
            }
            finally
            {
            }

            return(iRslt);
        }
        public bool InsertFineTicket(long iFineID, long iFineTypeID, string sDate, long iUnitID, long iGrpID)
        {
            bool bRdo = true;

            try
            {
                System.Configuration.AppSettingsReader appSettings = new System.Configuration.AppSettingsReader();
                if (_logger == null)
                {
                    // *** TODO
                    //_logger = new FileLogger(LoggerSeverities.Debug, (string)appSettings.GetValue("ServiceLog", typeof(string)));
                    //OPS.Comm.Messaging.CommMain.Logger.AddLogMessage += new AddLogMessageHandler(Logger_AddLogMessage);
                    //OPS.Comm.Messaging.CommMain.Logger.AddLogException += new AddLogExceptionHandler(Logger_AddLogException);
                    //DatabaseFactory.Logger = _logger;
                }

                OracleConnection con = null;
                OracleCommand    cmd = null;

                try
                {
                    // Testing UnitID
                    if (iUnitID <= 0)
                    {
                        string sUnitID = (string)appSettings.GetValue("DefaultPDAID", typeof(string));
                        iUnitID = Int32.Parse(sUnitID);
                    }

                    // Testing GrpID
                    if (iGrpID <= 0)
                    {
                        string sGrpID = (string)appSettings.GetValue("DefaultGroupID", typeof(string));
                        iGrpID = Int32.Parse(sGrpID);
                    }

                    string sConn = (string)appSettings.GetValue("ConnectionString", typeof(string));
                    if (sConn == null)
                    {
                        throw new Exception("No ConnectionString configuration");
                    }

                    con = new OracleConnection(sConn);

                    cmd            = new OracleCommand();
                    cmd.Connection = con;
                    cmd.Connection.Open();

                    cmd.CommandText = "select count(*) from fines where fin_id=" + iFineID.ToString();

                    // *** TODO
                    //if (cmd.ExecuteOracleScalar().ToString() != "0")
                    //{ // update

                    //	cmd.CommandText = "update FINES set FIN_DFIN_ID = " + iFineTypeID.ToString() +
                    //		",FIN_DATE = TO_DATE('" +sDate+"','HH24MISSDDMMYY')"+
                    //		",FIN_UNI_ID = " +  iUnitID.ToString() +
                    //		",FIN_GRP_ID_ZONE = " + iGrpID.ToString() +
                    //		" where FIN_ID = " + iFineID.ToString();

                    //}
                    //else
                    //{ // insert

                    //	cmd.CommandText = "insert into FINES (FIN_ID,FIN_DFIN_ID,FIN_DATE,FIN_UNI_ID,FIN_GRP_ID_ZONE) " +
                    //		" values  (" + iFineID.ToString()    + "," +
                    //		iFineTypeID.ToString()  + "," +
                    //		"TO_DATE('" + sDate + "','HH24MISSDDMMYY')" + "," +
                    //		iUnitID.ToString() + "," +
                    //		iGrpID.ToString() + ")";

                    //}


                    cmd.ExecuteNonQuery();
                }
                catch (Exception e)
                {
                    Logger_AddLogException(e);

                    bRdo = false;
                }
                finally
                {
                    if (cmd != null)
                    {
                        cmd.Dispose();
                        cmd = null;
                    }

                    if (con != null)
                    {
                        con.Close();
                        con = null;
                    }
                }
            }
            catch (Exception e)
            {
                Logger_AddLogException(e);

                bRdo = false;
            }

            return(bRdo);
        }
示例#56
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     System.Configuration.AppSettingsReader         configurationAppSettings = new System.Configuration.AppSettingsReader();
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(InfCliente));
     this.sqlConn           = new System.Data.SqlClient.SqlConnection();
     this.dsBusObra1        = new LancNeo.dsBusObra();
     this.sqlDABusObra      = new System.Data.SqlClient.SqlDataAdapter();
     this.sqlCommand1       = new System.Data.SqlClient.SqlCommand();
     this.panel2            = new System.Windows.Forms.Panel();
     this.tbBtn1            = new Soluciones2000.Tools.WinLib.tbBtn();
     this.label3            = new System.Windows.Forms.Label();
     this.cmbIdObra         = new System.Windows.Forms.ComboBox();
     this.label4            = new System.Windows.Forms.Label();
     this.crvInfCompacta    = new CrystalDecisions.Windows.Forms.CrystalReportViewer();
     this.sqlSelectCommand1 = new System.Data.SqlClient.SqlCommand();
     this.sqlDACliente      = new System.Data.SqlClient.SqlDataAdapter();
     this.dsInfCliente1     = new LancNeo.dsInfCliente();
     this.sqlSelectCommand2 = new System.Data.SqlClient.SqlCommand();
     this.sqlDAPerCli       = new System.Data.SqlClient.SqlDataAdapter();
     this.cryInfCliente1    = new LancNeo.CryInfCliente();
     ((System.ComponentModel.ISupportInitialize)(this.dsBusObra1)).BeginInit();
     this.panel2.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.dsInfCliente1)).BeginInit();
     this.SuspendLayout();
     //
     // sqlConn
     //
     this.sqlConn.ConnectionString = ((string)(configurationAppSettings.GetValue("sqlConn.ConnectionString", typeof(string))));
     this.sqlConn.FireInfoMessageEventOnUserErrors = false;
     //
     // dsBusObra1
     //
     this.dsBusObra1.DataSetName             = "dsBusObra";
     this.dsBusObra1.Locale                  = new System.Globalization.CultureInfo("es-MX");
     this.dsBusObra1.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema;
     //
     // sqlDABusObra
     //
     this.sqlDABusObra.SelectCommand = this.sqlCommand1;
     this.sqlDABusObra.TableMappings.AddRange(new System.Data.Common.DataTableMapping[] {
         new System.Data.Common.DataTableMapping("Table", "Obra", new System.Data.Common.DataColumnMapping[] {
             new System.Data.Common.DataColumnMapping("Idobra", "Idobra"),
             new System.Data.Common.DataColumnMapping("Ubicacion", "Ubicacion"),
             new System.Data.Common.DataColumnMapping("RFC", "RFC"),
             new System.Data.Common.DataColumnMapping("Facturar", "Facturar")
         })
     });
     //
     // sqlCommand1
     //
     this.sqlCommand1.CommandText = resources.GetString("sqlCommand1.CommandText");
     this.sqlCommand1.Connection  = this.sqlConn;
     //
     // panel2
     //
     this.panel2.BackColor   = System.Drawing.SystemColors.Highlight;
     this.panel2.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
     this.panel2.Controls.Add(this.tbBtn1);
     this.panel2.Controls.Add(this.label3);
     this.panel2.Controls.Add(this.cmbIdObra);
     this.panel2.Controls.Add(this.label4);
     this.panel2.Dock     = System.Windows.Forms.DockStyle.Top;
     this.panel2.Location = new System.Drawing.Point(0, 0);
     this.panel2.Name     = "panel2";
     this.panel2.Size     = new System.Drawing.Size(1028, 70);
     this.panel2.TabIndex = 14;
     //
     // tbBtn1
     //
     this.tbBtn1.BackColor = System.Drawing.Color.Transparent;
     this.tbBtn1.Icon      = ((System.Drawing.Icon)(resources.GetObject("tbBtn1.Icon")));
     this.tbBtn1.Location  = new System.Drawing.Point(931, 4);
     this.tbBtn1.Name      = "tbBtn1";
     this.tbBtn1.Size      = new System.Drawing.Size(64, 65);
     this.tbBtn1.TabIndex  = 11;
     this.tbBtn1.Click    += new System.EventHandler(this.btnVistaPrevia_Click);
     //
     // label3
     //
     this.label3.AutoSize = true;
     this.label3.Location = new System.Drawing.Point(312, 8);
     this.label3.Name     = "label3";
     this.label3.Size     = new System.Drawing.Size(33, 13);
     this.label3.TabIndex = 8;
     this.label3.Text     = "Obra:";
     //
     // cmbIdObra
     //
     this.cmbIdObra.DataSource    = this.dsBusObra1.Obra;
     this.cmbIdObra.DisplayMember = "Idobra";
     this.cmbIdObra.Location      = new System.Drawing.Point(349, 4);
     this.cmbIdObra.Name          = "cmbIdObra";
     this.cmbIdObra.Size          = new System.Drawing.Size(80, 21);
     this.cmbIdObra.TabIndex      = 1;
     this.cmbIdObra.ValueMember   = "IdObra";
     //
     // label4
     //
     this.label4.Font     = new System.Drawing.Font("Microsoft Sans Serif", 14F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label4.Location = new System.Drawing.Point(8, 0);
     this.label4.Name     = "label4";
     this.label4.Size     = new System.Drawing.Size(279, 56);
     this.label4.TabIndex = 0;
     this.label4.Text     = "Consulta de clientes";
     //
     // crvInfCompacta
     //
     this.crvInfCompacta.ActiveViewIndex = -1;
     this.crvInfCompacta.BorderStyle     = System.Windows.Forms.BorderStyle.FixedSingle;
     this.crvInfCompacta.Cursor          = System.Windows.Forms.Cursors.Default;
     this.crvInfCompacta.Dock            = System.Windows.Forms.DockStyle.Fill;
     this.crvInfCompacta.Location        = new System.Drawing.Point(0, 70);
     this.crvInfCompacta.Name            = "crvInfCompacta";
     this.crvInfCompacta.ReuseParameterValuesOnRefresh = true;
     this.crvInfCompacta.ShowCloseButton     = false;
     this.crvInfCompacta.ShowGroupTreeButton = false;
     this.crvInfCompacta.ShowLogo            = false;
     this.crvInfCompacta.Size          = new System.Drawing.Size(1028, 535);
     this.crvInfCompacta.TabIndex      = 15;
     this.crvInfCompacta.ToolPanelView = CrystalDecisions.Windows.Forms.ToolPanelViewType.None;
     this.crvInfCompacta.Visible       = false;
     //
     // sqlSelectCommand1
     //
     this.sqlSelectCommand1.CommandText = "dbo.InfCliente";
     this.sqlSelectCommand1.CommandType = System.Data.CommandType.StoredProcedure;
     this.sqlSelectCommand1.Connection  = this.sqlConn;
     this.sqlSelectCommand1.Parameters.AddRange(new System.Data.SqlClient.SqlParameter[] {
         new System.Data.SqlClient.SqlParameter("@RETURN_VALUE", System.Data.SqlDbType.Int, 4, System.Data.ParameterDirection.ReturnValue, false, ((byte)(0)), ((byte)(0)), "", System.Data.DataRowVersion.Current, null),
         new System.Data.SqlClient.SqlParameter("@IdObra", System.Data.SqlDbType.NVarChar, 6)
     });
     //
     // sqlDACliente
     //
     this.sqlDACliente.SelectCommand = this.sqlSelectCommand1;
     this.sqlDACliente.TableMappings.AddRange(new System.Data.Common.DataTableMapping[] {
         new System.Data.Common.DataTableMapping("Table", "InfCliente", new System.Data.Common.DataColumnMapping[] {
             new System.Data.Common.DataColumnMapping("Idobra", "Idobra"),
             new System.Data.Common.DataColumnMapping("RFC", "RFC"),
             new System.Data.Common.DataColumnMapping("Facturar", "Facturar"),
             new System.Data.Common.DataColumnMapping("IdCliente", "IdCliente"),
             new System.Data.Common.DataColumnMapping("Cliente", "Cliente")
         })
     });
     //
     // dsInfCliente1
     //
     this.dsInfCliente1.DataSetName             = "dsInfCliente";
     this.dsInfCliente1.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema;
     //
     // sqlSelectCommand2
     //
     this.sqlSelectCommand2.CommandText = "dbo.InfCliente1";
     this.sqlSelectCommand2.CommandType = System.Data.CommandType.StoredProcedure;
     this.sqlSelectCommand2.Connection  = this.sqlConn;
     this.sqlSelectCommand2.Parameters.AddRange(new System.Data.SqlClient.SqlParameter[] {
         new System.Data.SqlClient.SqlParameter("@RETURN_VALUE", System.Data.SqlDbType.Int, 4, System.Data.ParameterDirection.ReturnValue, false, ((byte)(0)), ((byte)(0)), "", System.Data.DataRowVersion.Current, null),
         new System.Data.SqlClient.SqlParameter("@IdObra", System.Data.SqlDbType.NVarChar, 6)
     });
     //
     // sqlDAPerCli
     //
     this.sqlDAPerCli.SelectCommand = this.sqlSelectCommand2;
     this.sqlDAPerCli.TableMappings.AddRange(new System.Data.Common.DataTableMapping[] {
         new System.Data.Common.DataTableMapping("Table", "InfCliente1", new System.Data.Common.DataColumnMapping[] {
             new System.Data.Common.DataColumnMapping("IdObra", "IdObra"),
             new System.Data.Common.DataColumnMapping("IDPERFILWEB", "IDPERFILWEB"),
             new System.Data.Common.DataColumnMapping("IDUSUARIO", "IDUSUARIO")
         })
     });
     //
     // InfCliente
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
     this.ClientSize          = new System.Drawing.Size(1028, 605);
     this.Controls.Add(this.crvInfCompacta);
     this.Controls.Add(this.panel2);
     this.Name        = "InfCliente";
     this.Text        = "InfCliente";
     this.WindowState = System.Windows.Forms.FormWindowState.Maximized;
     this.Load       += new System.EventHandler(this.InfCliente_Load);
     ((System.ComponentModel.ISupportInitialize)(this.dsBusObra1)).EndInit();
     this.panel2.ResumeLayout(false);
     this.panel2.PerformLayout();
     ((System.ComponentModel.ISupportInitialize)(this.dsInfCliente1)).EndInit();
     this.ResumeLayout(false);
 }
        public string Message(string sMessage)
        {
            string strRdo = "";

            try
            {
                if (_logger == null)
                {
                    System.Configuration.AppSettingsReader appSettings = new System.Configuration.AppSettingsReader();

                    // *** TODO
                    _logger = new Logger(MethodBase.GetCurrentMethod().DeclaringType);
                    //               _logger = new FileLogger(LoggerSeverities.Debug, (string)appSettings.GetValue("ServiceLog", typeof(string)));
                    //OPS.Comm.Messaging.CommMain.Logger.AddLogMessage += new AddLogMessageHandler(Logger_AddLogMessage);
                    //OPS.Comm.Messaging.CommMain.Logger.AddLogException += new AddLogExceptionHandler(Logger_AddLogException);
                    DatabaseFactory.Logger = _logger;
                }

                Logger_AddLogMessage(string.Format("Message.LogMsgDB: Empty unit. xml={0}", "Hello"), LoggerSeverities.Error);

                if (Session["MessagesSession"] == null)
                {
                    MessagesSession msgSession = new MessagesSession();
                    Session["MessagesSession"] = msgSession;
                }

                IRecvMessage msg = null;
                msg = MessageFactory.GetReceivedMessage(sMessage);

                msg.Session = ((MessagesSession)Session["MessagesSession"]);

                StringCollection sc = msg.Process();

                System.Collections.Specialized.StringEnumerator myEnumerator = sc.GetEnumerator();
                while (myEnumerator.MoveNext())
                {
                    strRdo += myEnumerator.Current + "\n";
                }

                try
                {
                    XmlDocument doc = new XmlDocument();
                    doc.LoadXml(sMessage);
                    int iUnitId = GetUnitIdForLogging(doc);

                    if (iUnitId != -1)
                    {
                        System.Configuration.AppSettingsReader appSettings = new System.Configuration.AppSettingsReader();
                        string CCunitId = (string)appSettings.GetValue("UnitID", typeof(string));
                        LogMsgDB(iUnitId, int.Parse(CCunitId), doc.DocumentElement.Name, sMessage, strRdo.Replace("\n", ""));
                    }
                    else
                    {
                        Logger_AddLogMessage(string.Format("Message.LogMsgDB: Empty unit. xml={0}", sMessage), LoggerSeverities.Error);
                    }
                }
                catch (Exception e)
                {
                    Logger_AddLogException(e);
                }
            }
            catch (Exception e)
            {
                strRdo = e.ToString();
            }

            return(strRdo);
        }
示例#58
0
 /// <summary>
 /// Método necesario para admitir el Diseñador. No se puede modificar
 /// el contenido del método con el editor de código.
 /// </summary>
 private void InitializeComponent()
 {
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(TipoPrueba));
     System.Configuration.AppSettingsReader         configurationAppSettings = new System.Configuration.AppSettingsReader();
     this.panel1            = new System.Windows.Forms.Panel();
     this.buscaBtn1         = new Soluciones2000.Tools.WinLib.BuscaBtn();
     this.dsTipoPrueba1     = new LancNeo.dsTipoPrueba();
     this.txtIdPrueba       = new System.Windows.Forms.TextBox();
     this.lblIdPrueba       = new System.Windows.Forms.Label();
     this.lblPrueba         = new System.Windows.Forms.Label();
     this.txtPrueba         = new System.Windows.Forms.TextBox();
     this.sqlDATipoPrueba   = new System.Data.SqlClient.SqlDataAdapter();
     this.sqlDeleteCommand1 = new System.Data.SqlClient.SqlCommand();
     this.sqlConn           = new System.Data.SqlClient.SqlConnection();
     this.sqlInsertCommand1 = new System.Data.SqlClient.SqlCommand();
     this.sqlSelectCommand1 = new System.Data.SqlClient.SqlCommand();
     this.sqlUpdateCommand1 = new System.Data.SqlClient.SqlCommand();
     this.panelToolBar.SuspendLayout();
     this.panel1.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.dsTipoPrueba1)).BeginInit();
     this.SuspendLayout();
     //
     // statusBar1
     //
     this.statusBar1.ShowPanels = true;
     this.statusBar1.Size       = new System.Drawing.Size(576, 22);
     //
     // panelToolBar
     //
     this.panelToolBar.Size = new System.Drawing.Size(576, 64);
     //
     // panel1
     //
     this.panel1.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
     this.panel1.Controls.Add(this.buscaBtn1);
     this.panel1.Controls.Add(this.txtIdPrueba);
     this.panel1.Controls.Add(this.lblIdPrueba);
     this.panel1.Controls.Add(this.lblPrueba);
     this.panel1.Controls.Add(this.txtPrueba);
     this.panel1.Location = new System.Drawing.Point(102, 128);
     this.panel1.Name     = "panel1";
     this.panel1.Size     = new System.Drawing.Size(372, 192);
     this.panel1.TabIndex = 0;
     //
     // buscaBtn1
     //
     this.buscaBtn1.AnchoDlgBusq = 0;
     this.buscaBtn1.BackColor    = System.Drawing.Color.Transparent;
     this.buscaBtn1.Datos        = this.dsTipoPrueba1.Tipoprueba;
     this.buscaBtn1.Icon         = ((System.Drawing.Icon)(resources.GetObject("buscaBtn1.Icon")));
     this.buscaBtn1.Location     = new System.Drawing.Point(264, 32);
     this.buscaBtn1.Name         = "buscaBtn1";
     this.buscaBtn1.Size         = new System.Drawing.Size(64, 64);
     this.buscaBtn1.TabIndex     = 2;
     this.toolTip1.SetToolTip(this.buscaBtn1, "Buscar");
     this.buscaBtn1.Load += new System.EventHandler(this.buscaBtn1_Load);
     //
     // dsTipoPrueba1
     //
     this.dsTipoPrueba1.DataSetName             = "dsTipoPrueba";
     this.dsTipoPrueba1.Locale                  = new System.Globalization.CultureInfo("es-MX");
     this.dsTipoPrueba1.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema;
     //
     // txtIdPrueba
     //
     this.txtIdPrueba.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.dsTipoPrueba1, "Tipoprueba.IdPrueba", true));
     this.txtIdPrueba.Location = new System.Drawing.Point(160, 63);
     this.txtIdPrueba.Name     = "txtIdPrueba";
     this.txtIdPrueba.Size     = new System.Drawing.Size(100, 20);
     this.txtIdPrueba.TabIndex = 1;
     this.txtIdPrueba.Text     = "textBox1";
     //
     // lblIdPrueba
     //
     this.lblIdPrueba.Location  = new System.Drawing.Point(48, 63);
     this.lblIdPrueba.Name      = "lblIdPrueba";
     this.lblIdPrueba.Size      = new System.Drawing.Size(100, 23);
     this.lblIdPrueba.TabIndex  = 0;
     this.lblIdPrueba.Text      = "Id Prueba:";
     this.lblIdPrueba.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // lblPrueba
     //
     this.lblPrueba.Location  = new System.Drawing.Point(48, 103);
     this.lblPrueba.Name      = "lblPrueba";
     this.lblPrueba.Size      = new System.Drawing.Size(100, 23);
     this.lblPrueba.TabIndex  = 0;
     this.lblPrueba.Text      = "Prueba:";
     this.lblPrueba.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // txtPrueba
     //
     this.txtPrueba.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.dsTipoPrueba1, "Tipoprueba.Prueba", true));
     this.txtPrueba.Location = new System.Drawing.Point(160, 103);
     this.txtPrueba.Name     = "txtPrueba";
     this.txtPrueba.Size     = new System.Drawing.Size(100, 20);
     this.txtPrueba.TabIndex = 1;
     this.txtPrueba.Text     = "textBox1";
     //
     // sqlDATipoPrueba
     //
     this.sqlDATipoPrueba.DeleteCommand = this.sqlDeleteCommand1;
     this.sqlDATipoPrueba.InsertCommand = this.sqlInsertCommand1;
     this.sqlDATipoPrueba.SelectCommand = this.sqlSelectCommand1;
     this.sqlDATipoPrueba.TableMappings.AddRange(new System.Data.Common.DataTableMapping[] {
         new System.Data.Common.DataTableMapping("Table", "Tipoprueba", new System.Data.Common.DataColumnMapping[] {
             new System.Data.Common.DataColumnMapping("IdPrueba", "IdPrueba"),
             new System.Data.Common.DataColumnMapping("Prueba", "Prueba")
         })
     });
     this.sqlDATipoPrueba.UpdateCommand = this.sqlUpdateCommand1;
     //
     // sqlDeleteCommand1
     //
     this.sqlDeleteCommand1.CommandText = "DELETE FROM Tipoprueba WHERE (IdPrueba = @Original_IdPrueba) AND (Prueba = @Origi" +
                                          "nal_Prueba)";
     this.sqlDeleteCommand1.Connection = this.sqlConn;
     this.sqlDeleteCommand1.Parameters.AddRange(new System.Data.SqlClient.SqlParameter[] {
         new System.Data.SqlClient.SqlParameter("@Original_IdPrueba", System.Data.SqlDbType.SmallInt, 2, System.Data.ParameterDirection.Input, false, ((byte)(0)), ((byte)(0)), "IdPrueba", System.Data.DataRowVersion.Original, null),
         new System.Data.SqlClient.SqlParameter("@Original_Prueba", System.Data.SqlDbType.NVarChar, 10, System.Data.ParameterDirection.Input, false, ((byte)(0)), ((byte)(0)), "Prueba", System.Data.DataRowVersion.Original, null)
     });
     //
     // sqlConn
     //
     this.sqlConn.ConnectionString = ((string)(configurationAppSettings.GetValue("sqlConn.ConnectionString", typeof(string))));
     this.sqlConn.FireInfoMessageEventOnUserErrors = false;
     //
     // sqlInsertCommand1
     //
     this.sqlInsertCommand1.CommandText = "INSERT INTO Tipoprueba(IdPrueba, Prueba) VALUES (@IdPrueba, @Prueba); SELECT IdPr" +
                                          "ueba, Prueba FROM Tipoprueba WHERE (IdPrueba = @IdPrueba) ORDER BY IdPrueba";
     this.sqlInsertCommand1.Connection = this.sqlConn;
     this.sqlInsertCommand1.Parameters.AddRange(new System.Data.SqlClient.SqlParameter[] {
         new System.Data.SqlClient.SqlParameter("@IdPrueba", System.Data.SqlDbType.SmallInt, 2, "IdPrueba"),
         new System.Data.SqlClient.SqlParameter("@Prueba", System.Data.SqlDbType.NVarChar, 10, "Prueba")
     });
     //
     // sqlSelectCommand1
     //
     this.sqlSelectCommand1.CommandText = "SELECT IdPrueba, Prueba FROM Tipoprueba ORDER BY IdPrueba";
     this.sqlSelectCommand1.Connection  = this.sqlConn;
     //
     // sqlUpdateCommand1
     //
     this.sqlUpdateCommand1.CommandText = resources.GetString("sqlUpdateCommand1.CommandText");
     this.sqlUpdateCommand1.Connection  = this.sqlConn;
     this.sqlUpdateCommand1.Parameters.AddRange(new System.Data.SqlClient.SqlParameter[] {
         new System.Data.SqlClient.SqlParameter("@IdPrueba", System.Data.SqlDbType.SmallInt, 2, "IdPrueba"),
         new System.Data.SqlClient.SqlParameter("@Prueba", System.Data.SqlDbType.NVarChar, 10, "Prueba"),
         new System.Data.SqlClient.SqlParameter("@Original_IdPrueba", System.Data.SqlDbType.SmallInt, 2, System.Data.ParameterDirection.Input, false, ((byte)(0)), ((byte)(0)), "IdPrueba", System.Data.DataRowVersion.Original, null),
         new System.Data.SqlClient.SqlParameter("@Original_Prueba", System.Data.SqlDbType.NVarChar, 10, System.Data.ParameterDirection.Input, false, ((byte)(0)), ((byte)(0)), "Prueba", System.Data.DataRowVersion.Original, null)
     });
     //
     // TipoPrueba
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.ClientSize        = new System.Drawing.Size(576, 423);
     this.Controls.Add(this.panel1);
     this.DAGeneral   = this.sqlDATipoPrueba;
     this.dsGeneral   = this.dsTipoPrueba1;
     this.Name        = "TipoPrueba";
     this.NombreTabla = "TipoPrueba";
     this.Text        = "Catálogo de Tipos de Prueba";
     this.Load       += new System.EventHandler(this.TipoPrueba_Load);
     this.Controls.SetChildIndex(this.panel1, 0);
     this.Controls.SetChildIndex(this.statusBar1, 0);
     this.Controls.SetChildIndex(this.panelToolBar, 0);
     this.panelToolBar.ResumeLayout(false);
     this.panel1.ResumeLayout(false);
     this.panel1.PerformLayout();
     ((System.ComponentModel.ISupportInitialize)(this.dsTipoPrueba1)).EndInit();
     this.ResumeLayout(false);
 }
示例#59
0
 /// <summary>
 /// Método necesario para admitir el Diseñador. No se puede modificar
 /// el contenido del método con el editor de código.
 /// </summary>
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     System.Configuration.AppSettingsReader         configurationAppSettings = new System.Configuration.AppSettingsReader();
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Principal));
     this.mainMenu          = new System.Windows.Forms.MainMenu(this.components);
     this.archivo           = new System.Windows.Forms.MenuItem();
     this.ActualizarMenu    = new System.Windows.Forms.MenuItem();
     this.CambiarUsuario    = new System.Windows.Forms.MenuItem();
     this.salir             = new System.Windows.Forms.MenuItem();
     this.Ventana           = new System.Windows.Forms.MenuItem();
     this.Horizontal        = new System.Windows.Forms.MenuItem();
     this.Vertical          = new System.Windows.Forms.MenuItem();
     this.Cascada           = new System.Windows.Forms.MenuItem();
     this.ayuda             = new System.Windows.Forms.MenuItem();
     this.acercade          = new System.Windows.Forms.MenuItem();
     this.sqlConn           = new System.Data.SqlClient.SqlConnection();
     this.stausbarPrincipal = new System.Windows.Forms.StatusBar();
     this.txtUsr            = new System.Windows.Forms.TextBox();
     this.SuspendLayout();
     //
     // mainMenu
     //
     this.mainMenu.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
         this.archivo,
         this.Ventana,
         this.ayuda
     });
     //
     // archivo
     //
     this.archivo.Index = 0;
     this.archivo.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
         this.ActualizarMenu,
         this.CambiarUsuario,
         this.salir
     });
     this.archivo.Text = "&Archivo";
     //
     // ActualizarMenu
     //
     this.ActualizarMenu.Index  = 0;
     this.ActualizarMenu.Text   = "&Actualizar Menu";
     this.ActualizarMenu.Click += new System.EventHandler(this.ActualizarMenu_Click);
     //
     // CambiarUsuario
     //
     this.CambiarUsuario.Index  = 1;
     this.CambiarUsuario.Text   = "&Cambiar de usuario";
     this.CambiarUsuario.Click += new System.EventHandler(this.CambiarUsuario_Click);
     //
     // salir
     //
     this.salir.Index  = 2;
     this.salir.Text   = "&Salir";
     this.salir.Click += new System.EventHandler(this.salir_Click);
     //
     // Ventana
     //
     this.Ventana.Index   = 1;
     this.Ventana.MdiList = true;
     this.Ventana.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
         this.Horizontal,
         this.Vertical,
         this.Cascada
     });
     this.Ventana.Text = "&Ventana";
     //
     // Horizontal
     //
     this.Horizontal.Index      = 0;
     this.Horizontal.RadioCheck = true;
     this.Horizontal.Text       = "&Horizontal";
     this.Horizontal.Click     += new System.EventHandler(this.Horizontal_Click);
     //
     // Vertical
     //
     this.Vertical.Index      = 1;
     this.Vertical.RadioCheck = true;
     this.Vertical.Text       = "&Vertical";
     this.Vertical.Click     += new System.EventHandler(this.Vertical_Click);
     //
     // Cascada
     //
     this.Cascada.Index      = 2;
     this.Cascada.RadioCheck = true;
     this.Cascada.Text       = "&Cascada";
     this.Cascada.Click     += new System.EventHandler(this.Cascada_Click);
     //
     // ayuda
     //
     this.ayuda.Index = 2;
     this.ayuda.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
         this.acercade
     });
     this.ayuda.Text = "?";
     //
     // acercade
     //
     this.acercade.Index  = 0;
     this.acercade.Text   = "Acerca de";
     this.acercade.Click += new System.EventHandler(this.acercade_Click);
     //
     // sqlConn
     //
     this.sqlConn.ConnectionString = ((string)(configurationAppSettings.GetValue("sqlConn.ConnectionString", typeof(string))));
     this.sqlConn.FireInfoMessageEventOnUserErrors = false;
     //
     // stausbarPrincipal
     //
     this.stausbarPrincipal.Location = new System.Drawing.Point(0, 431);
     this.stausbarPrincipal.Name     = "stausbarPrincipal";
     this.stausbarPrincipal.Size     = new System.Drawing.Size(692, 22);
     this.stausbarPrincipal.TabIndex = 1;
     //
     // txtUsr
     //
     this.txtUsr.BackColor   = System.Drawing.SystemColors.ControlDark;
     this.txtUsr.BorderStyle = System.Windows.Forms.BorderStyle.None;
     this.txtUsr.ForeColor   = System.Drawing.SystemColors.ControlDark;
     this.txtUsr.Location    = new System.Drawing.Point(0, 0);
     this.txtUsr.Margin      = new System.Windows.Forms.Padding(0);
     this.txtUsr.MaxLength   = 10;
     this.txtUsr.Name        = "txtUsr";
     this.txtUsr.ReadOnly    = true;
     this.txtUsr.Size        = new System.Drawing.Size(0, 13);
     this.txtUsr.TabIndex    = 3;
     //
     // Principal
     //
     this.AutoScaleBaseSize     = new System.Drawing.Size(5, 13);
     this.AutoSize              = true;
     this.BackColor             = System.Drawing.SystemColors.HighlightText;
     this.BackgroundImage       = global::LancNeo.Properties.Resources.logolanc30A;
     this.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center;
     this.ClientSize            = new System.Drawing.Size(692, 453);
     this.Controls.Add(this.txtUsr);
     this.Controls.Add(this.stausbarPrincipal);
     this.Icon           = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     this.IsMdiContainer = true;
     this.Menu           = this.mainMenu;
     this.Name           = "Principal";
     this.Text           = "Sistema de Evaluación de Concreto";
     this.WindowState    = System.Windows.Forms.FormWindowState.Maximized;
     this.Load          += new System.EventHandler(this.Principal_Load);
     this.ResumeLayout(false);
     this.PerformLayout();
 }
示例#60
0
        public Sample1PlugIn()
        {
            System.Configuration.AppSettingsReader reader = new System.Configuration.AppSettingsReader();

            Console.WriteLine("Reading config file for " + reader.GetValue("Alias", typeof(string)));
        }